Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Linux files to steal

I have a system set up in a VM that is running DB as root and is purposely SQLi , however It also doesn't disclose the file system at all.

So I know that I can read/write files so where do I go from here?
How do I go about finding the /www folder so I can install a back door?

I have downloaded the /etc/passwd file but that isn't giving me the information I am after.

¸„»°'´¸„»°'´Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est ¸„»°'´`'°«„¸`'°«„¸¸„»°'´
First of all i think the "/www" folder you are referring to is located at "/var/www"
the /etc/passwd file just contains local users. The file you're probably after is /etc/shadow which contains the systems password but its hashed so you'll have to crack it.
You might also want to add your ssh key in the machines ~/.ssh folder so you can access it at any time through ssh
(Jun 15, 2017 08:00 AM)Rafaelinio Wrote:  First of all i think the "/www" folder you are referring to is located at "/var/www"
the /etc/passwd file just contains local users. The file you're probably after is /etc/shadow which contains the systems password but its hashed so you'll have to crack it.
You might also want to add your ssh key in the machines ~/.ssh folder so you can access it at any time through ssh

how do I add a key?

¸„»°'´¸„»°'´Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est ¸„»°'´`'°«„¸`'°«„¸¸„»°'´
Generate one on your attack machine using:
root@ubuntu:~# ssh-keygen

Then upload the .pub file that will be generated to the victim machine and append to the authorized keys like so
cat <your public key>.pub >> ~/.ssh/authorized_keys

you can now connect to it using ssh <victims_ip>

anyway you can just google this....
(Jun 15, 2017 08:20 AM)Rafaelinio Wrote:  Generate one on your attack machine using:
root@ubuntu:~# ssh-keygen

Then upload the .pub file that will be generated to the victim machine and append to the authorized keys like so
cat <your public key>.pub >> ~/.ssh/authorized_keys

you can now connect to it using ssh <victims_ip>

anyway you can just google this....

Thanks, what if ssh disabled? Seeing as i cant find where the www folder is i have no idea where to write a backdoor.

¸„»°'´¸„»°'´Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est ¸„»°'´`'°«„¸`'°«„¸¸„»°'´
How are you gonna write a backdoor if you don't know the basics of linux? grab yourself a book and familiarize with the linux filesystem, commands etc.
Just write to /etc/shadow. It's really not that difficult.
(Jun 16, 2017 09:15 AM)Rafaelinio Wrote:  How are you gonna write a backdoor if you don't know the basics of linux? grab yourself a book and familiarize with the linux filesystem, commands etc.

My problem is finding the www documents, i my have lied in the op its not a vm.

The webserver is running solaris, i tried all the normal www folders and no luck, i guess the next step is to upload a backdoor and run it on the machine rather than via a web folder based on?

¸„»°'´¸„»°'´Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est ¸„»°'´`'°«„¸`'°«„¸¸„»°'´
(Jun 18, 2017 12:37 AM)vorticalbox Wrote:  My problem is finding the www documents, i my have lied in the op its not a vm.

The webserver is running solaris, i tried all the normal www folders and no luck, i guess the next step is to upload a backdoor and run it on the machine rather than via a web folder based on?

You can predict the document root with knowledge of the web server software.
i am stil stuck on finding kernel exploit
(Jun 18, 2017 09:42 AM)_bengi Wrote:  You can predict the document root with knowledge of the web server software.

(Jun 18, 2017 03:03 PM)VizOne Wrote:  i am stil stuck on finding kernel exploit

I stole /etc/syslog.confg and got this

#ident "@(#)syslog.conf 1.5 98/12/14 SMI" /* SunOS 5.0 */

¸„»°'´¸„»°'´Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est ¸„»°'´`'°«„¸`'°«„¸¸„»°'´


Possibly Related Threads...
Thread / Author Replies Views Last Post
by moudi5Aug 10, 2016 11:12 AM 8 370 Aug 10, 2016 11:12 AM
Last Post: DX-1
by PhantomRotaxJan 3, 2014 04:24 PM 0 112 Jan 3, 2014 04:24 PM
Last Post: PhantomRotax
by VngngdnJul 16, 2012 09:38 AM 2 130 Jul 16, 2012 09:38 AM
Last Post: Vngngdn