This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getBrowser() | |
{ | |
$u_agent = $_SERVER['HTTP_USER_AGENT']; | |
$bname = 'Unknown'; | |
$platform = 'Unknown'; | |
$version= ""; | |
//First get the platform? | |
if (preg_match('/linux/i', $u_agent)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getBrowser() | |
{ | |
$u_agent = $_SERVER['HTTP_USER_AGENT']; | |
$bname = 'Unknown'; | |
$platform = 'Unknown'; | |
$version= ""; | |
//First get the platform? | |
if (preg_match('/linux/i', $u_agent)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This replicates magic_quotes_gpc in PHP 5.4+ | |
foreach($_POST as $key => $val){ | |
$_POST[$key] = addslashes($val); | |
} | |
foreach($_GET as $key => $val){ | |
$_GET[$key] = addslashes($val); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifconfig | grep "inet 192." | cut -d" " -f2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ************ use_exploit() ************ // | |
function use_exploit($ek_ip, $cb_ip, $msf_exploit_full_path, $msf_payload_full_path, $msf_target = -1) | |
{ | |
debug("START Function use_exploit()</br>"); | |
$token = msf_auth($ek_ip); | |
$client_request = array("core.version", $token); | |
$server_response = msf_cmd($ek_ip, $client_request); | |
$client_request = array("console.create", $token); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script> | |
<script type="text/javascript"> | |
$( document ).ready(function() { | |
$(".ms-acal-item a").click(function(e) { | |
console.log("Caught click inside div!"); | |
e.preventDefault(); | |
console.log(e); | |
}); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Generate random hash | |
written by Logan (d4rkd0s) */ | |
function getRandomWord($len = 10) { | |
$word = array_merge(range('a', 'z'), range('A', 'Z')); | |
shuffle($word); | |
return substr(implode($word), 0, $len); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script> | |
<style> | |
body { | |
margin: 0; | |
background: #000; | |
} | |
video { | |
position: fixed; | |
top: 50%; | |
left: 50%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: #111; | |
color: #ddd; | |
} | |
.agile:before, .smartui:before { | |
background-color: #111; | |
background: #111; | |
background: -moz-linear-gradient(top, #111 0%, #111 80%, #111 100%, #111 100%); | |
background: -ms-linear-gradient(top, #111 0%, #111 80%,#111 100%, #111 100%); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('#element').mousedown(function(event) { | |
switch (event.which) { | |
case 1: | |
console.log('LMB pressed.'); | |
break; | |
case 2: | |
console.log('MMB pressed.'); | |
break; | |
case 3: |
OlderNewer