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
Change to Target URL Format #11
Conversation
Install.sh and reopen() function
I've added more information so it can install on other linux distribution other than Debian flavours. Anything you can arrange. I've placed some comments on the file to be easy read
Update install.sh to install in other Systems
* remove chmod +x instruction from README as it's not needed (git keeps the permissions) * don't use `sudo` to execute the install script as it contains `sudo` commands * link to the MIT license in the README * replace tabs with spaces * remove trailing whitespaces * add newline at end of files In install.sh: * use a variable to hold the dependencies instead of repeating them * use the `--user` flag for pip install * use /usr/local/bin instead of /usr/bin for symlink * store dirsearch in ~/.opt instead of /opt: don't pollute the system with user software, don't use root to clone a git repository * use `$()` instead of backquotes * add quotes for variables * use env to find bash
Various fixes
Code Refactoring
Chore
Contributorsluizmlo, Anteste, tfprelvas, NicolasCARPi Commit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolving inability to scan IP based URLs
|
||
conf.create_dir(full_output) | ||
|
||
full_ip = conf.socket.gethostbyname(full_host) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#commenting out
#full_ip = conf.socket.gethostbyname(full_host)
conf.full_host = None | ||
elif gnome_installed: | ||
conf.os.system( | ||
f"gnome-terminal -- bash -c 'nmap -A {full_ip} -o \"{full_output}/nmap.txt\" && bash'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#Going with Full Host Instead
f"gnome-terminal -- bash -c 'nmap -A {full_host} -o "{full_output}/nmap.txt" && bash'"
conf.clear() | ||
|
||
conf.os.system( | ||
f"gnome-terminal -- bash -c 'python3 {conf.home}/.local/share/dirsearch/dirsearch.py -u {full_host} --simple-report=\"{full_output}/dirsearch.txt\" && bash'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#Adding http in input
f"gnome-terminal -- bash -c 'python3 {conf.home}/.local/share/dirsearch/dirsearch.py -u http://{full_host} --simple-report="{full_output}/dirsearch.txt" && bash'"
conf.clear() | ||
|
||
conf.os.system( | ||
f"gnome-terminal -- bash -c 'nikto +h {full_host} -output \"{full_output}/nikto.txt\" && bash'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#Adding http in input
f"gnome-terminal -- bash -c 'nikto +h http://{full_host} -output "{full_output}/nikto.txt" && bash'"
conf.clear() | ||
|
||
else: | ||
conf.os.system(f"nmap -A {full_ip} -o {full_output}/nmap.txt") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#Going with full_host instead
conf.os.system(f"nmap -A {full_host} -o {full_output}/nmap.txt")
f"python3 ~/.local/share/dirsearch/dirsearch.py -u {full_host} --simple-report='{full_output}/dirsearch.txt'" | ||
) | ||
|
||
conf.os.system(f"nikto +h {full_host} -output {full_output}/nikto.txt") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#Going with full_host instead
conf.os.system(f"nikto +h http://{full_host} -output {full_output}/nikto.txt")
print("===========================================================") | ||
|
||
full_host = input( | ||
conf.colored("\nEnter the target URL : ", "green", attrs=["bold"])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#Change request parameter
conf.colored("\nEnter the target IP, Hostname or FQDN : ", "green", attrs=["bold"]))
Hey John , thanks for the submiting this pull request. |
Merge pull request #11 from Anteste/1.x
(Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.)
What does this implement/fix? Explain your changes.
…
Does this close any currently open issues?
…
Any relevant logs, error output, etc?
…
Any other comments?
…
Where has this been tested?
Operating System: kali Linux …
Platform:Kali Linux Python 3 …
Target Platform: Ubuntu …
Python Version: Python 3 …