Coder Social home page Coder Social logo

synprobe's Introduction

synprobe

synprobe.py is a simple network reconnaissance tool developed using Scapy framework. In the script, I probe a given port with a SYN packet to see if the port is open or not.

If the port is open then we establish a TCP connection to that port by doing a 3 way TCP handshake to do service fingerprinting. After establishing TCP handshake, I print the first 1024 bytes sent by the server and if the server dont send any data then I send some random payload("GET /index.html HTTP/1.1\r\n\r\n") and print the response.

After scanning the port, I issue a FIN packet to initiate the connection termination process.

Note:

Since scapy does not use Linux Kernel services, Linux Kernel might issue RST for SYN packets created by Scapy. To supress RST packets from Kernel excecute the following comand with your IP:

iptables -A OUTPUT -p tcp --tcp-flags RST RST -s {SRC_IP} -j DROP

Instructions to run

# For help menu
root@kali:~# python synprobe.py -h

# Examples

## Scan port 80 of 192.168.1.100
root@kali:~# python synprobe.py 192.168.1.100 -p 22

## Scan common TCP ports of 192.168.1.100
root@kali:~# python synprobe.py 192.168.1.100

## Scan a range of ports
root@kali:~# python synprobe.py 192.168.1.100 -p 1-100

## Scan a subnet
root@kali:~# python synprobe.py 192.168.1.0/24 -p 1-100

synprobe's People

Contributors

vijaykumarmidde avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.