小白日记1:kali环境Wpscan渗透Wordpress

2024-02-08 02:59

本文主要是介绍小白日记1:kali环境Wpscan渗透Wordpress,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

一、什么是Wpscan?什么是Wordpres?

    1.Wpscan

     WPScan是一款针对wordpress的安全扫描软件;可以扫描出wordpress的版本,主题,插件,后台用户以及爆破后台用户密码等。

    2.Wordpress

     WordPress是一种使用PHP语言和MySQL数据库开发的博客平台,用户可以在支持PHP和MySQL数据库的服务器上架设属于自己的网站。也可以把 WordPress当作一个内容管理系统(CMS)来使用。WordPress有许多第三方开发的免费模板,安装方式简单易用。如果要做一个自己的模板,则需要有一定的专业知识,至少要懂的标准通用标记语言下的一个应用HTML代码、CSS、PHP等相关知识。

建站流程
1. 注册域名
2. 申请虚拟主机(国内主机:速度快,较贵,而空间较小;国外主机:便宜,速度慢,空间一般无限制)
3. 在虚拟主机上绑定自己的域名
4. 下载WordPress程序
5. 修改域名的DNS解析
6. 创建WordPress数据库
7. 修改WordPress的安装配置文件
8. 上传WordPress程序至ixwebhosting主机域名空间(ftp上传)
9. 访问域名/wp-admin/install.php进行wordpress安装。填写博客信息及邮箱

二、Wpscan命令详解

      利用-h命令,可查看Wpscan的常用选项,功能介绍,例子等;

[plain] view plain copy
  1. <span style="font-size:18px;"></span><strong><span style="font-size:18px;"><span style="background-color: rgb(192, 192, 192);">root@kali:~# wpscan -h  
  2. _______________________________________________________________  
  3.         __          _______   _____                    
  4.         \ \        / /  __ \ / ____|                   
  5.          \ \  /\  / /| |__) | (___   ___  __ _ _ __    
  6.           \ \/  \/ / |  ___/ \___ \ / __|/ _` | '_ \   
  7.            \  /\  /  | |     ____) | (__| (_| | | | |  
  8.             \/  \/   |_|    |_____/ \___|\__,_|_| |_|  
  9.   
  10.   
  11.         WordPress Security Scanner by the WPScan Team   
  12.                        Version 2.8  
  13.           Sponsored by Sucuri - https://sucuri.net  
  14.    @_WPScan_, @ethicalhack3r, @erwan_lr, pvdl, @_FireFart_  
  15. _______________________________________________________________</span><span style="background-color: rgb(255, 255, 255);">  
  16. </span></span></strong><span style="font-size:18px;background-color: rgb(255, 255, 255);">  
  17. </span>  
Help :
 17 
 18 Some values are settable in a config file, see the example.conf.json
 19 
 20 --update Update to the database to the latest version.                            #更新命令
 21 --url | -u <target url> The WordPress URL/domain to scan.                     #指定URL/域扫描
 22 --force | -f Forces WPScan to not check if the remote site is running WordPress.  #强制WPScan不检查,如果远程主机在运行WordPress
 23 --enumerate | -e [option(s)] Enumeration.                      #枚举计算
 24 
 25 
 26 option :                                                                 #参数列表
 27 u usernames from id 1 to 10                                              #用户名默认从id1到10
 28 u[10-20] usernames from id 10 to 20 (you must write [] chars)       #用户名从di10到20([]中字符必须写)
 29 p plugins                                                         #插件程序
 30 vp only vulnerable plugins                                        #仅漏洞插件程序
 31 
 32 ap all plugins (can take a long time)                           #所有插件程序(耗时比较长)
 33 tt timthumbs                                                   #timthumbs
 34 t themes                                                      #主题
 35 vt only vulnerable themes                                     #仅漏洞主题
 36 at all themes (can take a long time)                          #所有主题(耗时长)
 37 Multiple values are allowed : "-e tt,p" will enumerate timthumbs and plugins     #允许多值参数
 38 If no option is supplied, the default is "vt,tt,u,vp"             #无参数状态下,默认
 39 
 40 --exclude-content-based "<regexp or string>"
 41 Used with the enumeration option, will exclude all occurrences based on the regexp or string supplied.
 42 You do not need to provide the regexp delimiters, but you must write the quotes (simple or double).
 43 --config-file | -c <config file> Use the specified config file, see the example.conf.json.           #配置文件
 44 --user-agent | -a <User-Agent> Use the specified User-Agent.                                  #指定用户代理
 45 --cookie <String> String to read cookies from.                        #cookie 从字符串读取
 46 --random-agent | -r Use a random User-Agent.                           #使用随机代理
 47 --follow-redirection If the target url has a redirection, it will be followed without asking if you wanted to do so or not #如果目标网址重定向,它将被跟踪,不询问你是否想这样做
 48 --batch Never ask for user input, use the default behaviour.
 49 --no-color Do not use colors in the output.
 50 --wp-content-dir <wp content dir> WPScan try to find the content directory (ie wp-content) by scanning the index page, however you can specified it.
 51 
 52 
 53 Subdirectories are allowed.                                       #子目录允许的
 54 --wp-plugins-dir <wp plugins dir> Same thing than --wp-content-dir but for the plugins directory.
 55 If not supplied, WPScan will use wp-content-dir/plugins. Subdirectories are allowed
 56 --proxy <[protocol://]host:port> Supply a proxy. HTTP, SOCKS4 SOCKS4A and SOCKS5 are supported.
 57 If no protocol is given (format host:port), HTTP will be used.
 58 --proxy-auth <username:password> Supply the proxy login credentials.                        #提供代理登陆凭证
 59 --basic-auth <username:password> Set the HTTP Basic authentication.                   #设置HTTP基本认证
 60 --wordlist | -w <wordlist> Supply a wordlist for the password brute forcer.           #为暴力破解密码指定字典
 61 --username | -U <username> Only brute force the supplied username.               #仅暴力破解用户名
 62 --usernames <path-to-file> Only brute force the usernames from the file.           #仅从字典文件中暴力破解用户名
 63 --threads | -t <number of threads> The number of threads to use when multi-threading requests.   #当多线程请求时指定线程数
 64 --cache-ttl <cache-ttl> Typhoeus cache TTL.
 65 --request-timeout <request-timeout> Request Timeout.                 #请求时间间隔
 66 --connect-timeout <connect-timeout> Connect Timeout.                  #连接时间间隔
 67 --max-threads <max-threads> Maximum Threads.                     #最大线程数
 68 --help | -h This help screen.
 69 --verbose | -v Verbose output.                   #详细输出
 70 --version Output the current version and exit
 71 
 72 
 73 Examples :                            #例子{wpscan --help    //省略ruby ./……   .rb}
 74 
 75 -Further help ...
 76 ruby ./wpscan.rb --help
 77 
 78 -Do 'non-intrusive' checks ...                       #做非入侵式检查
 79 ruby ./wpscan.rb --url www.example.com
 80 
 81 -Do wordlist password brute force on enumerated users using 50 threads ...   #指定字典暴力破解枚举用户使用50个线程
 82 
 83 ruby ./wpscan.rb --url www.example.com --wordlist darkc0de.lst --threads 50
 84 
 85 -Do wordlist password brute force on the 'admin' username only ...   #仅对“管理员”做字典密码暴力破解枚举用户使用50个线程。
 86 ruby ./wpscan.rb --url www.example.com --wordlist darkc0de.lst --username admin
 87 
 88 -Enumerate installed plugins ...                #枚举已安装的插件
 89 ruby ./wpscan.rb --url www.example.com --enumerate p
 90 
 91 -Enumerate installed themes ...                 #枚举已安装主题
 92 ruby ./wpscan.rb --url www.example.com --enumerate t
 93 
 94 -Enumerate users ...                                 #枚举用户名
 95 ruby ./wpscan.rb --url www.example.com --enumerate u
 96 
 97 -Enumerate installed timthumbs ...                #枚举已安装timthumbs
 98 ruby ./wpscan.rb --url www.example.com --enumerate tt
 99 
100 -Use a HTTP proxy ...                        #使用HTTP代理
101 ruby ./wpscan.rb --url www.example.com --proxy 127.0.0.1:8118
102 
103 -Use a SOCKS5 proxy ... (cURL >= v7.21.7 needed)      #使用SOCKS5代理
104 ruby ./wpscan.rb --url www.example.com --proxy socks5://127.0.0.1:9000
105 
106 -Use custom content directory ...                     #使用自定内容目录
107 ruby ./wpscan.rb -u www.example.com --wp-content-dir custom-content
108 
109 -Use custom plugins directory ...                    #使用自定义插件目录
110 ruby ./wpscan.rb -u www.example.com --wp-plugins-dir wp-content/custom-plugins
111 
112 -Update the DB ...                          #更新数据库
113 ruby ./wpscan.rb --update
114 
115 -Debug output ...
116 ruby ./wpscan.rb --url www.example.com --debug-output 2>debug.log
117 
118 See README for further information.

三、列出用户名列表【利用靶机检验】

wpscan -u 192.168.1.128 -e u vp     # -u指定URL,-e枚举,u用户名从ID1到10,vp仅漏洞插件程序




四、字典爆破用户密码

wpscan -u 192.168.1.128 -e u --wordlist /root/wordlist.txt    #--wordlist </路径/文件名>





小白日记,未完待续……


    这篇关于小白日记1:kali环境Wpscan渗透Wordpress的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



    http://www.chinasem.cn/article/689720

    相关文章

    在Mysql环境下对数据进行增删改查的操作方法

    《在Mysql环境下对数据进行增删改查的操作方法》本文介绍了在MySQL环境下对数据进行增删改查的基本操作,包括插入数据、修改数据、删除数据、数据查询(基本查询、连接查询、聚合函数查询、子查询)等,并... 目录一、插入数据:二、修改数据:三、删除数据:1、delete from 表名;2、truncate

    VScode连接远程Linux服务器环境配置图文教程

    《VScode连接远程Linux服务器环境配置图文教程》:本文主要介绍如何安装和配置VSCode,包括安装步骤、环境配置(如汉化包、远程SSH连接)、语言包安装(如C/C++插件)等,文中给出了详... 目录一、安装vscode二、环境配置1.中文汉化包2.安装remote-ssh,用于远程连接2.1安装2

    Java中的Opencv简介与开发环境部署方法

    《Java中的Opencv简介与开发环境部署方法》OpenCV是一个开源的计算机视觉和图像处理库,提供了丰富的图像处理算法和工具,它支持多种图像处理和计算机视觉算法,可以用于物体识别与跟踪、图像分割与... 目录1.Opencv简介Opencv的应用2.Java使用OpenCV进行图像操作opencv安装j

    mysql-8.0.30压缩包版安装和配置MySQL环境过程

    《mysql-8.0.30压缩包版安装和配置MySQL环境过程》该文章介绍了如何在Windows系统中下载、安装和配置MySQL数据库,包括下载地址、解压文件、创建和配置my.ini文件、设置环境变量... 目录压缩包安装配置下载配置环境变量下载和初始化总结压缩包安装配置下载下载地址:https://d

    将Python应用部署到生产环境的小技巧分享

    《将Python应用部署到生产环境的小技巧分享》文章主要讲述了在将Python应用程序部署到生产环境之前,需要进行的准备工作和最佳实践,包括心态调整、代码审查、测试覆盖率提升、配置文件优化、日志记录完... 目录部署前夜:从开发到生产的心理准备与检查清单环境搭建:打造稳固的应用运行平台自动化流水线:让部署像

    gradle安装和环境配置全过程

    《gradle安装和环境配置全过程》本文介绍了如何安装和配置Gradle环境,包括下载Gradle、配置环境变量、测试Gradle以及在IntelliJIDEA中配置Gradle... 目录gradle安装和环境配置1 下载GRADLE2 环境变量配置3 测试gradle4 设置gradle初始化文件5 i

    Java汇编源码如何查看环境搭建

    《Java汇编源码如何查看环境搭建》:本文主要介绍如何在IntelliJIDEA开发环境中搭建字节码和汇编环境,以便更好地进行代码调优和JVM学习,首先,介绍了如何配置IntelliJIDEA以方... 目录一、简介二、在IDEA开发环境中搭建汇编环境2.1 在IDEA中搭建字节码查看环境2.1.1 搭建步

    在 VSCode 中配置 C++ 开发环境的详细教程

    《在VSCode中配置C++开发环境的详细教程》本文详细介绍了如何在VisualStudioCode(VSCode)中配置C++开发环境,包括安装必要的工具、配置编译器、设置调试环境等步骤,通... 目录如何在 VSCode 中配置 C++ 开发环境:详细教程1. 什么是 VSCode?2. 安装 VSCo

    鸿蒙开发搭建flutter适配的开发环境

    《鸿蒙开发搭建flutter适配的开发环境》文章详细介绍了在Windows系统上如何创建和运行鸿蒙Flutter项目,包括使用flutterdoctor检测环境、创建项目、编译HAP包以及在真机上运... 目录环境搭建创建运行项目打包项目总结环境搭建1.安装 DevEco Studio NEXT IDE

    阿里开源语音识别SenseVoiceWindows环境部署

    SenseVoice介绍 SenseVoice 专注于高精度多语言语音识别、情感辨识和音频事件检测多语言识别: 采用超过 40 万小时数据训练,支持超过 50 种语言,识别效果上优于 Whisper 模型。富文本识别:具备优秀的情感识别,能够在测试数据上达到和超过目前最佳情感识别模型的效果。支持声音事件检测能力,支持音乐、掌声、笑声、哭声、咳嗽、喷嚏等多种常见人机交互事件进行检测。高效推