Coder Social home page Coder Social logo

File sizes to scan about nodejsscan HOT 9 CLOSED

ajinabraham avatar ajinabraham commented on July 29, 2024
File sizes to scan

from nodejsscan.

Comments (9)

vladimernan avatar vladimernan commented on July 29, 2024

To add details - I'm using docker to run the scanner

from nodejsscan.

ajinabraham avatar ajinabraham commented on July 29, 2024

Can you share any logs from the app?

from nodejsscan.

vladimernan avatar vladimernan commented on July 29, 2024

I attempted 128MB size .zip file and it was like sitting on this whole eternity, then I just cancelled the job:
[INFO] Unzipping from Zip File

[INFO] Running Static Analyzer Running on - /root/.NodeJsScan/b20fbf07031ea0aed9c657798f6fec2136b2e9647f4628ffb68f57cfc4c75e6f/

from nodejsscan.

vladimernan avatar vladimernan commented on July 29, 2024

I ran scan on 5MB file and it returned results:
[INFO] Unzipping from Zip File

[INFO] Running Static Analyzer Running on - /root/.NodeJsScan/052c19fc061df118d6861220d835fc5c1ae478da7ffca66f1c5fa669628a4b5e/

[INFO] Static Analysis Completed!
[INFO] Saving Scan Results!
172.17.0.1 - - [16/Jun/2017 21:31:11] "POST /upload/ HTTP/1.1" 200 -
172.17.0.1 - - [16/Jun/2017 21:31:12] "GET /result/052c19fc061df118d6861220d835fc5c1ae478da7ffca66f1c5fa669628a4b5e HTTP/1.1" 301 -
172.17.0.1 - - [16/Jun/2017 21:31:18] "GET /result/052c19fc061df118d6861220d835fc5c1ae478da7ffca66f1c5fa669628a4b5e/ HTTP/1.1" 200 -

from nodejsscan.

vladimernan avatar vladimernan commented on July 29, 2024

I have increased memory, space and added CPUs on VM, as I suspected that there were no sufficient resources to run the scan. Not sure if that fixes issue in a long run. I suspect that after adding memory and power it may take a couple of hours to scan the file of that large size.

from nodejsscan.

vladimernan avatar vladimernan commented on July 29, 2024

Or maybe I'm too impatient?

from nodejsscan.

ajinabraham avatar ajinabraham commented on July 29, 2024

The scan time is directly promotional to the file size and sometimes regex can cause it a bit exponential. Be patient :)

from nodejsscan.

vladimernan avatar vladimernan commented on July 29, 2024

Thanks Ajin, but I have left it overnight - and seems it definitely has some issues with handling the large files. Mine is ~128MB. Finally it erred out with the message - server responded with 0 code. Does it ring any bells? Please help, if you can. As I said I am rinning Ubuntu workstation under Virtualbox and I am using the docker container to run the NodeJsScan tool...

from nodejsscan.

ajinabraham avatar ajinabraham commented on July 29, 2024

I cannot really help until i have access to the source code or problematic file. I guess it's a regex DoS.

from nodejsscan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.