Skip to content

Instantly share code, notes, and snippets.

View Bo0oM's full-sized avatar
💣
3, 2, 1...

Anton Lopanitsyn Bo0oM

💣
3, 2, 1...
View GitHub Profile
This file has been truncated, but you can view the full file.
rss.php
coupon_activation.php
tools/bizproc_wf_settings.php
tools/seo_yandex.php
tools/seo_google.php
tools/get_catalog_menu.php
tools/sale_farm_check_print.php
tools/vote/uf.php
tools/vote/vote_chart.php
tools/sale/discount_coupon_list.php
@Bo0oM
Bo0oM / memcached-dumper.php
Created June 27, 2022 07:57
Memcached dumper
#!/usr/bin/env php
<?php
if (! isset($argv[1])) {
echo 'Usage: memcached-dumper.php <server>'.PHP_EOL;
exit;
}
@Bo0oM
Bo0oM / CryptoJS_AES_decrypt.php
Created August 18, 2020 13:23
CryptoJS AES decrypt on PHP
<?php
/**
* author: alexeyprudnikov
**/
class JsAes {
public static function Decrypt($base64string, $secretkey) {
$base64string = str_replace('_', '+', $base64string);
$data = base64_decode($base64string);
@Bo0oM
Bo0oM / p0f-mtu-client.php
Created July 17, 2020 12:47
p0f-mtu client
<?php
/*
a – string which is NUL-padded
A – string which is SPACE-padded
h – low nibble first Hex string
H – high nibble first Hex string
c – signed character
C – unsigned character
s – signed short (16 bit, machine byte order)
@Bo0oM
Bo0oM / laravel_session.php
Created May 15, 2020 08:01
Laravel Encryptor
<?php
class LaravelEncryptor {
private $key;
private $cipher;
public function __construct($key = 'ABCDEF1234567890ABCDEF1234567890', $cipher = 'AES-256-CBC') {
$this->key = substr($key, 0, 7) == 'base64:' ? base64_decode(substr($key, 7)) : $key;
$this->cipher = $cipher;
}
@Bo0oM
Bo0oM / nmap.sh
Last active October 3, 2023 19:40
Three steps for nmap
echo -n "Target list (google.com, 192.168.1.1/24): "
read IP
echo "Treat all hosts as online -- skip host discovery (Y/N)?"
read answer
PN=""
if [ "$answer" != "${answer#[Yy]}" ] ; then
PN="-Pn";
fi