Giter VIP home page Giter VIP logo

s0m3scan's Introduction

This is a port scan tool.

Usage: s0m3scan.py [options]

Options:
  -h, --help  show this help message and exit
  -p PORT     the port to scan
  -s SCRIPT   the script to run
  -t IP       ip or ip file

Using -p option to config ports to scan. It can be used like this: -p 80, -p 20-80, -p 21,22,23 or -p 21,22,80-100.

Using -s option to scan hosts with your own python script, the script should be like this.

#!/usr/bin/env python
# -*- coding:utf-8 -*-

def scan(scanner, ip):
    port = 80

    # write your code here

    output = {ip:{}}
    output[ip][port] = {'status': 'open'}
    output[ip][port]['service'] = 'HTTP'
    output[ip][port]['message'] = 'hello world'
    scanner.put(output)

You can put your script file in the scripts folder and use it with it's name like this: -s example

Using -t option to config the target to scan, the target can be an ip string, or the path of an ip file, for example: -t 127.0.0.1 or -t ./ip.txt.

s0m3scan's People

Contributors

s0m30ne avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

jijicanyu

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.