linux mysql結合wyportmap使用

來源:互聯網
上載者:User

標籤:linux   mysql   

[[email protected] ~]# rpm -qa | grep mysql  // 這個命令就會查看該作業系統上是否已經安裝了mysql資料庫有的話,我們就通過 rpm -e 命令 或者 rpm -e --nodeps 命令來卸載掉[[email protected] ~]# rpm -e mysql  // 普通刪除模式[[email protected] ~]# rpm -e --nodeps mysql  // 強力刪除模式,如果使用上面命令刪除時,提示有依賴的其它檔案,則用該命令可以對其進行強力刪除安裝mysql[[email protected] ~]# yum list | grep mysql然後我們可以通過輸入 yum install -y mysql-server mysql mysql-devel 命令將mysql mysql-server mysql-devel都安裝好(注意:安裝mysql時我們並不是安裝了mysql用戶端就相當於安裝好了mysql資料庫了,我們還需要安裝mysql-server服務端才行)[[email protected] ~]# yum install -y mysql-server mysql mysql-deve[[email protected] ~]#/usr/bin/mysqladmin -u root password ‘new-password‘  // 為root帳號設定密碼所以我們可以通過 該命令來給我們的root帳號設定密碼(注意:這個root帳號是mysql的root帳號,非Linux的root帳號)[[email protected] ~]# mysqladmin -u root password ‘root‘  // 通過該命令給root帳號設定密碼為 roog下載wyportmapgit clone https://github.com/ring04h/wyportmap.git使用方法usage: wyportmap.py targets taskid修改wyportmap.py[[email protected] ~]#vi wyportmap.pyglobal_dbcoon = ‘mysql+mysqldb://root:[email protected]:3306/wscan‘#global_dbcoon = ‘mysql+mysqldb://使用者名稱:密碼@資料庫伺服器IP:資料庫連接埠/資料庫名稱‘進入資料庫查詢mysql -u root -pmysql> use wscan;Database changedmysql> show tables;Empty set (0.00 sec)mysql> show tables;+-----------------+| Tables_in_wscan |+-----------------+| result_ip       || result_ports    |+-----------------+查詢用到的命令desc result_ip;select * from result_ip;desc result_ports;select * from result_ports;

本文出自 “我的世界,我就是導演。” 部落格,請務必保留此出處http://biock.blog.51cto.com/4643304/1621273

linux mysql結合wyportmap使用

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.