incendiarySolution Posted March 3, 2017 Posted March 3, 2017 So if Im crafting a payload and i want the bunny to make a decision based on the output of a terminal she's typing in, would I be able to use something like 'nmap localhost >> storage' then use an if-then to read the file the data is stored to and plan an attack vector that way? 'if ssh, then ssh' My experience with storage is that simultanious access doesnt work well, is that true here? Quote
Tasty Posted March 10, 2017 Posted March 10, 2017 This is one of the wonderful things with bashbunny. You have the full power of bash, so conditional statement away. Here is some references, if I have time later ill update with some code about your specific ask, but at a high level im thinking NMAP -> file, then cat the file through grep and find the SSH then do a conditional based on the "open/block" state of it. http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-6.html http://stackoverflow.com/questions/28739456/parse-nmap-result-bash https://nmap.org/book/output-formats-grepable-output.html Cheers! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.