Skip to content

Instantly share code, notes, and snippets.

View taidos's full-sized avatar
🎯
Focusing

Carlos Faustino taidos

🎯
Focusing
View GitHub Profile
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit win10-gaming
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>win10-gaming</name>
<uuid>b562f5ca-4792-4d2d-99be-ece9905ff714</uuid>
@taidos
taidos / dev_script_simple_web_app_firewall.php
Created April 21, 2022 18:20 — forked from dhaupin/dev_script_simple_web_app_firewall.php
Function - WAF - Look for common injection, traversal, or escalation hits, then init an action
<?php
// @@TODO@@ classify this as a pub pre-controller
// @@TODO@@ semicolin var, might help edge \xYZ style hexors -- might affect speed though
// @@TOTO@@ make vars to turn on blocking of common WP and enterprise requests
// @@TODO@@ make modes to check in user agent, referrer, post, headers
// @@TODO@@ mode for strict validation of IP in addr + forwarder style headers
// @@TODO@@ testing mode (still allows traffic)
// @@TODO@@ log wrapper and modes
@taidos
taidos / Socks5ProxyCheck.php
Created April 21, 2022 18:18 — forked from s4l1h/Socks5ProxyCheck.php
Socks5 Proxy Checker: php ve curl ile ip:port şeklindeki listeden çalışan sock5 proxy adreslerini bulur.
<?php
error_reporting(E_ALL);
ini_set('max_execution_time',0);
# http://www.vipsocks24.com/
$list="107.10.35.178:42427
108.20.152.202:1415
110.142.196.145:43134
115.118.195.23:1080
115.252.100.245:1080
115.252.143.165:1080
@taidos
taidos / detect_cars_in_video.ipynb
Created April 20, 2022 15:42 — forked from x13-caesar/detect_cars_in_video.ipynb
parking_spots_hunter.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taidos
taidos / LogMeIn.php
Created April 19, 2022 11:10 — forked from kmark/LogMeIn.php
PHP implementation of cPanel's Perl LogMeIn class.
<?php
namespace cPanel;
/**************************************************************************************
* Copyright (c) 2013, cPanel, Inc. *
* All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without modification, *
* are permitted provided that the following conditions are met: *
* *
@taidos
taidos / README.md
Created February 25, 2022 15:54 — forked from mrl22/README.md
Server Backup - Files and MySQL to SSH Server using Rsync with Hardlink support to save space

Server Backup

Files and MySQL to SSH Server using Rsync with Hardlink support to save space.

This script will keep a daily, weekly and monthly rsync hardlinked backup of files. It will also create a gzipped MySQL dump of the last 6 days, a weekly backup for 3 weeks and a monthly backup for 12 months.

You must have already have public key access to the remote user.

Run the following:

# Source:
# https://www.cloudflare.com/ips
# https://quic.cloud/docs/cdn/adding-quic-cloud-ips-to-allowlist/
# CloudFlare
for i in `curl https://www.cloudflare.com/ips-v4`; do iptables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
for i in `curl https://www.cloudflare.com/ips-v6`; do ip6tables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
# QUIC.cloud
for i in `curl https://quic.cloud/ips?ln`; do iptables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
@taidos
taidos / searchanddestroy.sh
Last active February 1, 2022 19:54 — forked from jasperf/searchanddestroy.sh
Hacked Search and Desctroy Bash commands #security #unix
#Search for eval(base64_decode)
#https://www.itoctopus.com/a-couple-of-shell-commands-to-find-hacked-php-files-on-a-joomla-website
#https://iamsto.wordpress.com/2018/10/30/hacked-find-evil-code-in-php-files-find-stealrat-find-hacked-php-files/
find . -name \*.php -exec grep -l "eval(base64_decode" {} \;
find . -print | xargs -d'\n' grep -r 'die(PHP_OS.chr(49).chr(48).chr(43).md5(0987654321'
find . -type f -name '*.php' -print | xargs grep -i x29
find . -type f -name '*.php' -print | xargs grep -E '[0-9a-zA-Z/]{80}'
grep -r --include=*.php -e '[[:alnum:]]\{63,\}'
grep -r --include=*.php -e '[[:alnum:]\/\+]\{137,\}'
@taidos
taidos / lfd.php
Created January 7, 2022 08:51 — forked from niraj-shah/lfd.php
#!/usr/local/bin/php
<?php
// get command line arguments
$args = $argv;
// AbuseIPDB API Key
$api_key = 'xxx';
// your AbuseIPDB User ID