Skip to content

Instantly share code, notes, and snippets.

View atmoner's full-sized avatar
🔥
On fire

ɐʇɯon3ɹ atmoner

🔥
On fire
View GitHub Profile
@atmoner
atmoner / Encode-decode-info_hash
Last active August 29, 2015 14:00
Encode/decode info_hash url announce
if (get_magic_quotes_gpc())
$info_hash = bin2hex(stripslashes('9ecba10dc84ee33e2206bed06e0658280b0802fe'));
else
$info_hash = bin2hex('9ecba10dc84ee33e2206bed06e0658280b0802fe');
echo $info_hash;
<?php
// Run: php install.php
//ENTER THE RELEVANT INFO BELOW
$mysqlDatabaseName ='torrentDb';
$mysqlUserName ='root';
$mysqlPassword ='toor';
$mysqlHostName ='localhost';
$mysqlImportFilename ='libs/db.sql';
// CONFIG BITTYTORRENT
$path = 'http://localhost';
@atmoner
atmoner / Remove lang
Last active August 29, 2015 14:20
Remove lang
<?php
/*
Plugin Name: Remove lang
Plugin URI: http://bittytorrent.com/
Description: Remove lang
Version: 1.0
Author: Atmoner
Author URI: http://bittytorrent.com/
*/
@atmoner
atmoner / handler.js
Last active January 22, 2017 22:13 — forked from jeffrafter/handler.js
Simple HTTP Server and Router in node.js
exports.createHandler = function (method) {
return new Handler(method);
}
Handler = function(method) {
this.process = function(req, res) {
params = null;
return method.apply(this, [req, res, params]);
}
}
@atmoner
atmoner / encrypte mail openssl_pkcs7_sign
Last active February 3, 2017 20:19
(more info begin)
<?php
// the message you want to sign so that recipient can be sure it was you that
// sent it
$data = <<<EOD
You have my authorization to spend $10,000 on dinner expenses.
The CEO
EOD;
// save message to file
var adBlockEnabled = false;
var testAd = document.createElement('div');
testAd.innerHTML = '&nbsp;';
testAd.className = 'adsbox';
document.body.appendChild(testAd);
window.setTimeout(function() {
if (testAd.offsetHeight === 0) {
adBlockEnabled = true;
}
testAd.remove();
@atmoner
atmoner / torrentgroup.php
Last active February 24, 2017 18:38
Torrent dumper for bittytorrent
<?php
//error_reporting(E_ERROR);
$path = dirname(__FILE__);
require_once $path.'/libs/startup.php';
require_once $path.'/libs/class.bdecode.php';
require_once $path.'/libs/class.bencode.php'; // To create info hash of torrent
/*
// Bitty categorie

How To Clone Scrypt Based Altcoins for Fun and Profit

Wait a second, why would you want to give out the secrets?!? Because its not a secret anymore and besides, why shouldn't everyone and their neighbors be able to create a plethora of these useless yet exciting math bits? The information in this article took me a few weeks to compile and what works for me is not guaranteed to work for you. Please use this guide as a starting point to learn a bit about C programming and compiling software.

WannaCry|WannaDecrypt0r NSA-Cyberweapon-Powered Ransomware Worm

  • Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
  • Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
  • Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
  • Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
  • Kill switch: If the website www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).

update: A minor variant of the viru

function Fuckxss($var) {
strip_tags($var);
$output = htmlspecialchars($var, ENT_QUOTES);
return $output;
}