-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README を良くする #35
Comments
ReDoS検出プログラムこのレポジトリは、 What is ReDoS ?Regular expression Denial of Service - 脆弱な正規表現が原因で起こるDoS攻撃 Demo/* 攻撃文字列とサブマッチをMergeされたら、pages or ローカル実行のスクショ */ Usage
~/$ git clone https://github.com/n4o847/seccamp-redos.git
~/$ cd seccamp-redos
~/seccamp-redos$ npm install
~/seccamp-redos$ npx ts-node src/test.ts Dependency or Requirement
|
まだ中途半端ですが、作ってみました。(あまりやったことがないので、これでいいのかわかりませんが) |
ありがとうございます! デモ載せるの良いですね。 |
Usage 案です。
Usageブラウザで確認するブラウザで正規表現から作られるオートマトンを確認できます。 https://n4o847.github.io/seccamp-redos/ ESLintプラグインとして使うこのツールをESLintプラグインとして使えるようにしたものが公開されています。 https://github.com/Neccolini/seccampZ3-linter ライブラリとして使う$ npm install n4o847/seccamp-redos const redos = require('seccamp-redos');
const re = /(a|a)*/;
console.log(redos.detectReDoS(re.source, re.flags));
// { status: 'Vulnerable', message: 'Detected EDA.' } ローカルで動かす(同じ) |
とりあえず、現状の
は動きません。
The text was updated successfully, but these errors were encountered: