This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
/
grab.php
63 lines (51 loc) · 1.89 KB
/
grab.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<title>Doujin Stealer</title>
<link rel="shortcut icon" href="https://1.bp.blogspot.com/-q4WhoEwfRlI/XDCnuof_TsI/AAAAAAAAIsQ/HxA6hd2mIOgiO8KveXaxKwfaecawWpCgwCLcBGAs/s1600/kano.png" type="image/x-icon">
<meta name='author' content='Stupidc0de Family'>
<link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
<style>
.subbtn {background:#b70505;color:white;border: 1px solid #000; padding:6px 6px 6px 6px;}
.bordergaya{
background:black;
color:white;
margin:0 10px;
font-family:Ubuntu Mono;
font-size:16px;
border:2px solid #2d2b2b;
}
.bordergaya:hover{
background:#2d2b2b;
color:white;
margin:0 10px;
font-family:Ubuntu Mono;
font-size:16px;
border:2px solid crimson;
}
</style>
<?php
include('crawler.php'); //Parser to get element in your link
if(isset($_POST['submit'])){
$url=file_get_html($_POST['url']);
$image = $url->find("img");
foreach($image as $img)
{
$s=$img->src;
$img_name = 'result/'.basename($s); //change it
file_put_contents($img_name, file_get_contents($s));
}
}
?>
<center><font face="Ubuntu" size="5" color="white"><b>nHentai Grabber by Sc0<b/></font></center>
<center><img class='image' src='https://3.bp.blogspot.com/-6XZOk6uPV4U/XEBO8xwFcwI/AAAAAAAABL4/BDAHAxIoOCAZCO0FmEnNtAyGXoTx9dz6wCLcBGAs/s1600/weeblogo.png' width='600' height='520'/>
<body bgcolor=black>
<form id="form1" name="form1" method="post" action="">
<table width="300" align="center" cellpadding="1" cellspacing="1">
<tr>
<td colspan="2"><label for="textfield"></label>
<input class="bordergaya" style="width:100%;" placeholder="put url nHentai mirror here.." type="text" name="url" id="textfield" />
</td>
</tr>
<tr>
<td colspan="2" align="center" valign="middle"><input class="subbtn" type="submit" name="submit" id="button" value=" > " /></td>
</tr>
</table>
</form>