上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: #!/usr/bin/python 2 import urllib 3 import urllib2 4 import re 5 import os 6 7 dirs = ['js','img','pay','css'] 8 urls = ['http://www.xxxxxx.net/' + x for x in dirs] 9 10 def parse(baseurl): 11 url_hand = urllib2.urlopen(baseurl) 12 url_cont = url_hand.read() 1 阅读全文
posted @ 2014-03-27 17:23 silence.li 阅读(237) 评论(0) 推荐(0)
摘要: Mar 27 08:55:16 kernel: [5956021.859282] [iptables 911:] IN=eth1 OUT= MAC=f0:1f:af:da:6f:1e:80:fb:06:ae:fa:57:08:00 SRC=118.122.88.231 DST=125.65.xxx.x5 LEN=60 TOS=0x00 PREC=0x00 TTL=52 ID=30361 DF PROTO=TCP SPT=6424 DPT=11060 WINDOW=14600 RES=0x00 SYN URGP=0 其中MAC=f0:1f:af:da:6f:1e:80:fb:06:ae:fa:. 阅读全文
posted @ 2014-03-27 11:12 silence.li 阅读(1196) 评论(0) 推荐(0)
摘要: 比如iptables本来有这么一条:-A PREROUTING -d 125.65.27.xxx/32 -p tcp -m tcp --dport 11060 -j DNAT --to-destination 10.1.104.41:911要将符合该条记录的封包的信息记录到syslog需要在之前插入一条:iptables -t nat -I PREROUTING 1 -d 125.65.27.xxx -p tcp -m tcp --dport 11060 -j LOG --log-prefix "[iptables 911:] " --log-level 7log leve 阅读全文
posted @ 2014-03-26 22:10 silence.li 阅读(958) 评论(2) 推荐(0)
摘要: server端设置 修改/etc/default/rsync RSYNC_ENABLE=true RSYNC_OPTS='--address=10.192.0.5' RSYNC_NICE='' 修改/etc/rsyncd.conf # sample rsyncd.conf configuration file # GLOBAL OPTIONS #motd file=/etc/... 阅读全文
posted @ 2014-03-21 18:10 silence.li 阅读(2036) 评论(0) 推荐(0)
摘要: 步骤: 1.在系统中添加用户 批量添加用户和密码的方法(因为samba用户要求必须在系统中存在): for name in a b c d;do useradd $name ; echo “$user:passwd” |chpasswd;done 即添加了a,b,c,d四位用户,使用echo “user:passwd” |chpasswd 可以非交互修改密码 或者echo “passwd” |p... 阅读全文
posted @ 2014-03-21 16:49 silence.li 阅读(7075) 评论(0) 推荐(0)
摘要: 1.使用ssh建立sock代理ssh -D 7070 -f -N user@host-D-f 后台执行-N 不登陆shell执行 阅读全文
posted @ 2014-03-20 22:37 silence.li 阅读(231) 评论(0) 推荐(0)
摘要: 抓取网页,获得获奖信息#!/usr/bin/python ... 阅读全文
posted @ 2014-03-20 15:55 silence.li 阅读(233) 评论(0) 推荐(0)
摘要: nethogs 按照从大到小排列占用网络流量的进程还可以用jnettop察看,总的流量 阅读全文
posted @ 2014-03-20 15:27 silence.li 阅读(178) 评论(0) 推荐(0)
摘要: http://red2.sunderland.ac.uk/python/genindex.htmlhttp://www.adminsehow.com/2011/09/iptables-packet-traverse-map/mysql:http://imysql.com/linux kernelht... 阅读全文
posted @ 2014-03-19 15:24 silence.li 阅读(246) 评论(0) 推荐(0)
摘要: ljust用法:string.ljust(number,'x')格式化输出字符串,按照number数量调整字符串的总长度,ljust是左对齐,‘x’是填充字符,默认是空格类似的还有rjust,center 阅读全文
posted @ 2014-03-18 11:11 silence.li 阅读(596) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页