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

Ekultek commented Apr 3, 2018

Why?

@kimocoder
Copy link
Contributor Author

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

Ekultek commented Apr 3, 2018

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
Contributor Author

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

Ekultek commented Apr 3, 2018

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
Contributor Author

Re-producing it all gives this

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

@Ekultek
Copy link
Contributor

Ekultek commented Apr 3, 2018

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

@kimocoder
Copy link
Contributor Author

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

@Ekultek
Copy link
Contributor

Ekultek commented Apr 3, 2018

I'm gonna go ahead and test this really quick

@Ekultek
Copy link
Contributor

Ekultek commented Apr 3, 2018

that's pretty fucking cool, merging

@Ekultek Ekultek merged commit 68b354a into NullArray:dev-beta Apr 3, 2018
@kimocoder
Copy link
Contributor Author

Quick fix! thanks sir

Sign up for free to 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