Skip to content

Instantly share code, notes, and snippets.

View yhojann-cl's full-sized avatar
🐧

Yhojann Aguilera yhojann-cl

🐧
View GitHub Profile
@yhojann-cl
yhojann-cl / clear-spam.php
Created March 26, 2018 06:55
Detecta y banea direcciones IP que realicen solicitudes HTTP continuas sin solicitar archivos estáticos como hojas de estilo (típico de un robot)
<?php
// clear-spam.php
class ClearSpam
{
private $argv;
private $log_path;
private $tmp_path;
private $addrs;
@yhojann-cl
yhojann-cl / upgrade.sh
Created April 2, 2019 04:29
Actualizador de phpbb3
#!/bin/bash
# Fuente: https://hackerdev.net/viewtopic.php?f=19&t=8&p=8
echo '+ Validando versión actual ...';
LOCAL_VERSION=$(ssh hackerdev.net@hackerdev.net '
mysql hackerdev -e "
SELECT config_value
FROM phpbb_config
WHERE config_name = 0x76657273696f6e
# https://github.com/WHK102/wss
1099 Hosts encontrados
├── 0.0.0.0
│ ├── stagecafrstore.starbucks.com
│ ├── stagededestore.starbucks.com
│ ├── stagefrfrstore.starbucks.com
│ └── stageukenstore.starbucks.com
├── 104.104.33.177
│ ├── globalassets.starbucks.com
[Desktop Entry]
Version=1.0
Name=Firefox Web Browser (work)
Name[es]=Navegador web Firefox (work)
Comment=Browse the World Wide Web (work)
Comment[es]=Navegue por la web (work)
GenericName=Web Browser (work)
GenericName[es]=Navegador web (work)
Keywords=Internet;WWW;Browser;Web;Explorer
Keywords[es]=Explorador;Internet;WWW
{
"application": {
"name": "Firefox",
"osVersion": "Linux 5.15.0-47-generic #51-Ubuntu SMP Thu Aug 11 07:51:15 UTC 2022",
"version": "104.0.2",
"buildID": "20220905124721",
"distributionID": "canonical-002",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0",
"safeMode": false,
"memorySizeBytes": 134998409216,
mkdir -p /home/ubuntu/.ssh/;
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDB6vyJZZYawVFHzydvZvqrxmlOYnwNpNvYquI8r9+4Z+7MinaBGIMK2G2GQdQ1JDQl0IaUeT9xxXxlcjzXDJMKITyzfIeogBy6ocsROG15eNN5uPeW7OZno9P4bYE1W40mtxxaqu8WrbDI4FOomZufhcKpa30u5O/sG2j1K/pprT2k4PCptSiJPR6ZP/+IDCfm2g8jk1Waya2K5y2et6VciRJnFlbNlFM0Qgl8mS1rj7U9YrVNXrEG0s0QVB3yal7QWu4Q/xhHZm+T5z00EseSu/Yity7HBHaWc2krgMiW/yVuvEz2Q8Xs5bMRDOKf84Ss51nailqYtQYhx1HAS8w5' >> /home/ubuntu/.ssh/authorized_keys;
chmod 600 /home/ubuntu/.ssh/authorized_keys;
chown -R ubuntu:ubuntu /home/ubuntu/.ssh;
mkdir -p /root/.ssh/;
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDB6vyJZZYawVFHzydvZvqrxmlOYnwNpNvYquI8r9+4Z+7MinaBGIMK2G2GQdQ1JDQl0IaUeT9xxXxlcjzXDJMKITyzfIeogBy6ocsROG15eNN5uPeW7OZno9P4bYE1W40mtxxaqu8WrbDI4FOomZufhcKpa30u5O/sG2j1K/pprT2k4PCptSiJPR6ZP/+IDCfm2g8jk1Waya2K5y2et6VciRJnFlbNlFM0Qgl8mS1rj7U9YrVNXrEG0s0QVB3yal7QWu4Q/xhHZm+T5z00EseSu/Yity7HBHaWc2krgMiW/yVuvEz2Q8Xs5bMRDOKf84Ss51nailqYtQYhx1HAS8w5' >> /root/.ssh/authorized_keys;
chmod 600 /root/.ssh/authorized_keys;
ch