Jump to content
Wubi

Multi-threaded SYN Scanner using Scapy, Threading and Queue in Python

Recommended Posts

Posted



Description: This is an interesting exercise I had given to my students for the SecurityTube Python Scripting Course (SPSE). The problem statement was roughly the following - Create a multi-threaded TCP SYN scanner using Scapy, Threading and Queue modules in Python.

Quick note:

1. This code is to illustrate use of multithreading in Python
2. Performance of the scanner solely depends on the probe / detection capability of scapy. The code outsources everything to scapy
3. Filtered ports etc. are not taken care of for now. Only SYN-ACKs are considered

Code Snippet on Pastebin: [Python] Multi-Threaded SYN Scanner using Scapy, Threading and Queue - Pastebin.com (was a quick cut-paste from the editor - check formatting before running)

If you are looking for details on our SPSE course and how to register, please visit this link: SecurityTube Python Scripting Expert ? SecurityTube Trainings

Enjoy and please do leave your comments behind!

Sursa: Simple Multi-Threaded Tcp Syn Scanner Using Scapy, Threading And Queue Modules In Python

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...