Forum > General >

Port scanner | PyPort v1

NemesisX

Spoon#8225

Posts: 168

Threads: 56

Joined: Nov, 2018

Reputation: 4

Posted

A lil port scanner I made in Python. It's not multithreaded or anything but I will improve it.

 

Code: Pastebin

DL: yes

VT: cuz python is virus

Hash cuz yes: 82e90e8c0759ea4d51ff083433dc3df34fd246b34ce08a92a7a07f70c25d940a

  • 0

https://cdn.discordapp.com/attachments/744131168018104320/749027674323812373/kekw.mp4 

 

JOSHMISTY

Advantages

Posts: 892

Threads: 89

Joined: Jul, 2020

Reputation: 10

Replied

NERD LANGUAGE ALERT!!!!  LMAO

 

:D

  • 0

Moon

Moon

vip

Posts: 6166

Threads: 262

Joined: Aug, 2020

Reputation: 78

Replied

Spoon scanner 

ahahahaha

i still suck

  • 0

KenQuake

#Nihon4Life

vip

Posts: 373

Threads: 7

Joined: Sep, 2020

Reputation: 29

Replied

@Moon Imagine having premium

  • 0

Corn is not a great source of nutrients 

Wabz

Winning.js

Posts: 1956

Threads: 143

Joined: Apr, 2020

Reputation: 27

Replied

@JOSHMISTY its not a nerd language, if you look at the code, its actually pretty easy to understand

 

1. imports the socket module

2. creates a socket called mainsock

3. makes a variable which is a list, it will store opened ports in there

4. scanning function scanner() which takes the IP as a parameter

in there, it loops through every possible port, and then it tries to connect to it, if it connects to it it then adds the port to the open ports list, if it fails with an error, it just ignores, it means the port is closed. at the end of all of that, it closes the socket called mainsock and shows the opened ports

5. code body

a. asks for the IP

b. runs the scanner function and passes the ip the user entered as a parameter (does what is described in 4)

c. runs input() so that the program does not quit until the user presses enter

 

ok thats basically how the code works, its pretty simple

  • 0

Added

@ghandy why dont you like it? (or maybe it was a joke idk)

  • 0

My new discord is Wabz#1337 with ID 777154062789509130

Moon

Moon

vip

Posts: 6166

Threads: 262

Joined: Aug, 2020

Reputation: 78

Replied

@KenQuake no u *cough cough*

  • 0

KenQuake

#Nihon4Life

vip

Posts: 373

Threads: 7

Joined: Sep, 2020

Reputation: 29

Replied

@Moon Corona

  • 0

Corn is not a great source of nutrients 

Moon

Moon

vip

Posts: 6166

Threads: 262

Joined: Aug, 2020

Reputation: 78

Replied

@KenQuake AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

  • 0

KenQuake

#Nihon4Life

vip

Posts: 373

Threads: 7

Joined: Sep, 2020

Reputation: 29

Replied

@Moon :kannasip:

  • 0

Corn is not a great source of nutrients 

Users viewing this thread:

( Members: 0, Guests: 0, Total: 0 )