Skip to content

Commit b6bc455

Browse files
committed
0.0.2-alpha include node-unblocker, proxy switching and minor changes
1 parent c6dd952 commit b6bc455

File tree

1,382 files changed

+93512
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,382 files changed

+93512
-10
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Moon
22
A simple frontend (for now) used to evade web filters.
33

4-
Currently the proxy only has Corrosion, which was a proxy developed by TitaniumNetwork and the successor to the Alloy proxy. Corrosion's successor is Ultraviolet, which may be implemented along with other proxies in the future.
4+
Currently the frontend has **Corrosion**, which was a proxy developed by TitaniumNetwork and the successor to the Alloy proxy. Corrosion's successor is Ultraviolet, which may be implemented along with other proxies in the future.
5+
The frontend also has **Node-Unblocker**, which is a library by nfriedly and used to bypass web filters and internet censorship. It's still in development and you won't be able to access many sites just yet.
56

67
## Deployments
78

8-
I don't recommend deploying it on platforms that don't allow proxies to be hosted on their service. 'Moon.' falls under this proxy category because it is powered by the Corrosion proxy.
9+
I don't recommend deploying it on platforms that don't allow proxies to be hosted on their service. 'Moon.' falls under this proxy category because it is powered by the multiple proxies.
910

1011
The list below shows which hosting sites work if Moon is deployed onto it.
1112

index.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<link rel="stylesheet" href="style.css"></head>
4+
<link rel="stylesheet" href="style.css">
5+
<!-- Include the external JavaScript file -->
6+
<script src="/switcher.js"></script>
7+
</head>
58
<body>
69
<h1>Moon.</h1>
7-
<form action="/get/gateway/" method="POST">
8-
<input type="text" name="url" placeholder=" Search the web">
9-
<input type="submit" value="Go">
10+
<form id="proxy-form" action="/corr/gateway/" method="POST">
11+
<input id="url-input" type="text" name="url" placeholder=" Search the web">
12+
<input type="submit" value="Go" onclick="submitForm()">
1013
</form>
11-
<p>Powered by Corrosion</p>
14+
<button type="toggle" onclick="toggleProxy()"><u>Toggle Proxy</u></button>
15+
<p>Powered by <span id="proxy-type">Corrosion</span></p>
1216
</body>
1317
</html>

index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ const https = require('https');
44
const fs = require('fs');
55
const path = require('path');
66
const Corrosion = require('corrosion');
7+
const Unblocker = require('unblocker');
78

89
const app = express();
10+
911
const proxy = new Corrosion({
1012
codec: 'plain',
11-
prefix: '/get/'
13+
prefix: '/corr/'
1214
});
1315

1416
proxy.bundleScripts();
@@ -35,6 +37,15 @@ app.get('/', (req, res) => {
3537
res.end(fs.readFileSync(indexPath, 'utf-8'));
3638
});
3739

40+
app.use(express.static(path.join(__dirname, 'public')));
41+
42+
const unblocker = Unblocker({
43+
prefix: '/nub/',
44+
hostBlacklist: [],
45+
});
46+
47+
app.use(unblocker);
48+
3849
const useSSL = false;
3950

4051
let server;

node_modules/.package-lock.json

Lines changed: 194 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)