Closed Leectan closed 5 years ago
Hi
Yes the report automatically opens to the default browser,if it hasn't you can open it from this path
cs-suite/reports/aws_audit/<account_name>/<timestamp>/finalreport.html
Could you let us know your default browser,as we have tested with Google chrome.We can try resolving if the case is different.
Also just for the heads up,if development branch has been cloned,then it wouldnt work as work is still in progress on that branch.
I have tried the path but unfortunately it says "Your file was not found". The report does not automatically show up in browser and I've made sure I pulled it from the stable master branch. Any Advise?
Could you share what was the command,you used to run the cs-suite
Sure, I ran the python cs.py in the terminal as usual.
Like I said, it did not automatically pop up the browser neither does the manual process works.
Is it possible that you can navigate to that directory and check what files are available under that directory. cs-suite/reports/aws_audit/<account_name>/<timestamp>/final_report
.
This can help us debug more into this,currently I think this is the way we can go ahead and find the issue.
Could also let me know what files are present under that directory.
Are you running on your local machine or is this a ssh session?
ssh session. ec2 ubuntu server.
Oh then you would have copy the file/report back to your own localhost/machine via scp to view it in the browser
yes, I spent the whole night try to figure that out. I scp the whole final report folder, but when open the file, it says the objection above, "Your File Was Not Found"
Or another way to go around this is,you could configure the aws keys on localhost/machine itself with aws configure
,and then run cs.py,the report would generate on your localhost itself and by default it would open in your own browser
ok Thanks shivankar. Let me give that a try.
Ok, after the local test, I was able to run and generate the file, but for some reason, Scout2 report is not showing. I ran it 2 times and the issue still persist.
and IP audit as well.
Hey Are u still getting this error? sorry about the late response,was afk. Please let us know,we'll get this debugged
Hi Leectan,
If you haven't run a successful IP audit(Using CS-Suite) in past, the folder "local_audit" doesn't get created. So, it will always give this error of not found.
For AWS report, can you cd into the directory which has cs-suite and give us the directory listing result screenshot.
Also, do the same for the report folder, cd into reports folder and give us a directory listing image.
If you keep finding expected folders, reach to _cs-suite/reports/aws_audit/
So is the issue currently only with Scout2 ?
above are the files and directory for the cs-suite. I have tested on 2 aws accounts, one was able to generate the scout2 report, but not the other. Ip-audit could not be generated for neither accounts.
IP audit ,basically needs to run separately from AWS audit
For Linux box u run it as
python cs.py -aip "host_ip" -pem "pem_file_location"
(this will try logging in as default ec2-user)
@shivankar-madaan both scout2 and Ip audit. @jayeshchauhan, exactly, ip-audit was never generated, any suggestion to fix this type of issue?
@shivankar-madaan, so I should run the IP audit on ec2 server rather than my local machine? does it map the entire aws account or just specific VPC or ec2 instance?
You can run the IP audit on your local machine as well on your ec2-server
Just make sure that you have provided the right aws-region(when aws configure
was run)
suggestion on running ip audit locally with Unix instead of linux box.
it should work with Unix as well
So we have parameters option as -aip
(audit_ip) which is manadatory
-u
user-name,if you want to use any other user than ec2-user(which is default)
-pem
pem file location
-p
password,this is basically if you use password along with the pem file,or if you use just the password and not the pem file
Could you please try doing a scp manually as well
I mean the command under the line LINUX BOX FOUND!!!
lets see what error we get and we can then go ahead based on that
Hey please let us know if you need any help on this, or if we could close this
please re-open , if there's any issue on the same still exists.
I am facing the same issue while running cs audit for AWS. It don't generate the Scout2 report and its directory as "report/AWS/aws_audit/
Error response Error code 404.
Message: File not found.
I tried to run cs-suit in AWS ec2 instance with Ubuntu[16.04, 18.04], CentOS 7 and Amzon AMI. All three instance had same results. No Scout2 reports are generated using cs.py.
However when I individually run Scout2 from cs-suite/tools/Scout2/Scout2.py" it generates the report in "cs-suite/tools/Scout2/scout2-report/report.html"
After the report is generated, does it automatically export it to the default browser or it has to be manually open? If so, how? Any suggestion or help is appreciated here.