Last active
March 29, 2022 14:48
-
-
Save jordan-wright/4490393 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nmap -A -Pn -v -p1-1024 192.168.56.103 | |
nmap -A -Pn -v -p1024-10000 192.168.56.103 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@bt:/pentest/scanners/dnmap# python dnmap_client.py -s 192.168.56.101 -a minion1 | |
+----------------------------------------------------------------------+ | |
| dnmap Client Version 0.6 | | |
| This program is free software; you can redistribute it and/or modify | | |
| it under the terms of the GNU General Public License as published by | | |
| the Free Software Foundation; either version 2 of the License, or | | |
| (at your option) any later version. | | |
| | | |
| Author: Garcia Sebastian, [email protected] | | |
| www.mateslab.com.ar | | |
+----------------------------------------------------------------------+ | |
Client Started... | |
Nmap output files stored in 'nmap_output' directory... | |
Starting connection... | |
Client connected succesfully... | |
Waiting for more commands.... | |
+ No -oA given. We add it anyway so not to lose the results. Added -oA 5807742 | |
Command Executed: nmap -A -Pn -v -p1-1024 192.168.56.103 -oA 5807742 | |
Sending output to the server... | |
Waiting for more commands.... | |
+ No -oA given. We add it anyway so not to lose the results. Added -oA 71264162 | |
Command Executed: nmap -A -Pn -v -p1024-10000 192.168.56.103 -oA 71264162 | |
Sending output to the server... | |
Waiting for more commands.... | |
^CConnection lost. Reason: Connection to the other side was lost in a non-clean fashion: Connection lost. | |
Trying to reconnect in 10 secs. Please wait... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@bt:/pentest/scanners/dnmap# python dnmap_client.py -h | |
+----------------------------------------------------------------------+ | |
| dnmap Client Version 0.6 | | |
| This program is free software; you can redistribute it and/or modify | | |
| it under the terms of the GNU General Public License as published by | | |
| the Free Software Foundation; either version 2 of the License, or | | |
| (at your option) any later version. | | |
| | | |
| Author: Garcia Sebastian, [email protected] | | |
| www.mateslab.com.ar | | |
+----------------------------------------------------------------------+ | |
usage: dnmap_client.py <options> | |
options: | |
-s, --server-ip IP address of dnmap server. | |
-p, --server-port Port of dnmap server. Dnmap port defaults to 46001 | |
-a, --alias Your name alias so we can give credit to you for your help. Optional | |
-d, --debug Debuging. | |
-m, --max-rate Force nmaps commands to use at most this rate. Useful to slow nmap down. Adds the --max-rate parameter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@bt:/pentest/scanners/dnmap# python dnmap_server.py -h | |
+----------------------------------------------------------------------+ | |
| dnmap_server Version 0.6 | | |
| This program is free software; you can redistribute it and/or modify | | |
| it under the terms of the GNU General Public License as published by | | |
| the Free Software Foundation; either version 2 of the License, or | | |
| (at your option) any later version. | | |
| | | |
| Author: Garcia Sebastian, [email protected] | | |
| www.mateslab.com.ar | | |
+----------------------------------------------------------------------+ | |
usage: dnmap_server.py <options> | |
options: | |
-f, --nmap-commands Nmap commands file | |
-p, --port TCP port where we listen for connections. | |
-L, --log-file Log file. Defaults to /var/log/dnmap_server.conf. | |
-l, --log-level Log level. Defaults to info. | |
-v, --verbose_level Verbose level. Give a number between 1 and 5. Defaults to 1. Level 0 means be quiet. | |
-t, --client-timeout How many time should we wait before marking a client Offline. We still remember its values just in case it cames back. | |
-s, --sort Field to sort the statical value. You can choose from: Alias, #Commands, UpTime, RunCmdXMin, AvrCmdXMin, Status | |
-P, --pem-file pem file to use for TLS connection. By default we use the server.pem file provided with the server in the current directory. | |
dnmap_server uses a '<nmap-commands-file-name>.dnmaptrace' file to know where it must continue reading the nmap commands file. If you want to start over again, | |
just delete the '<nmap-commands-file-name>.dnmaptrace' file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@bt:/pentest/scanners/dnmap# python dnmap_server.py -f ~/commands.txt | |
+----------------------------------------------------------------------+ | |
| dnmap_server Version 0.6 | | |
| This program is free software; you can redistribute it and/or modify | | |
| it under the terms of the GNU General Public License as published by | | |
| the Free Software Foundation; either version 2 of the License, or | | |
| (at your option) any later version. | | |
| | | |
| Author: Garcia Sebastian, [email protected] | | |
| www.mateslab.com.ar | | |
+----------------------------------------------------------------------+ | |
=| MET:0:00:30.015147 | Amount of Online clients: 0 |= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jordan@pentest:~$ sudo apt-get install python-openssl python-twisted | |
jordan@pentest:~$ wget http://downloads.sourceforge.net/project/dnmap/dnmap_v0.6.tgz | |
jordan@pentest:~$ tar -xvzf dnmap_v0.6.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ Client ID connected: 192.168.56.102:49747 (minion1) | |
=| MET:0:00:55.011100 | Amount of Online clients: 1 |= | |
Clients connected | |
----------------- | |
Alias #Commands Last Time Seen (time ago) UpTime Version IsRoot RunCmdXMin AvrCmdXMin Status | |
minion1 1 Jan 10 18:26:27 ( 0' 1") 0h 0m 0.6 True 0.0 0.0 Executing | |
=| MET:0:01:00.015067 | Amount of Online clients: 1 |= | |
Clients connected | |
----------------- | |
Alias #Commands Last Time Seen (time ago) UpTime Version IsRoot RunCmdXMin AvrCmdXMin Status | |
minion1 1 Jan 10 18:26:27 ( 0' 6") 0h 0m 0.6 True 0.0 0.0 Executing | |
=| MET:0:01:05.014816 | Amount of Online clients: 1 |= | |
Clients connected | |
----------------- | |
Alias #Commands Last Time Seen (time ago) UpTime Version IsRoot RunCmdXMin AvrCmdXMin Status | |
minion1 1 Jan 10 18:26:27 ( 0'11") 0h 0m 0.6 True 0.0 0.0 Executing | |
=| MET:0:01:10.010916 | Amount of Online clients: 1 |= | |
Clients connected | |
----------------- | |
Alias #Commands Last Time Seen (time ago) UpTime Version IsRoot RunCmdXMin AvrCmdXMin Status | |
minion1 2 Jan 10 18:26:43 ( 0' 0") 0h 0m 0.6 True 3.8 1.9 Executing | |
=| MET:0:01:20.014574 | Amount of Online clients: 1 |= | |
Clients connected | |
----------------- | |
Alias #Commands Last Time Seen (time ago) UpTime Version IsRoot RunCmdXMin AvrCmdXMin Status | |
minion1 2 Jan 10 18:26:43 ( 0'10") 0h 0m 0.6 True 3.8 1.9 Executing | |
=| MET:0:01:30.010685 | Amount of Online clients: 1 |= | |
Clients connected | |
----------------- | |
Alias #Commands Last Time Seen (time ago) UpTime Version IsRoot RunCmdXMin AvrCmdXMin Status | |
minion1 2 Jan 10 18:27:00 ( 0' 4") 0h 0m 0.6 True 3.6 2.5 Online | |
+ Connection lost for minion1 (192.168.56.102:49747). | |
=| MET:0:01:35.011836 | Amount of Online clients: 0 |= | |
Clients connected | |
----------------- | |
Alias #Commands Last Time Seen (time ago) UpTime Version IsRoot RunCmdXMin AvrCmdXMin Status | |
^Croot@bt:/pentest/scanners/dnmap# ls | |
dnmap_client.py dnmap_server.py nmap_results README server.pem | |
root@bt:/pentest/scanners/dnmap# cd nmap_results/ | |
root@bt:/pentest/scanners/dnmap/nmap_results# ls | |
5807742.nmap 71264162.nmap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment