-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreplicator.php
More file actions
48 lines (28 loc) · 806 Bytes
/
replicator.php
File metadata and controls
48 lines (28 loc) · 806 Bytes
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
<?php
$dnaurl = "https://raw.githubusercontent.com/LafeLabs/trashcore/master/data/dna.txt";
if(isset($_GET["dna"])){
$dnaurl = $_GET["dna"];
}
$baseurl = explode("data/",$dnaurl)[0];
$dnaraw = file_get_contents($dnaurl);
$dna = json_decode($dnaraw);
mkdir("data");
mkdir("php");
copy("https://raw.githubusercontent.com/LafeLabs/trashcore/master/php/replicator.txt","replicator.php");
foreach($dna->html as $value){
copy($baseurl.$value,$value);
}
foreach($dna->data as $value){
copy($baseurl."data/".$value,"data/".$value);
}
foreach($dna->php as $value){
copy($baseurl."php/".$value,"php/".$value);
copy($baseurl."php/".$value,explode(".",$value)[0].".php");
}
?>
<a href = "index.html">CLICK TO GO TO PAGE</a>
<style>
a{
font-size:3em;
}
</style>