
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
nginx-replay
Advanced tools
A simple tool for replaying requests from nginx log file to the custom server.
npm i -g nginx-replay
Usage of nginx-replay:
Options:
-f, --filePath <path> path of the nginx logs file
-p, --prefix <url> url for sending requests
-r, --ratio <number> acceleration / deceleration rate of sending requests, eg: 2, 0.5 (default: "1")
--format <string> format of the nginx log (default: "$remote_addr - $remote_user [$time_local] \"$request\" $status $body_bytes_sent \"$http_referer\" \"$http_user_agent\"")
-d --debug show debug messages in console (default: false)
-l, --logFile <path> save results to the logs file (default: "")
-t, --timeout <int> timeout fo the requests
--username <string> username for basic auth
--password <string> password for basic auth
--scaleMode experimental mode for the changing requests order (default: false)
--skipSleep remove pauses between requests. Attention: will ddos your server (default: false)
--skipSsl skip ssl errors (default: false)
-s, --stats show stats of the requests (default: false)
--deleteQueryStats <comma separated string> delete some query for calculating stats, eg: "page,limit,size" (default: "")
--statsOnlyPath keep only endpoints for showing stats (default: false)
--hideStatsLimit <int> limit number of stats
-h, --help display help for command
# Replay access log
nginx-replay -f nginx-acces.log -p localhost -d -l out.log -s
Log is 5 spaces separated values:
replay-status original-status start-time-at-log replay-start-time duration url
403 200 1619052383000 1619433520324 0.32 /enpoint?page=1
Calculated list of top urls. You can hide some rare requests by passing hideStatsLimit option. Also you can remove some or all query by passing deleteQueryStats or statsOnlyPath options.
Some useful information and statistic about requests, rps, errors end etc.
FAQs
A simple tool for replaying requests from nginx log file to the custom server
We found that nginx-replay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.