You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cshell

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cshell - npm Package Compare versions

Comparing version

to
1.1.4

21

index.js

@@ -26,15 +26,7 @@ #!/usr/bin/env node

else {
// static dir
if (options.static && typeof options.static === "string") {
const staticServer = require("koa-static")
const staticDir = path.resolve(".", options.static)
app.use(staticServer(staticDir))
}
// routes
const router_index = new Router()
// any (log)
router_index.get(/^\/.*$/, (ctx, next) => {
router_index.get(/^\/.*$/, async (ctx, next) => {
console.info(

@@ -47,4 +39,5 @@ "[INFO] ".cyan +

)
next()
await next()
})
// index

@@ -60,2 +53,10 @@ router_index.get("/", (ctx, next) => {

// static dir
if (options.static && typeof options.static === "string") {
const staticServer = require("koa-static")
const staticDir = path.resolve(".", options.static)
app.use(staticServer(staticDir))
}
// detect the port

@@ -62,0 +63,0 @@ isPortOccupied(parseInt(options.serverPort)).then(occupied => {

{
"name": "cshell",
"version": "1.1.3",
"version": "1.1.4",
"description": "HTTP server for bounce shell downloading",

@@ -5,0 +5,0 @@ "main": "index.js",