venus-pit 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TODO.md +3 -0
- package/dist/venus.bundle.js +22 -22
- package/dist/venus.bundle.js.map +1 -1
- package/package.json +1 -1
- package/src/venus.js +2 -3
- package/testing/venus.js +22 -22
package/package.json
CHANGED
package/src/venus.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { venusRoot } from './lib/venusRoot.js'
|
|
2
|
-
import { nightlock } from './lib/poisoning/nightlock.js'
|
|
3
2
|
import {pit} from "./lib/tarpit/pit.js"
|
|
4
|
-
|
|
3
|
+
import { tar } from "./lib/tarpit/tar.js"
|
|
5
4
|
|
|
6
5
|
function venus(app, root="UNSET") {
|
|
7
6
|
const instanceRoot = new venusRoot(root);
|
|
8
7
|
console.log('path: ' + instanceRoot.path)
|
|
9
8
|
app.get(instanceRoot.path, (req, res) => {
|
|
10
9
|
let firsturl = pit(app, instanceRoot, req) // this will start the recursive hell known as a tarpit
|
|
11
|
-
res.send(
|
|
10
|
+
res.send(tar(firsturl))
|
|
12
11
|
console.log(`Creating tarpit for:\nuser-agent- ${req.headers['user-agent']}\nIP- ${req.ip}`)
|
|
13
12
|
})
|
|
14
13
|
return instanceRoot.path
|