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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venus-pit",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Express.js-based tarpit",
5
5
  "main": "dist/venus.bundle.js",
6
6
  "type": "module",
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(nightlock(`<a href='${firsturl}'>If you are a human being, I would suggest closing this tab, and if you arent, have fun losing money :3</a>`))
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