-
Notifications
You must be signed in to change notification settings - Fork 5
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
9005504
commit 8de8159
Showing
4,166 changed files
with
754,633 additions
and
79,274 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
now/yue_pic/data.7z | ||
now/getepic/data/books/ |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,59 @@ | ||
#Author: K8gege | ||
#Date: 20190512 | ||
#.net framework >= 4.0 | ||
import platform | ||
import socket | ||
import os | ||
import threading | ||
import time | ||
import sys | ||
import clr | ||
|
||
def netscan(ip): | ||
clr.FindAssembly('netscan.dll') | ||
clr.AddReference('netscan') | ||
from CscanDLL import scan | ||
print(scan.run(ip)) | ||
|
||
def Cscan(ip): | ||
ipc = (ip.split('.')[:-1]) | ||
for i in range(1,256): | ||
add = ('.'.join(ipc)+'.'+str(i)) | ||
threading._start_new_thread(netscan,(add,)) | ||
time.sleep(0.1) | ||
|
||
def getos(): | ||
return platform.system() | ||
|
||
def getip(): | ||
return socket.gethostbyname(socket.gethostname()) | ||
|
||
def pingIP(ip): | ||
output = os.popen('ping -%s 1 %s'%(ptype,ip)).readlines() | ||
for w in output: | ||
if str(w).upper().find('TTL')>=0: | ||
print(ip) | ||
|
||
def Cping(ip): | ||
ipc = (ip.split('.')[:-1]) | ||
for i in range(1,256): | ||
add = ('.'.join(ipc)+'.'+str(i)) | ||
threading._start_new_thread(pingIP,(add,)) | ||
time.sleep(0.1) | ||
|
||
if __name__ == '__main__': | ||
print('K8Cscan for python 1.0') | ||
if getos() == 'Windows': | ||
ptype = 'n' | ||
elif getos() == 'Linux': | ||
ptype = 'c' | ||
else: | ||
print('The system is not supported.') | ||
sys.exit() | ||
if(os.path.exists('netscan.dll')): | ||
print('load netscan.dll') | ||
Cscan(getip()) | ||
else: | ||
print('not found netscan.dll') | ||
print('Default scan ip/24 online PC') | ||
Cping(getip()) |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.