Notices


Reply
Thread Tools
Guest | Posts: n/a | Thanked: 0 times | Joined on
#1
So, using a load of pentest tools, nessus and metasploit being two. I needed postgres on my N9 for autopwn in metasploit, using database results imported from nessus.

Why not share with you guys!

Download:

Code:
wget https://dl.dropboxusercontent.com/u/85377542/postgres-9.3.0.deb --no-check-certificate
Install:
Code:
devel-su
develsh
dpkg -i postgres-9.3.0.deb
adduser postgres
passwd postgres
mkdir /usr/local/pgsql/data
chown postgres:postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data/
start:

Code:
 /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
test:

Code:
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test
please note, develsh privileges ARE needed for using the su - postgres command.

Last edited by nieldk; 2013-09-21 at 15:31. Reason: typo
 

The Following 5 Users Say Thank You to For This Useful Post:
Posts: 187 | Thanked: 121 times | Joined on Jun 2011 @ Subang Jaya, Selangor Darul Ehsan, Malaysia
#2
cool, now i need only php on it to do my work on my n9 hahahahahaha
just saying
 

The Following User Says Thank You to Jeffrey04 For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#3
Originally Posted by Jeffrey04 View Post
cool, now i need only php on it to do my work on my n9 hahahahahaha
just saying
Feel free to test this build
https://dl.dropboxusercontent.com/u/.../php-5.5.4.deb
 

The Following 2 Users Say Thank You to For This Useful Post:
Posts: 187 | Thanked: 121 times | Joined on Jun 2011 @ Subang Jaya, Selangor Darul Ehsan, Malaysia
#4
Originally Posted by nieldk View Post
Feel free to test this build
https://dl.dropboxusercontent.com/u/.../php-5.5.4.deb
*salute*
now only need an easy way to toggle apache/postgresql service on/off lolol
i suppose they are all upstart scripts, so i can just call service postgresql start??!
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#5
Use pgctl start/stop with parameter to datafile
 

The Following User Says Thank You to For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 14:45.