![]() |
|
Capture network with PHP - Printable Version +- HN-Community (https://hacker-newbie.org) +-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html) +--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html) +--- Thread: Capture network with PHP (/thread-3181.html) |
Capture network with PHP - t3cm4n - 05-18-2010 ada yang tau nggak nih,gmn cara nya caputer packet network dgn php klu biasa nya kan org pake cacti+rrd atau mrtg+snmp,nah nih aku mau build sendiri pliss klu ada yg tau kasih info yaaa thx before regard joe RE: Capture network with PHP - Jacket^Cyber - 05-18-2010 Biasanya Yg Jawab ini adaLah : ArRay / N4ck0 / K4pT3n tApi eNtah kemana orAng2 itu..huhuh.. saya Ga ngerti PHP seh..kaLo ngerti tak Jawab deh.. maaF yAh.. Rey,,,,,ko,,,,cLient mu...siniiiii RE: Capture network with PHP - K4pT3N - 05-18-2010 wah, kompleks neh sob... karena ne udha ngedevelopt tools network sendiri... tapi konsep dasarnya seh, minimal harus udah mudeng jaringan, sama command2 dasar via DOS/Shell/CMD/Terminal/Console (mo pake windows atau linux terserah ja... ^_^) PHP Code: <form name="form1" method="post" action="">
<label>Destination
<input name="target" type="text" id="target" size="30">
Action
<select name="cmd">
<option value="ping">Ping</option>
<option value="tracert">Tracert</option>
<option value="netstat">NetStat</option>
<option value="ipconfig">Lihat IP</option>
</select>
</label>
<label>
<input type="submit" name="Submit" value="Submit">
</label>
</form>
<?php
if($_POST['cmd']) {
system($_POST['cmd']." ".$_POST['target']);
} else {
echo "No Command Found";
}
?>ne, q buat standard buat contoh ja bro.. tinggal pahami dulu konsep jalannya traffic, sekalian command2nya trus dikembangin lagi... untuk ping (khusus linux) atau ping -t (windows), karena perlu real time, gak bisa pake script diatas, karena script bakalan nampilin output klo command udah selesai di eksekusi. Masalahnya, perintah ping gak akan pernah berhenti sebelum dihentikan, Nah karena perintah diatas gak bakalan berhenti, kita yang yang harus menghentikannya secara program, buat nampilin output sementara, trus jalankan lagi command ping. atau Bisa juga dipakein Autorefresh... PHP Code: <head>
<!-- refresh halaman setiap 5 detik -->
<meta http-equiv="refresh" content="5; url=<?php $_SERVER['PHP_SELF']; ?>">
</head>
waks, bingung sendiri aku, padahal yang ditanyain capture network.. hahaha... Klo pake linux enak sob, karena bisa numpang eksekusi menggunakan tools tambahan... PHP Code: system("aircrack-ng"); //DLL
sory ne gi nyobain command punya windows doang.. ^_^ CMIIW yarp yarp RE: Capture network with PHP - Jacket^Cyber - 05-18-2010 tUhkan beneR.. om K4pT3n pasti Langsung hadir kalo nyium bau2 PHP gini.. hehehe RE: Capture network with PHP - K4pT3N - 05-18-2010 jiah.. ada yang mancing di air keruh seh.. jadinya jawabannya juga keruh.. hahaha RE: Capture network with PHP - Jacket^Cyber - 05-18-2010 hehehee.. bisa aJa dah.. biAR keruh..kAn yg penting daPet ikANnya.. meskiPun nanti ikannya ikutan kerUH juga.. :P RE: Capture network with PHP - febrian - 02-20-2011 (05-18-2010, 09:57 PM)K4pT3N Wrote: wah, kompleks neh sob... karena ne udha ngedevelopt tools network sendiri... w salut ma om K4pT3N sering2 share mengenai php dan html om, soal-nya saya gi blajar php dan html, tpi kayak-nya om K4pT3N udah gak di HN lagi yah...!! soal-nya saya udah gak perna liat tread dari om K4pT3N lagi |