Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when running #10

Open
italy2010 opened this issue Apr 26, 2017 · 7 comments
Open

error when running #10

italy2010 opened this issue Apr 26, 2017 · 7 comments

Comments

@italy2010
Copy link

C:\Users\dodo>C:\Users\dodo\Downloads\Compressed\doublepulsar-detection-script-master_2\doublepulsar-detection-script-master\detect_doublepulsar_smb.py --ip xxxxxxxxxx
Traceback (most recent call last):
File "C:\Users\dodo\Downloads\Compressed\doublepulsar-detection-script-master_2\doublepulsar-detection-script-master\detect_doublepulsar_smb.py", line 155, in
check_ip(ip)
File "C:\Users\dodo\Downloads\Compressed\doublepulsar-detection-script-master_2\doublepulsar-detection-script-master\detect_doublepulsar_smb.py", line 98, in check_ip
modified_trans2_session_setup[28] = tree_id[0]
IndexError: string index out of range

@EpicLPer
Copy link

Yep, same here.

@MichalPlays
Copy link

Yup, same error https://abload.de/img/erwdwk1g.jpg

@SaiGonSeamus
Copy link

I have the same error running under Debian 8.6

@countercept
Copy link
Contributor

I haven't seen that specific error before and it's very difficult to know exactly what is happening without at least a PCAP of the network traffic to look at.

However, the OS versions I have seen fail to get all the way through the protocol sequence have been ones that the implant itself cannot communicate with successfully either so the likelihood is that they won't be infected if so. For example, windows 10 and 2012 both fail but then I had the same with issue with the implant itself on those OS versions.

@marcellogiannoni
Copy link

marcellogiannoni commented Apr 28, 2017

I got the same problem here CentOs 7
It hangs if the command is run agains a list of IPs defined in a file

python detect_doublepulsar_smp.py --file smb.lst

if I run the command with a single IP
python detect_doublepulsar_smp.py --ip 192.168.9.10

I get:
Traceback (most recent call last):
File "./detect_doublepulsar_smb.py", line 169, in
check_ip(ip)
File "./detect_doublepulsar_smb.py", line 94, in check_ip
modified_tree_connect_request[32] = user_id[0]
IndexError: string index out of range

This is happening at line 81
session_setup_response = s.recv(1024) --> return nothing so it fails at the next statement
modified_tree_connect_request[32] = user_id[0]

Not sure why this is happening at the network traffic level. I just added a simple control to avoid the hanging if run the command against a list of IPs defined in a file

session_setup_response = s.recv(1024)
if session_setup_response == "":
print "No Response from the socket"
sys.exit()

@NJC2
Copy link

NJC2 commented Apr 28, 2017

I've tried using the built in Bash shell in Windows 10 Anniversary Edition and on my notebook running Linux-Mint. I get the same error on both.

@g33xter
Copy link

g33xter commented May 13, 2017

screen shot 2017-05-12 at 23 59 01
Its working great without VPN, but when I enable VPN it start throwing errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants