Skip to content

Conversation

@kimocoder
Copy link
Contributor

  • Added execute permission to start_services.sh to the tool doesn't halt when trying to execute it.

@Ekultek
Copy link
Contributor

Why?

@kimocoder
Copy link
ContributorAuthor

after running autosploit.py, the tool halt when trying to start the services (after postgres question) adding execute permission let autosploit go to console (starts like it should)

@Ekultek
Copy link
Contributor

The tool doesn't hault when trying to start the services, it starts when the program begins. Adding the permissions for an executable does the same thing as doing sudo bash <FILE>.sh but reads from the shebang line.

@kimocoder
Copy link
ContributorAuthor

kimocoder commented Apr 3, 2018

tested it not long ago, but give me a moment I'll go check it again.

@Ekultek
Copy link
Contributor

Do this:

cat << _EOF > test.sh #!/bin/bash echo "this is a test" _EOF bash test.sh && chmod +x test.sh && ./test.sh` 

The output will be:

this is a test this is a test 

The only difference is one is executable and one is not, see here:

-rwxr-xr-x 1 admin staff 22 Apr 3 12:17 test.sh -rw-r--r-- 1 admin staff 0 Apr 3 12:17 test1.sh 

@kimocoder
Copy link
ContributorAuthor

Re-producing it all gives this

screenshot from 2018-04-03 19-30-56

@Ekultek
Copy link
Contributor

You have to run with sudo so we can see the process PIDs

@kimocoder
Copy link
ContributorAuthor

running as Kali root, using sudo would give the same output

@Ekultek
Copy link
Contributor

I'm gonna go ahead and test this really quick

@Ekultek
Copy link
Contributor

that's pretty fucking cool, merging

@EkultekEkultek merged commit 68b354a into NullArray:dev-betaApr 3, 2018
@kimocoder
Copy link
ContributorAuthor

Quick fix! thanks sir

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@kimocoder@Ekultek