-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from wikiZ/main
Kunyu v1.6.5
- Loading branch information
Showing
12 changed files
with
92 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
__python_version__ = sys.version.split()[0] | ||
__platform__ = platform.platform() | ||
__url__ = "https://github.com/knownsec/Kunyu" | ||
__version__ = '1.6.4' | ||
__version__ = '1.6.5' | ||
__author__ = '风起' | ||
__Team__ = 'KnownSec 404 Team' | ||
__author_email__ = '[email protected]' | ||
|
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
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,23 @@ | ||
#!/usr/bin/env python | ||
# encoding: utf-8 | ||
""" | ||
@author: 风起 | ||
@contact: [email protected] | ||
@File: scanalive.py | ||
@Time: 2022/2/24 10:47 | ||
""" | ||
|
||
import nmap | ||
|
||
class Scan_Alive_Ip: | ||
def __init__(self): | ||
self.alive_data_params = {} | ||
def scan_port_status(self, ip, port): | ||
nm = nmap.PortScanner() | ||
# Semi-open scan using TCP SYN | ||
nm.scan(ip, port, "-sS") | ||
for host in nm.all_hosts(): | ||
for proto in nm[host].all_protocols(): | ||
for port in nm[host][proto].keys(): | ||
self.alive_data_params = {"ip": ip, "port":port, "state":nm[host][proto][port]['state']} | ||
return self.alive_data_params |
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