GithubHelp home page GithubHelp logo

Comments (7)

toniblyx avatar toniblyx commented on May 14, 2024

Are you running it on linux or mac?
It seems to be using a wrong flag on the date command. The numbers enhancement is working fine, isn't it?

from prowler.

jonatversprite avatar jonatversprite commented on May 14, 2024

$ uname -a
Darwin Jonathans-MacBook-Pro.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

from prowler.

jonatversprite avatar jonatversprite commented on May 14, 2024

I tested on an Amazon Linux box:

1.04 Ensure access keys are rotated every 90 days or less (Scored)
date: invalid date ‘access_key_1_last_rotated’
./prowler: line 170: (1505088000 - )/60/60/24: syntax error: operand expected (error token is ")/60/60/24")
./prowler: line 519: [: -gt: unary operator expected

from prowler.

toniblyx avatar toniblyx commented on May 14, 2024

ok, thanks. Working on it now

from prowler.

toniblyx avatar toniblyx commented on May 14, 2024

I can't reproduce it using either commands:

./prowler -p $PROFILE -n -c check104 -M csv

or

./prowler -p $PROFILE -n -c check104

Can you try changing line 519 from this:

if [ $HOWOLDER -gt "90" ];then

to this one:

if [[ $HOWOLDER -gt "90" ]];then

Thanks.

from prowler.

jonatversprite avatar jonatversprite commented on May 14, 2024

change made, here's the output

date: invalid date ‘access_key_1_last_rotated’
./prowler: line 170: (1505088000 - )/60/60/24: syntax error: operand expected (error token is ")/60/60/24")

from prowler.

toniblyx avatar toniblyx commented on May 14, 2024

There was a conflict with certain user names ;) and now it is fixed.

from prowler.

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.