-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6019bc2
commit c120ea9
Showing
4 changed files
with
56 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print("Hello World") |