-
Notifications
You must be signed in to change notification settings - Fork 55
/
configure.php
66 lines (58 loc) · 1.89 KB
/
configure.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
64
65
66
<?php include'functions.php'; page_header(); ?>
<h2>Configure Proxy</a></h2>
<h1 style="color: lightgreen; text-align: right"><a href="index.php">New Scan</a></h1>
<form action="#" method="POST">
<select style="color:white; background-color: #1e1f23" type="text" name="proxy" required>
<option value="select" selected>Select a proxy</option>
<option value="ScraperAPI">Scraper API<br>
<option value="ScrapingDog">Scraping Dog<br>
<option value="ZenScrape">Zen Scrape<br>
<option style="position: left">
</select>
<br>
<input style="color:white" type="text" name="api_key" placeholder="Enter the API key">
<br>
<input style="background-color: grey;" type="submit" name="submit" value="submit">
</form>
<?php
showproxy();
error_reporting(0);
if($_POST['submit'])
{
if(!isset($_POST['api_key']))
{
echo "API key needed\n";
exit;
}
elseif($_POST['proxy'] == "ScraperAPI")
{
$proxy_url = "http://api.scraperapi.com?api_key=".$_POST['api_key']."&url=";
$test_url = "https://duckduckgo.com";
$name = "ScraperAPI";
validating_proxy($proxy_url,$test_url,$name);
echo $proxy_url;
}
elseif($_POST['proxy'] == "ScrapingDog")
{
$proxy_url = "https://api.scrapingdog.com/scrape?api_key=".$_POST['api_key']."&url=";
$test_url = "https://www.scrapingdog.com/";
$name = "ScrapingDog";
validating_proxy($proxy_url,$test_url,$name);
echo $proxy_url;
}
elseif($_POST['proxy'] == "ZenScrape")
{
$proxy_url = "https://app.zenscrape.com/api/v1/get?apikey=".$_POST['api_key']."&url=";
$test_url = "https://zenscrape.com/";
$name = "ZenScrape";
validating_proxy($proxy_url,$test_url,$name);
echo $proxy_url;
}
else
{
echo "No option Selected\n";
exit;
}
}
?>
<?php footer(); ?>