BLANTERWISDOM101

Membuat Tool Zone-D Grabber Site Menggunakan Python3

Minggu, 25 April 2021


 Zone-D.org, adalah salah satu dari banyaknya situs arsip website defacement. Situs ini salah satu yang populer dari defacer untuk mengarsipkan hasil defacement nya. Total arsip di situs ini mencapai 5000 lebih halaman sekarang. Ini dikarenakan sudah cukup lama situs ini dibangun.

Seperti pada postingan saya di jawarahacking.com tentang "Membuat Tool Grabbing Site pada Zone-Xsec" kali ini saya membagikan tutorial pada Zone-D. Dan pastinya menggunakan python versi 3 dengan sintaks kode yang mudah dan sederhana.

Algoritma Program

Cukup, simpel. Meminta sebuah requests menggunakan module requests pada per halaman arsip yang terletak pada https://zone-d.org/mirror/archive lalu scraping menggunakan module re (regular expression) pada domain situs defacement

Mengimport Module

Module yang digunakan adalah sys, requests, dan re. Maka kita import terlebih dahulu module tersebut.

1
import requests,re,sys

Jika module requests belum terinstall maka install terlebih dahulu dengan command "pip install requests" pada terminal atau lihat cara install di laman resmi python.org.

Variabel

Variabel yang dibuat hanyalah url situs dan kuer halaman menggunakan sys.argv atau argumen input bertipe string.

1
2
3
4
import requests,re,sys

url = "https://zone-d.org/mirror/archive/"
kueri = sys.argv[1]

Maka sudah lengkap bahan dan langsung ke next step.

Mengambil Request dan Scraping

Buat request get dengan value seperti berikut:
r = requests.get(url+kueri)

Dengan ini, variabel r adalah requests.get(url+kueri).

Lalu kita printout terlebih dahulu respon website terhadap request yang kita buat. Misal input kueri adalah 7. Kita tambahkan kode print(r.text) dibawahnya. Maka hasil akan seperti ini:

<!DOCTYPE HTML><html lang=en-US><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=theme-color content="#b30000" /><meta name=viewport content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /><title>Zone-D.org - Mirror Archive - Pages 7</title><meta name=keywords content="deface mirror,cyber vandalism mirror, website vandalism, hacker, mirror deface, defacer, defacer indonesia, mirrorid, mirror id, mirror indonesia, hacks, h4ck, zone d, zone-d, zoned"><meta name=description content="Zone-D.org - Realm of Defacements Repository | A global view to the world with a stress on the ITsec."><meta name=robots content="all,index,follow"><meta name=googlebot content="all,index,follow"><meta name=allow-search content=yes><meta name=audience content=all><meta name=copyright content="© 2021 zone-d.org"><meta name=creator content="zone-d.org"><meta http-equiv=Reply-to content="zone-d.org"><meta property="og:type" content=article><meta property="og:image" content="https://zone-d.org/style/images/cover_facebook.jpg" /><meta property="og:image:secure_url" content="https://zone-d.org/style/images/cover_facebook.jpg" /><meta property="og:image:width" content=1200><meta property="og:image:height" content=630><meta property="og:title" content="Zone-D.org - Mirror Archive - Pages 7"><meta property="og:url" content="https://zone-d.org/mirror/archive/7"><meta property="og:site_name" content="Zone-D.org"><meta property="og:description" content="Zone-D.org - Mirror Archive - Pages 7 | A global view to the world with a stress on the ITsec."><meta property="fb:admins" content=100003630863492><meta property="fb:app_id" content=664468257027915><meta property="fb:pages" content=107045019685368 /><meta property="article:publisher" content="https://www.facebook.com/zonedorg"><meta property="article:author" content="https://www.facebook.com/zonedorg"><meta name="twitter:card" content=summary_large_image /><meta name="twitter:description" content="Mirror Archive - Pages 7 | A global view to the world with a stress on the ITsec." /><meta name="twitter:title" content="Zone-D.org - Mirror Archive - Pages 7" /><meta name="twitter:image" content="https://zone-d.org/style/images/cover_twitter.jpg" /><meta name=google-site-verification content=IwYxTdVSKvWdtZM-jZRX5lQAWsoCjTg9XO3Id2m67Z4 /><meta name=yandex-verification content=7c0a7e9e4ec59f44 /><meta name="msvalidate.01" content=57490519791A52F0F41D4F8E835A73E9 /><link rel="shortcut icon" type=image/x-icon href="https://zone-d.org/style/images/favicon.png" /><link rel=stylesheet type=text/css href="//zone-d.org/style.css" media=all /><link rel=stylesheet type=text/css href="//zone-d.org/style/type/fontello.css" media=all /><link rel=stylesheet type=text/css href="//zone-d.org/style/css/media-queries.css" media=all /><script type=text/javascript src="//zone-d.org/style/js/jquery.min.js"></script><script type=text/javascript src="//zone-d.org/style/js/ddsmoothmenu.js"></script><script type=text/javascript src="//zone-d.org/style/js/selectnav.js"></script></head><body class=box-layout><div class=top-wrapper><div class=inner><div class=header><div class=logo><a href="https://zone-d.org/"><img src="//zone-d.org/style/images/logo.png" alt="" /></a></div><div class=searchs><form class=searchform method=post action="https://zone-d.org/mirror/search"><input type=text id=s name=s value=Search onfocus="this.value=''" onblur="this.value='Search'" /></form></div><div class=clear></div></div><div id=menu class="menu clearfix"><ul id=tiny><li><a href="https://zone-d.org/">Home</a><li><a href="https://zone-d.org/mirror/archive">Archive</a><li><a href="https://zone-d.org/mirror/special"><span style="color: rgb(255,215,0);">★</span> Special</a><li><a href="https://zone-d.org/mirror/onhold">Onhold</a><li><a href="https://zone-d.org/attacker/all">Attacker Rank</a><li><a href="https://zone-d.org/malware">Malware Scanner</a><li><a href="https://zone-d.org/stats">Stats</a><li><a href="https://zone-d.org/partner">Partner</a><li><a href="https://zone-d.org/contact">Contact Us</a><li><a href="https://zone-d.org/notify">Notify</a></ul></div></div></div><div class=box-wrapper><div class=dark-wrapper><div class=inner><div class=ads_desk></div><div class=ads_mobi></div><h2>Mirror Archive</h2><div class=hr2></div><br><div style="overflow-x:auto;"><div class=info-defacer><span class=info-defacer-title>Legends</span><span><div style="width:50%;float:left"><span style="width:15px;display:inline-block;margin-bottom:5px">H</span>- Homepage defacement</div><div style="width:50%;float:left"><span style="width:15px;display:inline-block;margin-bottom:5px">M</span>- Mass defacement (click to view all defacements of this IP)</div><div style="width:50%;float:left"><span style="width:15px;display:inline-block;margin-bottom:5px">R</span>- Redefacement (click to view all defacements of this site)</div><div style="width:50%;float:left"><span style="width:15px;display:inline-block;margin-bottom:5px">L</span>- Location of Server according to IP address</div><div style="width:50%;float:left"><span style="width:15px;display:inline-block;margin-bottom:5px" class=special>★</span>- Special defacement (special defacements are important websites)</div><div style="clear:both"></div></span></div><span class=count-defacer style="text-align:center;display:block;margin-bottom:5px"><span>Total Defacements: <strong>171,430</strong>   </span><span>Homepage Defacements: <strong>86,085</strong>   </span><span>Special Deface: <strong>0</strong></span></span><table><tbody><tr style="background:rgba(0,0,0,0.7);"><th>Date & Time<th>Attacker<th style="width: 10px;padding:0 5px;">H<th style="width: 10px;padding:0 5px;">M<th style="width: 10px;padding:0 5px;">R<th style="width: 10px;padding:0 5px;">L<th style="width: 10px;padding:0 5px;color: rgb(255,215,0);">★<th>Url<th>Mirror<tr><td>2021-04-23 18:20:38<td><a href="https://zone-d.org/attacker/id/2256">Mr'Pl4Nkt0N</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><a href="https://zone-d.org/mirror/ip/103.28.53.180">M</a><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>datingsitechat.com/f.php<td><a href="https://zone-d.org/mirror/id/258835" title="Info Defacement">Mirror</a><tr><td>2021-04-23 18:20:35<td><a href="https://zone-d.org/attacker/id/2256">Mr'Pl4Nkt0N</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><a href="https://zone-d.org/mirror/ip/103.28.53.180">M</a><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>magz.tokowebpedia.com/f.php<td><a href="https://zone-d.org/mirror/id/258834" title="Info Defacement">Mirror</a><tr><td>2021-04-23 18:20:33<td><a href="https://zone-d.org/attacker/id/2256">Mr'Pl4Nkt0N</a><td style="width: 10px;padding:0 5px;">H<td style="width: 10px;padding:0 5px;"><a href="https://zone-d.org/mirror/ip/103.28.53.180">M</a><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>news.tokowebpedia.com<td><a href="https://zone-d.org/mirror/id/258833" title="Info Defacement">Mirror</a><tr><td>2021-04-23 18:20:30<td><a href="https://zone-d.org/attacker/id/2256">Mr'Pl4Nkt0N</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><a href="https://zone-d.org/mirror/ip/103.28.53.180">M</a><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>dealer2.tokowebpedia.com/f.php<td><a href="https://zone-d.org/mirror/id/258832" title="Info Defacement">Mirror</a><tr><td>2021-04-23 18:20:27<td><a href="https://zone-d.org/attacker/id/2256">Mr'Pl4Nkt0N</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><a href="https://zone-d.org/mirror/ip/103.28.53.180">M</a><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>dealer.tokowebpedia.com/f.php<td><a href="https://zone-d.org/mirror/id/258831" title="Info Defacement">Mirror</a><tr><td>2021-04-23 16:51:57<td><a href="https://zone-d.org/attacker/id/3021">./SoapKing</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>detiknusantara.com/test.htm<td><a href="https://zone-d.org/mirror/id/258830" title="Info Defacement">Mirror</a><tr><td>2021-04-23 15:43:35<td><a href="https://zone-d.org/attacker/id/3030">po0ri4</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/BR.png" title=Brazil style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>lagos.vr.uff.br/public/site/images/po...<td><a href="https://zone-d.org/mirror/id/258827" title="Info Defacement">Mirror</a><tr><td>2021-04-23 15:43:17<td><a href="https://zone-d.org/attacker/id/3030">po0ri4</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/BR.png" title=Brazil style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>cetes.medicina.ufmg.br/revista/public/...<td><a href="https://zone-d.org/mirror/id/258825" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:51:47<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>mfsys.co.kr/data/editor/2104/13b7443b0...<td><a href="https://zone-d.org/mirror/id/258822" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:51:39<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>mediflex.co.kr/data/editor/2104/103ab...<td><a href="https://zone-d.org/mirror/id/258821" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:50:28<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>kprsrnr.or.kr/data/editor/2104/cd51183...<td><a href="https://zone-d.org/mirror/id/258820" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:36:42<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>hrd.dcb.or.kr/hrd/data/editor/2104/fe9...<td><a href="https://zone-d.org/mirror/id/258819" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:30:32<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/US.png" title="United States" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>pib.kopia.or.kr/data/editor/2104/b2cd3...<td><a href="https://zone-d.org/mirror/id/258818" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:25:15<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>xn--hq1bob261ayzk16dr0bz0b.kr/data/edi...<td><a href="https://zone-d.org/mirror/id/258817" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:22:34<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>jointips.or.kr/data/editor/2104/a7eece...<td><a href="https://zone-d.org/mirror/id/258816" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:18:14<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>cfwc.or.kr/data/editor/2104/32f502cd9a...<td><a href="https://zone-d.org/mirror/id/258815" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:16:39<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>wsdental.kr/data/editor/2104/09f462366...<td><a href="https://zone-d.org/mirror/id/258814" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:10:03<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>tnz.kr/data/editor/2104/1ae888669fc84d...<td><a href="https://zone-d.org/mirror/id/258813" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:04:23<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/US.png" title="United States" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>jelly-fish.co.kr/data/editor/2104/02c6...<td><a href="https://zone-d.org/mirror/id/258811" title="Info Defacement">Mirror</a><tr><td>2021-04-23 13:58:02<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>perception.co.kr/main/data/editor/2104...<td><a href="https://zone-d.org/mirror/id/258810" title="Info Defacement">Mirror</a><tr><td>2021-04-23 13:47:04<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>opeec.co.kr:443/eng/data/editor/2104/...<td><a href="https://zone-d.org/mirror/id/258809" title="Info Defacement">Mirror</a><tr><td>2021-04-23 13:43:48<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>plantings.co.kr/files/editor/2104/660f...<td><a href="https://zone-d.org/mirror/id/258808" title="Info Defacement">Mirror</a><tr><td>2021-04-23 13:35:44<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>badafc.co.kr/uploads/editor/2021/04/9d...<td><a href="https://zone-d.org/mirror/id/258807" title="Info Defacement">Mirror</a><tr><td>2021-04-23 12:13:20<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>jfish.co.kr/uploads/editor/2021/04/d30...<td><a href="https://zone-d.org/mirror/id/258805" title="Info Defacement">Mirror</a><tr><td>2021-04-23 09:06:00<td><a href="https://zone-d.org/attacker/id/3034">Findin17</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/ID.png" title=Indonesia style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>youthforpeatland.id/p.html<td><a href="https://zone-d.org/mirror/id/258804" title="Info Defacement">Mirror</a><tr><td>2021-04-23 09:05:36<td><a href="https://zone-d.org/attacker/id/3034">Findin17</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/ID.png" title=Indonesia style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>sobatjasa.com/p.html<td><a href="https://zone-d.org/mirror/id/258802" title="Info Defacement">Mirror</a><tr><td>2021-04-23 09:05:34<td><a href="https://zone-d.org/attacker/id/3034">Findin17</a><td style="width: 10px;padding:0 5px;">H<td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/US.png" title="United States" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>sman5us.online/<td><a href="https://zone-d.org/mirror/id/258801" title="Info Defacement">Mirror</a><tr><td>2021-04-23 05:38:16<td><a href="https://zone-d.org/attacker/id/3041">xr00t`07</a><td style="width: 10px;padding:0 5px;">H<td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/US.png" title="United States" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>sadra.af/?s=hacked+by+xr00t`07<td><a href="https://zone-d.org/mirror/id/258794" title="Info Defacement">Mirror</a><tr><td>2021-04-22 21:30:14<td><a href="https://zone-d.org/attacker/id/3041">xr00t`07</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/US.png" title="United States" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>salatv.com.br/xr.html<td><a href="https://zone-d.org/mirror/id/258775" title="Info Defacement">Mirror</a><tr><td>2021-04-22 21:22:29<td><a href="https://zone-d.org/attacker/id/1946">./MaXimous48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/DE.png" title=Germany style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>loanslan.in/kamu.php<td><a href="https://zone-d.org/mirror/id/258774" title="Info Defacement">Mirror</a></tbody></table></div><div class=clear></div><div class=hr1></div><div class=page-navi><ul><li><span>Page 7 of 5715: </span><li><a href="https://zone-d.org/mirror/archive/6">‹</a><li><a href="https://zone-d.org/mirror/archive" title="Page 1">1</a><li><a href="https://zone-d.org/mirror/archive/2" title="Page 2">2</a><li><span>...</span><li><a href="https://zone-d.org/mirror/archive/6" title="Page 6">6</a><li><a href="#" class=current>7</a><li><a href="https://zone-d.org/mirror/archive/8" title="Page 8">8</a><li class=disabled><span>...</span><li><a href="https://zone-d.org/mirror/archive/5714" title="Page 5714">5714</a><li><a href="https://zone-d.org/mirror/archive/5715" title="Page 5715">5715</a><li><a href="https://zone-d.org/mirror/archive/8">›</a></ul></div><div class=clear></div><div class=ads_desk><script type=application/javascript> var ad_idzone = "3826193",
ad_width = "728",
ad_height = "90"
</script><script type=application/javascript src="https://a.exdynsrv.com/ads.js"></script><noscript><iframe src="https://syndication.exdynsrv.com/ads-iframe-display.php?idzone=3826193&output=noscript&type=728x90" width=728 height=90 scrolling=no marginwidth=0 marginheight=0 frameborder=0></iframe></noscript></div><div class=ads_mobi><script type=application/javascript> var ad_idzone = "3826521",
ad_width = "250",
ad_height = "250"
</script><script type=application/javascript src="https://a.exdynsrv.com/ads.js"></script><noscript><iframe src="https://syndication.exdynsrv.com/ads-iframe-display.php?idzone=3826521&output=noscript&type=250x250" width=250 height=250 scrolling=no marginwidth=0 marginheight=0 frameborder=0></iframe></noscript></div></div></div><div class=site-generator-wrapper><div class=site-generator><div class=copyright><p>© 2021 <a href="https://zone-d.org/">Zone-D.org</a>. All rights reserved.</p></div><div class=powered><p>Powered By <a href="https://risman.id/">Risman.ID</a></p></div></div></div></div><script type=text/javascript src="//zone-d.org/style/js/scripts.js"></script><script async src="https://www.googletagmanager.com/gtag/js?id=UA-141823436-1"></script><script> window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}gtag('js', new Date());
gtag('config', 'UA-141823436-1');</script><script type=text/javascript>var _Hasync= _Hasync|| [];
_Hasync.push(['Histats.start', '1,4277289,4,0,0,0,00010000']);
_Hasync.push(['Histats.fasi', '1']);
_Hasync.push(['Histats.track_hits', '']);
(function(){var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;
hs.src = ('//s10.histats.com/js15_as.js');
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs);
})();</script><noscript><a href=/ target=_blank><img src="//sstatic1.histats.com/0.gif?4277289&101" alt="track hits" border=0></a></noscript></body></html>

Nah, sudah terlihat pada respon kita akan scraping yang mana. Yaps, pada tag <tbody> berisi tabel info defacement url, nama defacer, tim defacer, dan lainnya. Kita sekarang coba scrap tag tersebut lalu cek dengan printout hasil dari scrape kita.

Sekarang kita scrape tag tbody dengan:

tbody = re.findall(r'<tbody>(.*?)<\/tbody>',r.text)

print(tbody)

Maka akan terlihat hasilnya berikut.

['<tr style="background:rgba(0,0,0,0.7);"><th>Date & Time<th>Attacker<th style="width: 10px;padding:0 5px;">H<th style="width: 10px;padding:0 5px;">M<th style="width: 10px;padding:0 5px;">R<th style="width: 10px;padding:0 5px;">L<th style="width: 10px;padding:0 5px;color: rgb(255,215,0);">★<th>Url<th>Mirror<tr><td>2021-04-23 18:20:38<td><a href="https://zone-d.org/attacker/id/2256">Mr'Pl4Nkt0N</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><a href="https://zone-d.org/mirror/ip/103.28.53.180">M</a><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>datingsitechat.com/f.php<td><a href="https://zone-d.org/mirror/id/258835" title="Info Defacement">Mirror</a><tr><td>2021-04-23 18:20:35<td><a href="https://zone-d.org/attacker/id/2256">Mr'Pl4Nkt0N</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><a href="https://zone-d.org/mirror/ip/103.28.53.180">M</a><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>magz.tokowebpedia.com/f.php<td><a href="https://zone-d.org/mirror/id/258834" title="Info Defacement">Mirror</a><tr><td>2021-04-23 18:20:33<td><a href="https://zone-d.org/attacker/id/2256">Mr'Pl4Nkt0N</a><td style="width: 10px;padding:0 5px;">H<td style="width: 10px;padding:0 5px;"><a href="https://zone-d.org/mirror/ip/103.28.53.180">M</a><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>news.tokowebpedia.com<td><a href="https://zone-d.org/mirror/id/258833" title="Info Defacement">Mirror</a><tr><td>2021-04-23 18:20:30<td><a href="https://zone-d.org/attacker/id/2256">Mr'Pl4Nkt0N</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><a href="https://zone-d.org/mirror/ip/103.28.53.180">M</a><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>dealer2.tokowebpedia.com/f.php<td><a href="https://zone-d.org/mirror/id/258832" title="Info Defacement">Mirror</a><tr><td>2021-04-23 18:20:27<td><a href="https://zone-d.org/attacker/id/2256">Mr'Pl4Nkt0N</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><a href="https://zone-d.org/mirror/ip/103.28.53.180">M</a><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>dealer.tokowebpedia.com/f.php<td><a href="https://zone-d.org/mirror/id/258831" title="Info Defacement">Mirror</a><tr><td>2021-04-23 16:51:57<td><a href="https://zone-d.org/attacker/id/3021">./SoapKing</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>detiknusantara.com/test.htm<td><a href="https://zone-d.org/mirror/id/258830" title="Info Defacement">Mirror</a><tr><td>2021-04-23 15:43:35<td><a href="https://zone-d.org/attacker/id/3030">po0ri4</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/BR.png" title=Brazil style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>lagos.vr.uff.br/public/site/images/po...<td><a href="https://zone-d.org/mirror/id/258827" title="Info Defacement">Mirror</a><tr><td>2021-04-23 15:43:17<td><a href="https://zone-d.org/attacker/id/3030">po0ri4</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/BR.png" title=Brazil style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>cetes.medicina.ufmg.br/revista/public/...<td><a href="https://zone-d.org/mirror/id/258825" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:51:47<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>mfsys.co.kr/data/editor/2104/13b7443b0...<td><a href="https://zone-d.org/mirror/id/258822" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:51:39<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>mediflex.co.kr/data/editor/2104/103ab...<td><a href="https://zone-d.org/mirror/id/258821" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:50:28<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/Unknown.png" title=Unknown style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>kprsrnr.or.kr/data/editor/2104/cd51183...<td><a href="https://zone-d.org/mirror/id/258820" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:36:42<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>hrd.dcb.or.kr/hrd/data/editor/2104/fe9...<td><a href="https://zone-d.org/mirror/id/258819" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:30:32<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/US.png" title="United States" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>pib.kopia.or.kr/data/editor/2104/b2cd3...<td><a href="https://zone-d.org/mirror/id/258818" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:25:15<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>xn--hq1bob261ayzk16dr0bz0b.kr/data/edi...<td><a href="https://zone-d.org/mirror/id/258817" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:22:34<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>jointips.or.kr/data/editor/2104/a7eece...<td><a href="https://zone-d.org/mirror/id/258816" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:18:14<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>cfwc.or.kr/data/editor/2104/32f502cd9a...<td><a href="https://zone-d.org/mirror/id/258815" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:16:39<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>wsdental.kr/data/editor/2104/09f462366...<td><a href="https://zone-d.org/mirror/id/258814" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:10:03<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>tnz.kr/data/editor/2104/1aIe888669fc84d...<td><a href="https://zone-d.org/mirror/id/258813" title="Info Defacement">Mirror</a><tr><td>2021-04-23 14:04:23<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/US.png" title="United States" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>jelly-fish.co.kr/data/editor/2104/02c6...<td><a href="https://zone-d.org/mirror/id/258811" title="Info Defacement">Mirror</a><tr><td>2021-04-23 13:58:02<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>perception.co.kr/main/data/editor/2104...<td><a href="https://zone-d.org/mirror/id/258810" title="Info Defacement">Mirror</a><tr><td>2021-04-23 13:47:04<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>opeec.co.kr:443/eng/data/editor/2104/...<td><a href="https://zone-d.org/mirror/id/258809" title="Info Defacement">Mirror</a><tr><td>2021-04-23 13:43:48<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>plantings.co.kr/files/editor/2104/660f...<td><a href="https://zone-d.org/mirror/id/258808" title="Info Defacement">Mirror</a><tr><td>2021-04-23 13:35:44<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>badafc.co.kr/uploads/editor/2021/04/9d...<td><a href="https://zone-d.org/mirror/id/258807" title="Info Defacement">Mirror</a><tr><td>2021-04-23 12:13:20<td><a href="https://zone-d.org/attacker/id/2567">Melody-x48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/KR.png" title="Republic of Korea" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>jfish.co.kr/uploads/editor/2021/04/d30...<td><a href="https://zone-d.org/mirror/id/258805" title="Info Defacement">Mirror</a><tr><td>2021-04-23 09:06:00<td><a href="https://zone-d.org/attacker/id/3034">Findin17</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/ID.png" title=Indonesia style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>youthforpeatland.id/p.html<td><a href="https://zone-d.org/mirror/id/258804" title="Info Defacement">Mirror</a><tr><td>2021-04-23 09:05:36<td><a href="https://zone-d.org/attacker/id/3034">Findin17</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/ID.png" title=Indonesia style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>sobatjasa.com/p.html<td><a href="https://zone-d.org/mirror/id/258802" title="Info Defacement">Mirror</a><tr><td>2021-04-23 09:05:34<td><a href="https://zone-d.org/attacker/id/3034">Findin17</a><td style="width: 10px;padding:0 5px;">H<td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/US.png" title="United States" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>sman5us.online/<td><a href="https://zone-d.org/mirror/id/258801" title="Info Defacement">Mirror</a><tr><td>2021-04-23 05:38:16<td><a href="https://zone-d.org/attacker/id/3041">xr00t`07</a><td style="width: 10px;padding:0 5px;">H<td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/US.png" title="United States" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>sadra.af/?s=hacked+by+xr00t`07<td><a href="https://zone-d.org/mirror/id/258794" title="Info Defacement">Mirror</a><tr><td>2021-04-22 21:30:14<td><a href="https://zone-d.org/attacker/id/3041">xr00t`07</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/US.png" title="United States" style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>salatv.com.br/xr.html<td><a href="https://zone-d.org/mirror/id/258775" title="Info Defacement">Mirror</a><tr><td>2021-04-22 21:22:29<td><a href="https://zone-d.org/attacker/id/1946">./MaXimous48</a><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="width: 10px;padding:0 5px;"><td style="padding:0 5px;"><img src="https://zone-d.org/style/images/flags/DE.png" title=Germany style="display: inline;height: 10px;max-width: 16px;"><td class=special style="width: 10px;padding:0 5px;"><td>loanslan.in/kamu.php<td><a href="https://zone-d.org/mirror/id/258774" title="Info Defacement">Mirror</a>']

Ada satu data array dari tbody artinya kita akan scrape pada bagian tbody[0]. Yaitu pada tag <td> dengan kode berikut:

td = re.findall(r'<td>(.*?)<td>',tbody[0])


Maka data seharusnya berupa array dan memiliki beberapa data value. Kita coba print dengan print(td) dengan hasil:

['2021-04-23 18:20:38', 'datingsitechat.com/f.php', '2021-04-23 18:20:35', 'magz.tokowebpedia.com/f.php', '2021-04-23 18:20:33', 'news.tokowebpedia.com', '2021-04-23 18:20:30', 'dealer2.tokowebpedia.com/f.php', '2021-04-23 18:20:27', 'dealer.tokowebpedia.com/f.php', '2021-04-23 16:51:57', 'detiknusantara.com/test.htm', '2021-04-23 15:43:35', 'lagos.vr.uff.br/public/site/images/po...', '2021-04-23 15:43:17', 'cetes.medicina.ufmg.br/revista/public/...', '2021-04-23 14:51:47', 'mfsys.co.kr/data/editor/2104/13b7443b0...', '2021-04-23 14:51:39', 'mediflex.co.kr/data/editor/2104/103ab...', '2021-04-23 14:50:28', 'kprsrnr.or.kr/data/editor/2104/cd51183...', '2021-04-23 14:36:42', 'hrd.dcb.or.kr/hrd/data/editor/2104/fe9...', '2021-04-23 14:30:32', 'pib.kopia.or.kr/data/editor/2104/b2cd3...', '2021-04-23 14:25:15', 'xn--hq1bob261ayzk16dr0bz0b.kr/data/edi...', '2021-04-23 14:22:34', 'jointips.or.kr/data/editor/2104/a7eece...', '2021-04-23 14:18:14', 'cfwc.or.kr/data/editor/2104/32f502cd9a...', '2021-04-23 14:16:39', 'wsdental.kr/data/editor/2104/09f462366...', '2021-04-23 14:10:03', 'tnz.kr/data/editor/2104/1ae888669fc84d...', '2021-04-23 14:04:23', 'jelly-fish.co.kr/data/editor/2104/02c6...', '2021-04-23 13:58:02', 'perception.co.kr/main/data/editor/2104...', '2021-04-23 13:47:04', 'opeec.co.kr:443/eng/data/editor/2104/...', '2021-04-23 13:43:48', 'plantings.co.kr/files/editor/2104/660f...', '2021-04-23 13:35:44', 'badafc.co.kr/uploads/editor/2021/04/9d...', '2021-04-23 12:13:20', 'jfish.co.kr/uploads/editor/2021/04/d30...', '2021-04-23 09:06:00', 'youthforpeatland.id/p.html', '2021-04-23 09:05:36', 'sobatjasa.com/p.html', '2021-04-23 09:05:34', 'sman5us.online/', '2021-04-23 05:38:16', 'sadra.af/?s=hacked+by+xr00t`07', '2021-04-22 21:30:14', 'salatv.com.br/xr.html', '2021-04-22 21:22:29', 'loanslan.in/kamu.php']

Betul saja, data berupa waktu dan url defacement. Jika sudah begini, kita ambil domain dan pisahkan url dan path, dengan kode berikut, program juga tidak akan melakukam printout waktu.

for a in td:
  if re.findall(r'(.*?):',a):
    pass
  else:
    p = re.findall(r'(.*?)\/(.*?)',a)
    if p:
      print(p[0][0])
    else:
      print(a)

if statement pada re.findall(r'(.*?):',a) adalah jika a berupa string yang mengandung ":" maka a ini akan dilewati atau tidak diprint, yaitu pada string waktu. Jika tidak, maka kita bentuk variabel p berupa scrape atau potongan domain dengan path yaitu pada char "/" dengan escape string "\" agar "/" terbaca dengan benar. Maka seharusnya hasil scrape ini beruap array lagi dan domain saja terletak pada array index 0 pada index 0 maka p[0][0]. Jika p bernilai FALSE atau tidak perlu scraping domain dan path maka print saja a.

Selesai sudah program yang kita buat ini dan seharusnya keseluruhan kode menjadi seperti berikut.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
import requests,re,sys

url = "https://zone-d.org/mirror/archive/"
kueri = sys.argv[1]

r = requests.get(url+kueri)

tbody = re.findall(r'<tbody>(.*?)<\/tbody>',r.text)
td = re.findall(r'<td>(.*?)<td>',tbody[0])
for a in td:
  if re.findall(r'(.*?):',a):
    pass
  else:
    p = re.findall(r'(.*?)\/(.*?)',a)
    if p:
      print(p[0][0])
    else:
      print(a)

Mudah sekali bukan? Cara memakai program atau tool ini juga mudah. Kamu hanya tinggal save saja namafile.py lalu jalankan dengan:

python namafile.py [halaman]

Contoh:

python namafile.py 1

Share This :
EtcAug10

Hanya seorang pelajar yang hobi nya membuat kode dan berharap karya nya bermanfaat bagi orang lain.

0 komentar