设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย french

搜索
热搜: 活动 交友 discuz

发一个php 攻击代码.大家注意. [复制链接]
查看:300 | 回复:28

56

主题

745

回帖

1680

积分

金牌会员

积分
1680
发表于 2010-12-4 12:33:25 | 显示全部楼层


  当年我网站的代码可比这来劲多了 idc 封了我的网站我还没反应过来呢

167

主题

2108

回帖

4815

积分

论坛元老

积分
4815
发表于 2010-12-4 12:38:16 | 显示全部楼层
把  fsockopen  函数禁用了这个代码就应该失效了。

135

主题

718

回帖

1945

积分

金牌会员

积分
1945
发表于 2010-12-4 13:03:48 | 显示全部楼层
这玩意看不出实际意义。。。

609

主题

4229

回帖

1万

积分

论坛元老

积分
10373
发表于 2010-12-4 13:06:46 | 显示全部楼层
原帖由 cpuer 于 2010-12-4 13:11 发表


把  fsockopen  函数禁用了这个代码就应该失效了。


如果虚拟主机的话客户的程序可能需要用fsockopen
个人认为过滤UDP包比较好.


感谢.已经禁用了那个函数.平时没怎么注意...谢谢楼上各位.

34

主题

1377

回帖

2944

积分

金牌会员

积分
2944
发表于 2010-12-4 13:10:25 | 显示全部楼层
在nginx+php下面可以强行设置超时时间为30秒,到了30秒自动结束进程。

1724

主题

4万

回帖

8万

积分

论坛元老

积分
85718
发表于 2010-12-4 13:11:45 | 显示全部楼层
原帖由 netroby 于 2010-12-4 13:54 发表


在nginx+php下面可以强行设置超时时间为30秒,到了30秒自动结束进程。


我的是apache.不过我同样设置了超时时间,但这个超时时间对这个脚本是无效的.

另外,如果封了fsockopen函数,很多网站可能就不能用了.该如何解决?

84

主题

1447

回帖

3190

积分

论坛元老

积分
3190
发表于 2010-12-4 13:22:52 | 显示全部楼层
Oct 17 04:09:38.261791 [WARNING] [pool www] child 28393, script '/xxx/index.php' execution timed out (30.064970 sec), terminating


设置选项在php fpm里



; The timeout for serving a single request after which the worker process will
; be killed. This option should be used when the 'max_execution_time' ini option
; does not stop script execution for some reason. A value of '0' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
request_terminate_timeout = 30

32

主题

902

回帖

1998

积分

金牌会员

积分
1998
发表于 2010-12-4 13:34:11 | 显示全部楼层
原帖由 domin 于 2010-12-4 13:52 发表




如果虚拟主机的话客户的程序可能需要用fsockopen
个人认为过滤UDP包比较好.


请教具体怎么弄?

0

主题

1

回帖

4

积分

新手上路

积分
4
发表于 2010-12-4 13:34:58 | 显示全部楼层
apf 有过滤UDP包的.我去设置下.谢谢domain提醒.

58

主题

865

回帖

1956

积分

金牌会员

积分
1956
发表于 2010-12-4 13:54:51 | 显示全部楼层
[ol]
  • # Configure outbound (egress) accepted services. This is an optional
  • # feature; services and customized entries may be made directly to an ip's
  • # virtual net file located in the vnet/ directory.
  • #
  • # Outbound (egress) filtering is not required but makes your firewall setup
  • # complete by providing full inbound and outbound packet filtering. You can
  • # toggle outbound filtering on or off with the EGF variable. Format is comma
  • # separated and underscore separator for ranges.
  • #
  • # Example:
  • # EG_TCP_CPORTS="21,25,80,443,43"
  • # EG_UDP_CPORTS="20,21,53"
  • # EG_ICMP_TYPES="all"
  • # Outbound (egress) filtering
  • EGF="0"
  • # Common outbound (egress) TCP ports
  • EG_TCP_CPORTS="21,25,80,443,43"
  • # Common outbound (egress) UDP ports
  • EG_UDP_CPORTS="20,21,53"
  • # Common ICMP outbound (egress) types
  • # 'internals/icmp.types' for type definition; 'all' is wildcard for any
  • EG_ICMP_TYPES="all"[/ol]复制代码
  • 您需要登录后才可以回帖 登录 | 立即注册

    论坛客服/商务合作/投诉举报:2171544 (QQ)
    落伍者创建于2001/03/14,本站内容均为会员发表,并不代表落伍立场!
    拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论!
    落伍官方微信:2030286 邮箱:(djfsys@gmail.com|tech@im286.com)
    © 2001-2014

    浙公网安备 33060302000191号

    浙ICP备11034705号 BBS专项电子公告通信管[2010]226号

      落伍法律顾问: ITlaw-庄毅雄

    Archiver|手机版|Discuz! X

    GMT+8, 2026-6-29 07:22 , Processed in 0.015572 second(s), 4 queries , Gzip On, Redis On.

    返回顶部