⚙️CLI

Lotus CLI usage

  • Custom headers

cat urls.txt | lotus urls script.lua -o out.json --headers '{"X-API": "123"}'
  • Connection Timeout

cat urls.txt | lotus urls script.lua -o out.json -t 5 # 5secs
  • Exit after X number of script errors

cat urls.txt | lotus urls script.lua -o out.json --exit-after-errors 3000
  • Requests Limit and sleep delay

cat urls.txt | lotus urls script.lua -o out.json --requests-limit 2000 --delay 5
# sleep 5 secs for every 2000 request
  • Saving logs

cat urls.txt | lotus urls script.lua -o out.json --log logs.txt
  • Using HTTP Proxy

cat urls.txt | lotus urls script.lua -o out.json -p http://localhost:8080
  • How many script to run for ever url

cat urls.txt | lotus urls script.lua -o out.json -s 5
  • Reading urls from text instead of pipe

lotus urls script.lua -o out.json --urls urls.txt
  • http Redirects limit

Note: this option can be changed from lua scripts in the Lua Runtime

Also the counter starts with 1 not 0

cat urls.txt | lotus urls script.lua -o out.json -r 1 # no redirects
  • How many url to scan at the same time

cat urls.txt | lotus urls script.lua -o out.json -w 50

Last updated