Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit a12ec07

Browse files
author
byt3bl33d3r
committed
some code flipping
1 parent 46c82fd commit a12ec07

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Mimikatz's output then gets POST'ed back to our HTTP server, saved to a log file
259259
[*] 172.16.206.132 Saved POST data to Mimikatz-172.16.206.132-2015-08-19_18:57:48.log
260260
```
261261

262-
Lets Spider the C$ share starting from the ```Users``` folder for the pattern ```password``` in all files and directories (concurrently):
262+
Lets spider the C$ share starting from the ```Users``` folder for the pattern ```password``` in all files and directories (concurrently):
263263
```
264264
#~ python crackmapexec.py -t 150 172.16.206.0/24 -u username -p password --spider Users --depth 10 --pattern password
265265
[*] 172.16.206.132:445 is running Windows 6.1 Build 7601 (name:DRUGCOMPANY-PC) (domain:DRUGCOMPANY-PC)

crackmapexec.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,6 +2831,14 @@ def connect(host):
28312831
for user in users:
28322832
print_att('{}: {}'.format(user[1], user[0]))
28332833

2834+
if args.list_shares:
2835+
share_list = _listShares(smb)
2836+
print_succ('{}:{} {} Available shares:'.format(host, args.port, s_name))
2837+
print_att('\tSHARE\t\t\tPermissions')
2838+
print_att('\t-----\t\t\t-----------')
2839+
for share, perm in share_list.iteritems():
2840+
print_att('\t{}\t\t\t{}'.format(share, perm))
2841+
28342842
if args.check_uac:
28352843
remoteOps = RemoteOperations(smb)
28362844
remoteOps.enableRegistry()
@@ -2911,14 +2919,6 @@ def connect(host):
29112919

29122920
atsvc_exec.cleanup()
29132921

2914-
if args.list_shares:
2915-
share_list = _listShares(smb)
2916-
print_succ('{}:{} {} Available shares:'.format(host, args.port, s_name))
2917-
print_att('\tSHARE\t\t\tPermissions')
2918-
print_att('\t-----\t\t\t-----------')
2919-
for share, perm in share_list.iteritems():
2920-
print_att('\t{}\t\t\t{}'.format(share, perm))
2921-
29222922
try:
29232923
smb.logoff()
29242924
except:

0 commit comments

Comments
 (0)