┌──(kali㉿kali)-[~] └─$ sudo nmap --min-rate 10000 -p- 10.10.10.10 Starting Nmap 7.94 ( https://nmap.org ) at 2023-06-28 22:59 EDT Nmap scan report for 10.10.10.10 Host is up (0.00053s latency). Not shown: 65527 closed tcp ports (reset) PORT STATE SERVICE 80/tcp open http 111/tcp open rpcbind 443/tcp open https 2049/tcp open nfs 40933/tcp open unknown 42973/tcp open unknown 44923/tcp open unknown 48347/tcp open unknown MAC Address: 00:0C:29:61:24:B2 (VMware)
Nmap done: 1 IP address (1 host up) scanned in 7.87 seconds
┌──(kali㉿kali)-[~] └─$ sudo nmap -sT -sV -sC -O -p80,111,443,2049,40933,42973,44923,48347 10.10.10.10 Starting Nmap 7.94 ( https://nmap.org ) at 2023-06-28 23:01 EDT Nmap scan report for 10.10.10.10 Host is up (0.00038s latency).
PORT STATE SERVICE VERSION 80/tcp open http Apache httpd 2.4.38 ((Ubuntu)) |_http-title: dpwwn-02 |_http-server-header: Apache/2.4.38 (Ubuntu) 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 | 100003 3 2049/udp nfs | 100003 3 2049/udp6 nfs | 100003 3,4 2049/tcp nfs | 100003 3,4 2049/tcp6 nfs | 100005 1,2,3 34176/udp mountd | 100005 1,2,3 34527/udp6 mountd | 100005 1,2,3 42973/tcp mountd | 100005 1,2,3 59857/tcp6 mountd | 100021 1,3,4 37005/tcp6 nlockmgr | 100021 1,3,4 40564/udp6 nlockmgr | 100021 1,3,4 40933/tcp nlockmgr | 100021 1,3,4 41906/udp nlockmgr | 100227 3 2049/tcp nfs_acl | 100227 3 2049/tcp6 nfs_acl | 100227 3 2049/udp nfs_acl |_ 100227 3 2049/udp6 nfs_acl 443/tcp open http Apache httpd 2.4.38 ((Ubuntu)) |_http-title: dpwwn-02 |_http-server-header: Apache/2.4.38 (Ubuntu) 2049/tcp open nfs 3-4 (RPC #100003) 40933/tcp open nlockmgr 1-4 (RPC #100021) 42973/tcp open mountd 1-3 (RPC #100005) 44923/tcp open mountd 1-3 (RPC #100005) 48347/tcp open mountd 1-3 (RPC #100005) MAC Address: 00:0C:29:61:24:B2 (VMware) Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device type: general purpose Running: Linux 4.X|5.X OS CPE: cpe:/o:linux:linux_kernel:4 cpe:/o:linux:linux_kernel:5 OS details: Linux 4.15 - 5.8 Network Distance: 1 hop
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 19.37 seconds
┌──(kali㉿kali)-[~] └─$ sudo nmap --script=vuln -p80,111,443,2049,40933,42973,44923,48347 10.10.10.10 [sudo] password for kali: Starting Nmap 7.94 ( https://nmap.org ) at 2023-06-28 23:26 EDT Nmap scan report for 10.10.10.10 Host is up (0.00044s latency).
PORT STATE SERVICE 80/tcp open http |_http-dombased-xss: Couldn\'t find any DOM based XSS. |_http-stored-xss: Couldn\'t find any stored XSS vulnerabilities. |_http-csrf: Couldn\'t find any CSRF vulnerabilities. |_http-vuln-cve2017-1001000: ERROR: Script execution failed (use -d to debug) | http-enum: | /wordpress/: Blog |_ /wordpress/wp-login.php: Wordpress login page. 111/tcp open rpcbind 443/tcp open https |_http-vuln-cve2017-1001000: ERROR: Script execution failed (use -d to debug) |_http-csrf: Couldn\'t find any CSRF vulnerabilities. |_http-dombased-xss: Couldn\'t find any DOM based XSS. |_http-stored-xss: Couldn\'t find any stored XSS vulnerabilities. |_ssl-ccs-injection: No reply from server (TIMEOUT) | http-enum: | /wordpress/: Blog |_ /wordpress/wp-login.php: Wordpress login page. 2049/tcp open nfs 40933/tcp open unknown 42973/tcp open unknown 44923/tcp open unknown 48347/tcp open unknown MAC Address: 00:0C:29:61:24:B2 (VMware)
Nmap done: 1 IP address (1 host up) scanned in 82.97 seconds
WordPress Security Scanner by the WPScan Team Version 3.8.24 Sponsored by Automattic - https://automattic.com/ @_WPScan_, @ethicalhack3r, @erwan_lr, @firefart _______________________________________________________________
[i] It seems like you have not updated the database for some time. [?] Do you want to update now? [Y]es [N]o, default: [N]n [+] URL: http://10.10.10.10/wordpress/ [10.10.10.10] [+] Started: Thu Jun 29 01:45:09 2023
[+] XML-RPC seems to be enabled: http://10.10.10.10/wordpress/xmlrpc.php | Found By: Direct Access (Aggressive Detection) | Confidence: 100% | References: | - http://codex.wordpress.org/XML-RPC_Pingback_API | - https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_ghost_scanner/ | - https://www.rapid7.com/db/modules/auxiliary/dos/http/wordpress_xmlrpc_dos/ | - https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_xmlrpc_login/ | - https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_pingback_access/
[+] WordPress readme found: http://10.10.10.10/wordpress/readme.html | Found By: Direct Access (Aggressive Detection) | Confidence: 100%
[+] Upload directory has listing enabled: http://10.10.10.10/wordpress/wp-content/uploads/ | Found By: Direct Access (Aggressive Detection) | Confidence: 100%
[+] The external WP-Cron seems to be enabled: http://10.10.10.10/wordpress/wp-cron.php | Found By: Direct Access (Aggressive Detection) | Confidence: 60% | References: | - https://www.iplocation.net/defend-wordpress-from-ddos | - https://github.com/wpscanteam/wpscan/issues/1299
[+] WordPress version 5.2.2 identified (Insecure, released on 2019-06-18). | Found By: Rss Generator (Passive Detection) | - http://10.10.10.10/wordpress/index.php/feed/, <generator>https://wordpress.org/?v=5.2.2</generator> | - http://10.10.10.10/wordpress/index.php/comments/feed/, <generator>https://wordpress.org/?v=5.2.2</generator>
[+] WordPress theme in use: twentynineteen | Location: http://10.10.10.10/wordpress/wp-content/themes/twentynineteen/ | Last Updated: 2023-03-29T00:00:00.000Z | Readme: http://10.10.10.10/wordpress/wp-content/themes/twentynineteen/readme.txt | [!] The version is out of date, the latest version is 2.5 | Style URL: http://10.10.10.10/wordpress/wp-content/themes/twentynineteen/style.css?ver=1.4 | Style Name: Twenty Nineteen | Style URI: https://wordpress.org/themes/twentynineteen/ | Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom sty... | Author: the WordPress team | Author URI: https://wordpress.org/ | | Found By: Css Style In Homepage (Passive Detection) | | Version: 1.4 (80% confidence) | Found By: Style (Passive Detection) | - http://10.10.10.10/wordpress/wp-content/themes/twentynineteen/style.css?ver=1.4, Match: 'Version: 1.4'
[+] Enumerating All Plugins (via Passive Methods) [+] Checking Plugin Versions (via Passive and Aggressive Methods)
[i] Plugin(s) Identified:
[+] site-editor | Location: http://10.10.10.10/wordpress/wp-content/plugins/site-editor/ | Latest Version: 1.1.1 (up to date) | Last Updated: 2017-05-02T23:34:00.000Z | | Found By: Urls In Homepage (Passive Detection) | | Version: 1.1.1 (80% confidence) | Found By: Readme - Stable Tag (Aggressive Detection) | - http://10.10.10.10/wordpress/wp-content/plugins/site-editor/readme.txt
[!] No WPScan API Token given, as a result vulnerability data has not been output. [!] You can get a free API token with 25 daily requests by registering at https://wpscan.com/register
www-data@dpwwn-02:/$ cd /var/www cd /var/www www-data@dpwwn-02:/var/www$ ls -liah ls -liah total 12K 268303 drwxr-xr-x 3 root root 4.0K Aug 7 2019 . 16386 drwxr-xr-x 14 root root 4.0K Aug 7 2019 .. 268305 drwxr-xr-x 3 root root 4.0K Aug 8 2019 html www-data@dpwwn-02:/var/www$ cd html cd html www-data@dpwwn-02:/var/www/html$ ls -liah ls -liah total 28K 268305 drwxr-xr-x 3 root root 4.0K Aug 8 2019 . 268303 drwxr-xr-x 3 root root 4.0K Aug 7 2019 .. 268311 -r-------- 1 root root 11K Aug 7 2019 index.html 281706 -rw-r--r-- 1 root root 184 Aug 8 2019 index.php 268687 drwxr-xr-x 5 www-data www-data 4.0K Aug 7 2019 wordpress www-data@dpwwn-02:/var/www/html$ cd wordpress cd wordpress www-data@dpwwn-02:/var/www/html/wordpress$ ls -alih ls -alih total 216K 268687 drwxr-xr-x 5 www-data www-data 4.0K Aug 7 2019 . 268305 drwxr-xr-x 3 root root 4.0K Aug 8 2019 .. 280668 -rwxr-xr-x 1 www-data www-data 256 Aug 7 2019 .htaccess 268703 -rwxr-xr-x 1 www-data www-data 420 Nov 30 2017 index.php 269532 -rwxr-xr-x 1 www-data www-data 20K Jan 1 2019 license.txt 268699 -rwxr-xr-x 1 www-data www-data 7.3K Apr 8 2019 readme.html 269761 -rwxr-xr-x 1 www-data www-data 6.8K Jan 12 2019 wp-activate.php 269762 drwxr-xr-x 9 www-data www-data 4.0K Jun 18 2019 wp-admin 268697 -rwxr-xr-x 1 www-data www-data 369 Nov 30 2017 wp-blog-header.php 280653 -rwxr-xr-x 1 www-data www-data 2.3K Jan 21 2019 wp-comments-post.php 268707 -rwxr-xr-x 1 www-data www-data 2.9K Jan 8 2019 wp-config-sample.php 280667 -rwxr-xr-x 1 www-data www-data 3.2K Aug 7 2019 wp-config.php 269533 drwxr-xr-x 6 www-data www-data 4.0K Jun 29 07:16 wp-content 268705 -rwxr-xr-x 1 www-data www-data 3.8K Jan 9 2019 wp-cron.php 533945 drwxr-xr-x 20 www-data www-data 12K Jun 18 2019 wp-includes 269759 -rwxr-xr-x 1 www-data www-data 2.5K Jan 16 2019 wp-links-opml.php 269760 -rwxr-xr-x 1 www-data www-data 3.3K Nov 30 2017 wp-load.php 268709 -rwxr-xr-x 1 www-data www-data 39K Jun 10 2019 wp-login.php 269758 -rwxr-xr-x 1 www-data www-data 8.3K Nov 30 2017 wp-mail.php 269505 -rwxr-xr-x 1 www-data www-data 19K Mar 28 2019 wp-settings.php 268701 -rwxr-xr-x 1 www-data www-data 31K Jan 16 2019 wp-signup.php 280652 -rwxr-xr-x 1 www-data www-data 4.7K Nov 30 2017 wp-trackback.php 268693 -rwxr-xr-x 1 www-data www-data 3.0K Aug 17 2018 xmlrpc.php www-data@dpwwn-02:/var/www/html/wordpress$ cat wp-config.php cat wp-config.php <?php /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don\'t have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://codex.wordpress.org/Editing_wp-config.php * * @package WordPress */
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'dpwwn02' );
/** MySQL database username */ define( 'DB_USER', 'wpuser' );
/** MySQL database password */ define( 'DB_PASSWORD', 'wp$%bd(*&u$)rJmKa' );
/** MySQL hostname */ define( 'DB_HOST', 'localhost' );
/** Database Charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8mb4' );
/** The Database Collate type. Don\'t change this ifin doubt. */ define( 'DB_COLLATE', '' );
/**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to login again. * * @since 2.6.0 */ define( 'AUTH_KEY', 'tppc%]*HG>YdA%WexT&5+03</`+<ddzoOFNt/`^c@4N5<f;++(3(7+gb(}3W1^je' ); define( 'SECURE_AUTH_KEY', '7B:6=Yxs+?;>,Nzo0RzUC_0H9@+Afbr+w~k<;m#IiqkzMzz[iac7[>=SfSN+Kf+K' ); define( 'LOGGED_IN_KEY', '8]UL$#O2owarV?r7{v!#]YJeJVh]thhdp_U)QQRJcs%JhR}#vo(7*(9bJ~K%WYzY' ); define( 'NONCE_KEY', '<Q3xN0jUeAS|>lM9qroI0H^([L]oJVG7c+%r`qH)oq:hwh+&dP,xQ4[H_xr(]VBY' ); define( 'AUTH_SALT', '}n57d s@&5*~WiN|`&wv&uMs9(REUg>n!(2mC}0r[#NW{O=[E&Ml0tmc!{1uCk~+' ); define( 'SECURE_AUTH_SALT', 'P(|TAVr[ p1@<bfV50SSL13Dof`Fj+ZyF#<:Ppu[(,{hv1q<@#tXMJ-KawIg~Voy' ); define( 'LOGGED_IN_SALT', '8c *i~o;jB,[YmV4WligV}zE@1G5XHNR@m{U.#j TQgIUA)Mi_fc+js5O@%IWd}f' ); define( 'NONCE_SALT', 'K_b9JPi0B$HAj!Uig}Mu[![kC.W!]c%3>JE*=})kRN*AK%qjcSTfy|xu.N|;AzAJ' );
/**#@-*/
/** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_';
/** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. * * For information on other constants that can be used for debugging, * visit the Codex. * * @link https://codex.wordpress.org/Debugging_in_WordPress */ define( 'WP_DEBUG', false );
/* That\'s all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', dirname( __FILE__ ) . '/' ); }
/** Sets up WordPress vars and included files. */ require_once( ABSPATH . 'wp-settings.php' ); @ini_set('upload_max_size' , '256M' );
mysql> use dpwwn02 use dpwwn02 Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A