MCPcopy Create free account
hub / github.com/secdev/scapy / send_auth_response

Method send_auth_response

scapy/modules/krack/automaton.py:501–515  ·  view source on GitHub ↗
(self, pkt)

Source from the content-addressed store, hash-verified

499
500 @ATMT.action(authent_received)
501 def send_auth_response(self, pkt):
502
503 # Save client MAC for later
504 self.client = pkt.addr2
505 log_runtime.warning("Client %s connected!", self.client)
506
507 # Launch DHCP Server
508 self.dhcp_server()
509
510 rep = RadioTap()
511 rep /= Dot11(addr1=self.client, addr2=self.mac, addr3=self.mac)
512 rep /= Dot11Auth(seqnum=2, algo=pkt[Dot11Auth].algo,
513 status=pkt[Dot11Auth].status)
514
515 self.send(rep)
516
517 @ATMT.receive_condition(AUTH_RESPONSE_SENT)
518 def assoc_received(self, pkt):

Callers

nothing calls this directly

Calls 4

RadioTapClass · 0.90
Dot11Class · 0.90
Dot11AuthClass · 0.90
sendMethod · 0.45

Tested by

no test coverage detected