Closed cwaazywabbit closed 4 years ago
Same problem here, thanks for your time @sethsec
I'm going to look at this tonight. Just an FYI, the reason I have not gotten to this yet is because I almost always run nmap outside of celerystalk and just import the xml using the import command. That said, I'm hoping this is an easy fix.
We're just lazy, Seth ;)
Thanks for looking into this.
@cwaazywabbit or @joeminicucci - I think i fixed this. Either of your brave enough to checkout the dev branch and test it out? :)
Yup, looks to be working 👍
# ps aux | grep nmap
root 5698 1.0 0.0 2392 704 pts/2 S 11:58 0:00 /bin/sh -c nmap 194.127.138.51 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.51/194.127.138.51_nmap_tcp_scan
root 5699 0.6 0.0 2392 760 pts/2 S 11:58 0:00 /bin/sh -c nmap 194.127.138.48 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.48/194.127.138.48_nmap_tcp_scan
root 5700 0.5 0.0 2392 760 pts/2 S 11:58 0:00 /bin/sh -c nmap 194.127.138.151 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.151/194.127.138.151_nmap_tcp_scan
root 5701 0.5 0.0 2392 704 pts/2 S 11:58 0:00 /bin/sh -c nmap 194.127.138.152 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.152/194.127.138.152_nmap_tcp_scan
root 5702 0.4 0.0 2392 764 pts/2 S 11:58 0:00 /bin/sh -c nmap 194.127.138.56 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.56/194.127.138.56_nmap_tcp_scan
root 5703 0.5 0.0 2392 708 pts/2 S 11:58 0:00 /bin/sh -c nmap 194.127.138.50 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.50/194.127.138.50_nmap_tcp_scan
root 5704 9.3 0.4 57612 42780 pts/2 S 11:58 0:01 nmap 194.127.138.48 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.48/194.127.138.48_nmap_tcp_scan
root 5705 11.6 0.4 58808 43724 pts/2 S 11:58 0:01 nmap 194.127.138.51 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.51/194.127.138.51_nmap_tcp_scan
root 5706 9.2 0.4 57632 42712 pts/2 S 11:58 0:01 nmap 194.127.138.50 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.50/194.127.138.50_nmap_tcp_scan
root 5707 11.6 0.4 57596 42752 pts/2 S 11:58 0:01 nmap 194.127.138.151 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.151/194.127.138.151_nmap_tcp_scan
root 5708 9.0 0.4 57620 42808 pts/2 S 11:58 0:01 nmap 194.127.138.56 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.56/194.127.138.56_nmap_tcp_scan
root 5709 9.1 0.4 57476 42600 pts/2 S 11:58 0:01 nmap 194.127.138.152 -n -sV -Pn -p- -T5 -oA /root/Desktop/results/194.127.138.152/194.127.138.152_nmap_tcp_scan
root 5848 0.0 0.0 6156 840 pts/3 S+ 11:59 0:00 grep --color=auto nmap
# ll /root/Desktop/results/194.127.138.51/194.127.138.51_nmap_tcp_scan*
-rw-r--r-- 1 root root 441 May 7 12:00 /root/Desktop/results/194.127.138.51/194.127.138.51_nmap_tcp_scan.gnmap
-rw-r--r-- 1 root root 563 May 7 12:00 /root/Desktop/results/194.127.138.51/194.127.138.51_nmap_tcp_scan.nmap
-rw-r--r-- 1 root root 1703 May 7 12:00 /root/Desktop/results/194.127.138.51/194.127.138.51_nmap_tcp_scan.xml
So I have the following in my config file
but when you run
./celerystalk nmap
then do./celerystalk query brief
, you would see this:however, no files are written :-/ Lo-and-behold what's really being executed