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

_port_ doesn't seem to convert to a port when passing in a port list #47

Closed
mrpaulstone opened this issue Jun 6, 2019 · 7 comments · Fixed by #49
Closed

_port_ doesn't seem to convert to a port when passing in a port list #47

mrpaulstone opened this issue Jun 6, 2019 · 7 comments · Fixed by #49
Assignees
Labels
bug Something isn't working

Comments

@mrpaulstone
Copy link

I ran the script with the settings as described to use nikto and have this error, it seems to not be converting port into the port number;

  • Nikto v2.1.6


  • 0 host(s) tested
@prodigysml prodigysml self-assigned this Jun 6, 2019
@prodigysml
Copy link
Collaborator

Seems to be working fine for me.
image

Can we please get some more details of the exact command being run and OS details, python details, etc.?

If at all possible, please test this command out too and post the output:
interlace -t localhost -p 12 -c "nikto -h _target_:_port_"

Thanks for using interlace!

@codingo
Copy link
Owner

codingo commented Jun 6, 2019

Also can't reproduce on latest master:

➜  Interlace git:(master) interlace -t localhost -p 12 -c "nikto -h _target_:_port_"
=====================================================
Interlace v1.5.2	by Michael Skelton (@codingo_)
                  	& Sajeeb Lohani (@sml555_)
=====================================================
[17:09:55] [THREAD] [nikto -h localhost:12] Added to Queue 
  0%|          | 0/1 [00:00<?, ?it/s]- Nikto v2.1.6

100%|██████████| 1/1 [00:00<00:00,  8.39it/s]

@codingo
Copy link
Owner

codingo commented Jun 6, 2019

Actualy, I've tested with pL, port list, and it does appear broken there. Updating issue:

➜  Interlace git:(master) interlace -t localhost -pL /tmp/ports.txt -c "nikto -h _target_:_port_" 
=====================================================
Interlace v1.5.2	by Michael Skelton (@codingo_)
                  	& Sajeeb Lohani (@sml555_)
=====================================================
[17:10:32] [THREAD] [nikto -h localhost:_port_] Added to Queue 
  0%|          | 0/1 [00:00<?, ?it/s]- Nikto v2.1.6

100%|██████████| 1/1 [00:00<00:00, 14.64it/s]

@codingo codingo changed the title _port_ doesn't seem to convert to an actual port number _port_ doesn't seem to convert to a port when passing in a port list Jun 6, 2019
@codingo codingo added the bug Something isn't working label Jun 6, 2019
@mrpaulstone
Copy link
Author

mrpaulstone commented Jun 6, 2019

The command I am having problems with is:
interlace -tL targets.txt -o /root/outputfolderhere/ -cL commands.txt -p 443

@prodigysml
Copy link
Collaborator

I was not able to reproduce the issue with the following config:
Output:

interlace -tL targets.txt -cL commands.txt -p 443
=================================================================================
Interlace v1.5.1	by Michael Skelton (@codingo_) & Sajeeb Lohani (@sml555_)
=================================================================================
[08:40:59] [THREAD] [echo 128.0.0.1:443] Added to Queue 
[08:40:59] [THREAD] [echo 127.0.0.1:443] Added to Queue 
[08:40:59] [THREAD] [echo 127.0.0.1123:443] Added to Queue 
[08:40:59] [THREAD] [echo 128.0.0.1123:443] Added to Queue 
128.0.0.1:443                                                                                                                                                               

127.0.0.1123:443                                                                                                                                                            

127.0.0.1:443                                                                                                                                                               

128.0.0.1123:443                                                                                                                                                            

100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 30.16it/s]

targets.txt

127.0.0.1
128.0.0.1

commands.txt

echo _target_:_port_
echo _target_123:_port_

If you could provide the list of commands and targets that trigger this bug, it would be appreciated.

@Ready-Hacker-One
Copy link

When adding nmap to the list without the port variable it breaks the port variable for nikto and sslscan.

nikto --host target:port >> output/target-nikto.txt
sslscan target:port >> output/target-sslscan.txt
nmap -sV --script=http-methods target >> output/target-nmap.txt

@codingo
Copy link
Owner

codingo commented Jun 10, 2019

Thank-you for the extra detail @Ready-Hacker-One. @prodigysml and I are discussing this and will look into it shortly.

prodigysml added a commit that referenced this issue Jun 11, 2019
…ust the python3 set object to de-duplicate all commands (which it is intended to do). Should fix #47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants