Closed MindPatch closed 1 year ago
for avoiding server block, we can add --sleep-sec-after to sleep 1-5secs after sending requests number of this option value
--sleep-sec-after
$ lotus --sleep-sec-after 100 ..etc... > sending 100 > sleep 5 sec > reset the counter to 0
you can start from here https://github.com/rusty-sec/lotus/blob/master/src/core/utils/mod.rs#L34
pub fn send(&mut self, url: String) -> HashMap<String, RespType> { let mut resp_data: HashMap<String, RespType> = HashMap::new(); match reqwest::blocking::get(url) { Ok(resp) => { *self.many_sent.lock().unwrap() += 1;
Assigne pls
$ lotus urls ssti.lua -o out.json --delay 5 --requests-limit 100
for avoiding server block, we can add
--sleep-sec-after
to sleep 1-5secs after sending requests number of this option valueyou can start from here https://github.com/rusty-sec/lotus/blob/master/src/core/utils/mod.rs#L34