Git Product home page Git Product logo

cruise-automation / fwanalyzer Goto Github PK

View Code? Open in Web Editor NEW
481.0 26.0 75.0 13.87 MB

a tool to analyze filesystem images for security

Home Page: https://www.fwanalyzer.io

License: Apache License 2.0

Dockerfile 0.19% Makefile 0.53% Go 87.89% Python 8.86% Shell 2.54%
liunx android security-audit security-automation security-tools firmware-analysis firmware-tools embedded-linux filesystem-images filesystem

fwanalyzer's People

Contributors

crmullineravsec avatar grazfather avatar jlarimer avatar sorousherafat avatar testwill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fwanalyzer's Issues

make test failed

I followed your instruction to install all requirements and build FwAnalyzer.

after that I tried to run the test:
make test (I have previously performed make testsetup)

then the following error occurs

image

I hope you can help me with my error :)

regex doesn't work

I tried to start my first analysis....
panic: runtime error: index out of range [0] with length 0

image

I found the problem in extparser.go

in function parseFileLine() is a regex query

my variables look like this:
line: 2 drwxr-xr-x root root 1024 6-May-2020 18:31 .
e.fileinfoReg: ^\s*(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+-\w+-\d+)\s+(\d+:\d+)\s+([\S ]+)

Command: res := e.fileinfoReg.FindAllStringSubmatch(line, -1)
Result of the command: res = []

The next step is to try to access res:
size, _ := strconv.Atoi(res[0][5])
This query throws the error that you see in the main program

The question is: what is the goal of the regex query and how can I modify it to make it work?

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.