Skip to content
/ idclip Public

3301 - Find strings in Project Sonar HTTP data

Notifications You must be signed in to change notification settings

rtkd/idclip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find strings in Project Sonar HTTP data

Accepts 3 parameters: 1. Regular Expression 2. Infile 3. Outfile.
Returns: Matched hosts as JSON and HTML.

Options

'buildHTML': true, // Build HTML files. Default: true.
'removeScripts': true, // Remove scripts from host HTML. Default: true.
'replaceImages': true, // Replace images in host HTML. Default: true.
'happyKitten': 'http://placehold.it/200x100&text=Image replaced', // Placeholder image.
'hostsPerHTMLFile': 500, // Number of hosts per HTML file. Default: 500.
'logInterval': 60000, // How often to log progress to console. Default: 60000.
'logFile': 'log/.log', // Log file

WARNING

Use at own risk!

There is abolutely no warranty every script or image is removed from host HTML!
Everything but <script> and <img> will pass through untouched!

Run

$ node find.js <regex> <infile> <outfile>

Example

$ node --max-old-space-size=8192 find.js '\b3301\b' 20141223-http.json 3301.json

Bugs

There is a limit to the string length Array.join() can handle.
So if your RegEx is too unspecific and matches too many hosts, the script will crash when building output files.

About

3301 - Find strings in Project Sonar HTTP data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published