Skip to content

Commit

Permalink
Added Python file - Nmap Scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
WannaCry016 committed Nov 1, 2024
1 parent 6019bc2 commit c120ea9
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#### Name: [Ayushman Pal](https://github.com/WannaCry016)

- Place: Chennai, India
- Bio: Fullstack Developer | Mobile Game Developer | ML/AI Enthusiast
- GitHub: [WannaCry016](https://github.com/WannaCry016)

#### Name: [3mYouOL](https://github.com/3mYouOL)

- Place: Iloilo, Philippines
Expand Down
32 changes: 16 additions & 16 deletions Python/Nmap_Scanner.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import nmap

nm = nmap.PortScanner()

# scan a target host for open ports
nm.scan('localhost', arguments='-p 22,80,443')

# print the state of the ports
for host in nm.all_hosts():
print('Host : %s (%s)' % (host, nm[host].hostname()))
print('State : %s' % nm[host].state())
for proto in nm[host].all_protocols():
print('Protocol : %s' % proto)
ports = nm[host][proto].keys()
for port in ports:
print('port : %s\tstate : %s' % (port, nm[host][proto][port]['state']))
import nmap

nm = nmap.PortScanner()

# scan a target host for open ports
nm.scan('localhost', arguments='-p 22,80,443')

# print the state of the ports
for host in nm.all_hosts():
print('Host : %s (%s)' % (host, nm[host].hostname()))
print('State : %s' % nm[host].state())
for proto in nm[host].all_protocols():
print('Protocol : %s' % proto)
ports = nm[host][proto].keys()
for port in ports:
print('port : %s\tstate : %s' % (port, nm[host][proto][port]['state']))
33 changes: 33 additions & 0 deletions profiles/Ayushman Pal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Ayushman Pal

### Location

Chennai, INDIA

### Academics

- Pursuing Btech in Chemical Engineering at Indian Institute of Technology, Madras

### Interests

- Learning Enthusiast
- Music
- Python
- HTML/CSS/JS
- DSA (C++)

### Skills

- DSA
- Typing(with speed more than 140WPM)
- Java
- Git & GitHub
- Python

### Projects

- [Portfolio] https://github.com/WannaCry016

### Profile Link

[Ayushman Pal](https://github.com/WannaCry016)
1 change: 1 addition & 0 deletions scripts/hello_world_WannaCry016.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello World")

0 comments on commit c120ea9

Please sign in to comment.