Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
gjs /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
calc.js
3.59
KB
-rw-r--r--
dbus-client.js
4.73
KB
-rw-r--r--
dbus-service.js
3.43
KB
-rw-r--r--
gettext.js
630
B
-rw-r--r--
gio-cat.js
733
B
-rw-r--r--
glistmodel.js
3.73
KB
-rw-r--r--
gtk3-template.js
1.54
KB
-rw-r--r--
gtk3-template.ui
1.61
KB
-rw-r--r--
gtk4-template.js
1.59
KB
-rw-r--r--
gtk4-template.ui
1.61
KB
-rw-r--r--
gtk-application.js
3.65
KB
-rw-r--r--
gtk.js
2.53
KB
-rw-r--r--
http-client.js
1.4
KB
-rw-r--r--
http-server.js
1.19
KB
-rw-r--r--
README
77
B
-rw-r--r--
test.jpg
35.55
KB
-rw-r--r--
test.jpg.license
158
B
-rw-r--r--
timers.js
434
B
-rw-r--r--
webkit.js
485
B
-rw-r--r--
websocket-client.js
1.41
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : http-server.js
// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later // SPDX-FileCopyrightText: 2010 litl, LLC // This is a simple example of a HTTP server in Gjs using libsoup const Soup = imports.gi.Soup; function handler(server, msg, path, query, client) { msg.status_code = 200; msg.response_headers.set_content_type('text/html', {}); msg.response_body.append(` <html> <body> Greetings, visitor from ${client.get_host()}<br> What is your name? <form action="/hello"> <input name="myname"> </form> </body> </html> `); } function helloHandler(server, msg, path, query) { if (!query) { msg.set_redirect(302, '/'); return; } msg.status_code = 200; msg.response_headers.set_content_type('text/html', {charset: 'UTF-8'}); msg.response_body.append(` <html> <body> Hello, ${query.myname}! ☺<br> <a href="/">Go back</a> </body> </html> `); } function main() { let server = new Soup.Server({port: 1080}); server.add_handler('/', handler); server.add_handler('/hello', helloHandler); server.run(); } main();
Close