vmware에 웹서버 하나 만들어서 테스트 중인데.
scapy를 이용해서 여러가지 하려고 하는데.. 아래 스크립트 처럼 scapy를 이용해서
웹서버랑 연결을 100개이상 만들어야해...
from scapy.all import *
for i in range(200):
socket.append(TCP_client.tcplink(Raw, www.target.com, 80))
그런데 위 스크립트를 실행시키면
Unhandled exception in thread started by <bound method TCP_client._do_control of <scapy.layers.inet.TCP_client object at 0xb56bc36c>>Unhandled exception in thread started by <bound method TCP_client._do_control of <scapy.layers.inet.TCP_client object at 0xb564288c>> Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/scapy/automaton.py", line 525, in _do_control self.listen_sock = conf.L2listen(**self.socket_kargs) File "/usr/local/lib/python2.7/dist-packages/scapy/arch/linux.py", line 461, in __init__ _flush_fd(self.ins) File "/usr/local/lib/python2.7/dist-packages/scapy/arch/linux.py", line 301, in _flush_fd r,w,e = select([fd],[],[],0) ValueError: filedescriptor out of range in select()이런 오류 메세지와 함께 어느정도 만들고는 죽어버리는데.. ulimit -n으로 파일 open최대 횟수를 늘려도 똑같은데..
스택오버플로우나 이런데 검색해보니 select() 문제라고 하는거 같은데 해결방법 없음????
있음
http://lgstar.tk
커뮤니티 사이트 입니다 많은 이용 부탁 드립니다. - DCW