-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
272 lines (214 loc) · 6.97 KB
/
index.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi">
<title> Kiosk Tooling </title>
<!-- Styling -->
<style>
* {
font-size: small;
font-family: monospace;
}
:root {
--snow: #fbfbfb;
--orange: #F56E0F;
--dark-void: #151419;
--gluon-grey: #1b1b1E;
--slate-grey: #262626;
--dusty-grey: #878787;
}
body {
max-width: 380px;
margin: auto;
color: var( --snow );
background-color: var( --dark-void );
}
h1 {
color: var( --orange );
border-bottom: 1px dashed var( --snow );
}
h2 {
margin-top: 10px;
margin-bottom: 5px;
padding-top: 50px;
border-top: 1px dashed var( --dusty-grey );
border-bottom: 1px dashed var( --dusty-grey );
}
h1, h2 {
font-size: 24px;
}
p {
color: var( --dusty-grey );
font-size: 13px;
}
textarea {
width: 95%;
}
a {
font-weight: lighter;
font-size: large;
color: var( --snow );
text-decoration: none;
}
a:hover, a:active {
color: var( --orange );
text-decoration: underline;
}
.desc {
margin-top: 0px;
margin-bottom: 0px;
}
.brief {
color: var(--orange);
}
#cpaste {
width: 96.5%;
}
@media all and (orientation:landscape) {
html {
background-color: var( --dark-void );
}
body {
padding: 5%;
padding-top: 1%;
margin-top: 2%;
background-color: var( --slate-grey );
box-shadow: 25px 20px 1px var( --gluon-grey );
border-radius: 2px;
border: 1px solid white;
}
h1 {
text-align: center;
text-shadow: 4px 4px 2px var( --dark-void );
padding: 0;
}
}
</style>
</head>
<body>
<h1> Kiosk Tooling </h1>
<p> Tooling for lateral movement.
Of use if you pop a browser on a machine that's on Kiosk mode.
</p>
<!-- Copy & Paste -->
<div class="copy" id="copy">
<h2> Copy & Paste </h2>
<p class="desc brief"> @brief </p>
<p class="desc"> - use this to write down and copy text. </p>
<p></p>
<div>
<textarea id="copy_paste"> </textarea>
</div>
<button type="button" id="cpaste"> copy to clipboard</button>
</div>
<!-- Redirector -->
<div class="redirector" id="redirector">
<h2> Redirector </h2>
<p class="desc brief"> @brief </p>
<p class="desc"> - use this to redirect to domains & webpages.</p>
<p class="desc"> - can be used to reveal webpages lateral on the network, </p>
<p></p>
<label for="redirect">
link:
</label>
<input name="redirect_to" id="redirect" type="url" />
<button type="submit" id="redirect_button"> redirect </button>
<p class="desc"> e.g "http://192.168.1.1/" -> router panel.</p>
</div>
<!-- File Upload -->
<div class="files" id="files">
<h2> File Upload </h2>
<p class="desc brief"> @brief</p>
<p class="desc"> - use this to access & browse internal files & directories. </p>
<p></p>
<form action="/api" method="post" enctype="multipart/form-data">
<input id="file" name="file" type="file" />
</form>
<p> p.s. file's are not actually being sent anywhere! </p>
</div>
<!-- Calculator -->
<div class="calculator">
<h2> Calculator </h2>
<p class="desc brief"> @brief</p>
<p class="desc"> - use this to pop a calculator, or use other protocols </p>
<p></p>
<input name="protocol" value="calculator://" placeholder="calculator://" id="calculator">
<button id="calculator_button"> open </button>
<p></p>
</div>
<!--
* User Agent:
* get the user agent of the browser.
* Written by: @3sier.
-->
<div class="user_agent">
<h2> User Agent </h2>
<p class="desc brief"> @brief</p>
<p class="desc"> - below is the browser's user agent </p>
<p></p>
<p id="user_agent_result"> ... </p>
<p></p>
</div>
<!-- WS Lateral scan, -->
<!-- TODO: To be made -->
<!-- AJAX Lateral scan, -->
<!-- TODO: To be made -->
<!-- toolbox -->
<div class="toolbox">
<h2> Toolbox </h2>
<p class="desc brief"> @brief</p>
<p class="desc"> - below are links to other tools: </p>
<p></p>
<a href="/network_info.html"> /network_info.html </a>
<a href="/port_scanner/index.html"> /port_scanner/index.html </a>
</div>
<p></p>
<script>
// Global Variables
var COPY = document.getElementById( "copy_paste" )
var COPY_BUTTON = document.getElementById( "cpaste" )
var REDIRECTOR = document.getElementById( "redirect" )
var REDIRECTOR_BTN = document.getElementById( "redirect_button" )
var CALCULATOR = document.getElementById( "calculator" )
var CALCULATOR_BTN = document.getElementById( "calculator_button" )
// Listeners
COPY_BUTTON.addEventListener( "click", function() {
copyToClipboard( COPY.value )
});
REDIRECTOR_BTN.addEventListener( "click", function(){
window.location = REDIRECTOR.value;
});
CALCULATOR_BTN.addEventListener( "click", function(){
window.location = CALCULATOR.value;
});
// Helper functions
function copyToClipboard(text) {
// Source: https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript
if ( window.clipboardData && window.clipboardData.setData ) {
return window.clipboardData.setData("Text", text);
}
if ( document.queryCommandSupported && document.queryCommandSupported("copy") ) {
let textarea = document.createElement("textarea");
textarea.textContent = text;
textarea.style.position = "fixed";
document.body.appendChild(textarea);
textarea.select();
try {
return document.execCommand("copy");
}
catch (ex) {
alert("Could not Copy to clipboard..", ex);
return prompt("Copy to clipboard: Ctrl+C, Enter", text);
}
finally {
document.body.removeChild(textarea);
}
}
}
/* User-Agent Info:
* Written by: @3sier.
*/
document.getElementById( "user_agent_result" ).innerHTML = navigator.userAgent;
</script>
</body>
</html>