Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed deps/__init__.pyc
Binary file not shown.
Binary file removed deps/goldenPac.pyc
Binary file not shown.
Binary file removed deps/ms08_067.pyc
Binary file not shown.
Binary file removed deps/ms14_068.pyc
Binary file not shown.
Binary file removed deps/ndr.pyc
Binary file not shown.
Binary file removed deps/psexec.pyc
Binary file not shown.
Binary file removed deps/secretsdump.pyc
Binary file not shown.
Binary file removed deps/smb_exploit.pyc
Binary file not shown.
Binary file removed deps/smbexec.pyc
Binary file not shown.
Binary file removed deps/wmiexec.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apt-get install -y autoconf automake autopoint libtool pkg-config

virtualenv -p python2 portia
source portia/bin/activate
pip install pysmb tabulate termcolor xmltodict pyasn1 pycrypto pyOpenSSL dnspython netaddr
pip install pysmb tabulate termcolor xmltodict pyasn1 pycrypto pyOpenSSL dnspython netaddr nmap pymssql

ln -sf /opt /pentest

Expand Down
28 changes: 13 additions & 15 deletions portia.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from deps.secretsdump import *
from deps.smb_exploit import *
from deps.goldenPac import *
from modules import ms08_067
from modules import ms17_010
from deps import ms08_067
#from deps import ms17_010
from random import randint
#from deps.ms14_068 import *
import nmap
Expand Down Expand Up @@ -5383,8 +5383,6 @@ def my_tcp_server():
os._exit(1)

if args.module=="vuln":
from modules import ms08_067
from modules import ms17_010
ms08_067List=[]
for ip in nbList:
tmpResultList=ms08_067.check(ip)
Expand All @@ -5396,17 +5394,17 @@ def my_tcp_server():
if tmpIP not in ms08_067List:
ms08_067List.append(tmpIP)
#print (setColor("[+]", bold, color="green"))+" "+tmpIP+":445 | "+(setColor("[MS08-067]", color="green"))
result=ms17_010.check(ip)
if 'is likely VULNERABLE ' in result:
result=result.replace('[+] [','')
result=result.replace('(','')
result=result.replace(')','')
if ip not in ms08_067List:
result=result.replace('] is likely VULNERABLE to MS17-010!',':445 | '+(setColor("[MS17-010]", color="green")))
else:
result=result.replace('] is likely VULNERABLE to MS17-010!',':445 | '+(setColor("[MS08-067][MS17-010]", color="green")))
print (setColor("[+] ", bold, color="green"))+result
os._exit(1)
# result=ms17_010.check(ip)
# if 'is likely VULNERABLE ' in result:
# result=result.replace('[+] [','')
# result=result.replace('(','')
# result=result.replace(')','')
# if ip not in ms08_067List:
# result=result.replace('] is likely VULNERABLE to MS17-010!',':445 | '+(setColor("[MS17-010]", color="green")))
# else:
# result=result.replace('] is likely VULNERABLE to MS17-010!',':445 | '+(setColor("[MS08-067][MS17-010]", color="green")))
# print (setColor("[+] ", bold, color="green"))+result
# os._exit(1)

if args.module=='mimikatz':
tmpResultList=[]
Expand Down