armada icon indicating copy to clipboard operation
armada copied to clipboard

RUST_BACKTRACE=1 problem

Open kacakb opened this issue 3 years ago • 5 comments

i run this command :sudo armada --target_file sortip -p 1-444

but output is:

thread 'main' panicked at 'Unable to parse target ''.: IncorrectIpCIDRString', /home/k/.cargo/registry/src/github.com-1ecc6299db9ec823/armada-1.1.2/src/args.rs:93:58 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

kacakb avatar Jul 08 '22 20:07 kacakb

Do you have a sample from that sortip file? I suspect it's formatted in a way that is breaking the file parsing

d0nutptr avatar Jul 09 '22 04:07 d0nutptr

in this format:

1.1.x.x 1.2.x.x 1.3.x.x 1.4.x.x 1.5.x.x 1.6.x.x 1.7.x.x .. ..

kacakb avatar Jul 09 '22 13:07 kacakb

Can you pipe that into xxd and show the output? Something appears to be off about your file. I just ran a similar test and it worked fine.

(what I had)

d0nut@bakery:~/src/sandbox$ cat ips.txt 
1.1.1.1
1.2.3.4
8.8.8.8
d0nut@bakery:~/src/sandbox$ cat ips.txt | armada -p 80,443
1.1.1.1:80
1.1.1.1:443
8.8.8.8:443

This is what I have when I pipe out to xxd

d0nut@bakery:~/src/sandbox$ cat ips.txt | xxd
00000000: 312e 312e 312e 310a 312e 322e 332e 340a  1.1.1.1.1.2.3.4.
00000010: 382e 382e 382e 380a                      8.8.8.8.

(delimited with 0x0a)

d0nutptr avatar Jul 10 '22 00:07 d0nutptr

Nothing? I'll close as unreproducible this weekend if not

d0nutptr avatar Jul 13 '22 08:07 d0nutptr

There was a blank space in my word list. I fixed it and it was fixed.Thank you.

kacakb avatar Jul 13 '22 10:07 kacakb

No worries! Sorry I took so long to get back to this xD I'll close this now

d0nutptr avatar Dec 01 '22 10:12 d0nutptr