fix for obsidian graphs plugin

This commit is contained in:
oxeo0 2025-05-16 10:24:34 +02:00
parent ec6691f732
commit 519fd1c612
2 changed files with 2 additions and 2 deletions

View file

@ -292,7 +292,7 @@ So let's take a look at his home directory:
sh -c "nmap --top-ports 10 -oN recon/${ip}.nmap ${ip} 2>&1 >/dev/null" &
done
if [[ $(wc -l <****$log) -gt 0 ]]; then echo -n > $log; fi
if [ [ $(wc -l <****$log) -gt 0 ] ]; then echo -n > $log; fi
Here we see that there is a bashscript that takes a logfile from **/home/kid/logs/hackers** it, gets ip addresses from it and runs nmap against each of them. However the input isn't being sanitized, so let's use it to get a reverse shell: