scapy.contrib.socks

SOCKS4 / 5协议

您可以通过编辑来更改SOCKS层中使用的服务器端口. conf.contribs ['socks'] ['serverports']

class scapy.contrib.socks.SOCKS

Bases: scapy.packet.Packet

add_payload(payload)
aliastypes
fields_desc
袜子领域

vn

ByteEnumField

5

guess_payload_class(pkt)
class scapy.contrib.socks.SOCKS4Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
SOCKS4回复字段

cd

ByteEnumField

90

dstport

ShortField

80

dst

IPField

'0.0.0.0'

class scapy.contrib.socks.SOCKS4Request

Bases: scapy.packet.Packet

aliastypes
fields_desc
SOCKS4Request字段

cd

ByteEnumField

1

dstport

ShortField

80

dst

IPField

'0.0.0.0'

userid

StrField

b''

null

ByteField

0

class scapy.contrib.socks.SOCKS5Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
SOCKS5回复字段

rep

ByteEnumField

0

res

ByteField

0

atyp

ByteEnumField

1

addr

MultipleTypeField

b''

port

ShortField

80

class scapy.contrib.socks.SOCKS5Request

Bases: scapy.packet.Packet

aliastypes
fields_desc
SOCKS5请求字段

cd

ByteEnumField

0

res

ByteField

0

atyp

ByteEnumField

1

addr

MultipleTypeField

b''

port

ShortField

80

class scapy.contrib.socks.SOCKS5UDP

Bases: scapy.packet.Packet

aliastypes
fields_desc
SOCKS5UDP字段

res

ShortField

0

frag

ByteField

0

atyp

ByteEnumField

1

addr

MultipleTypeField

b''

port

ShortField

80

guess_payload_class(s)