-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathscan.py
More file actions
23 lines (21 loc) · 746 Bytes
/
Copy pathscan.py
File metadata and controls
23 lines (21 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#-*- coding: utf-8 -*-
import os
import sys
# Written by Leonidus0x10
# I NEED TO LEARN THREADING TO MAKE THIS SHIT FASTER
file = sys.argv[1]
with open(file, "r") as target_list:
targets = target_list.readlines()
for line in targets:
try:
t = line.split(" ")[1]
target = t.strip("\n")
command = f"rpcdump.py @{target} | grep MS-RPRN"
print(f"trying: {target}")
output = os.popen(command).read()
if "MS-RPRN" in output:
print(f"{target}: is vulnerable saving to file!")
with open("vulnerable.txt", "a") as vuln_list:
vuln_list.write(target + "\n")
except Exception as e:
print("error")