RustScan Tryhackme Wrietup

https://tryhackme.com/room/rustscan

Task 2: Installing RustScan

Task 3: Accessible

Task 4: Fast

Task 5: Extensible

# Test/Example ScriptConfig file# Tags to filter on scripts. Only scripts containing all these tags will run.
tags = ["core_approved", "example"]
# If it's present then only those scripts will run which has a tag ports = "80". Not yet implemented.
#
# ex.:
# ports = ["80"]
# ports = ["80","81","8080"]
ports = ["80"]
# Only this developer(s) scripts to run. Not yet implemented.
developer = ["example"]
#!/usr/bin/python3
#tags = ["core_approved", "example",]
#developer = [ "example", "https://example.org" ]
#trigger_port = "80"
#call_format = "python3 {{script}} {{ip}} {{port}}"
# Scriptfile parser stops at the first blank line with parsing.
# This script will run itself as an argument with the system installed python interpreter, only scanning port 80.
# Unused filed: ports_separator = ","
import sysprint('Python script ran with arguments', str(sys.argv))

Tags

Developer

Trigger Point

Call Format

#call_format = "python3 {{script}} {{ip}} {{port}}"

The Code itself

Contributing / Making Scripts

Running Other Tools with RustScan

nmap -vvv -p {{port}} {{ip}}

Answer: rustscan_scripts.toml

Answer: T

Answer: F

Task 6: Adaptive

Task 7: Scanning Time!

Multiple IP Scanning

rustscan -a 127.0.0.1,0.0.0.0

Host Scanning

➜ rustscan -a www.google.com, 127.0.0.1
Open 216.58.210.36:1
Open 216.58.210.36:80
Open 216.58.210.36:443
Open 127.0.0.1:53
Open 127.0.0.1:631

CIDR support

➜ rustscan -a 192.168.0.0/30

Hosts file as input

192.168.0.1
192.168.0.2
google.com
192.168.0.0/30
127.0.0.1
rustscan -a 'hosts.txt'

Individual Port Scanning

➜ rustscan -a 127.0.0.1 -p 53
53

Multiple selected port scanning

➜ rustscan -a 127.0.0.1 -p 53,80,121,65535
53

Ranges of ports

➜ rustscan -a 127.0.0.1 --range 1-1000    
53,631

Adjusting the Nmap arguments

rustscan -a 127.0.0.1 -- -A -sC
nmap -Pn -vvv -p $PORTS -A -sC 127.0.0.1

Random Port Ordering

➜ rustscan -a 127.0.0.1 --range 1-1000 --scan-order "Random"
53,631

Answer: 2

Answer: httponly

Task 8: RustScan Quiz

Answer: -h

Answer: -q

Answer: -r

Answer: -v

Answer: -b

Answer: -t

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store