Skip to content

Instantly share code, notes, and snippets.

@thiagopilz
thiagopilz / scale.sh
Created October 28, 2022 02:19 — forked from ernstki/scale.sh
Detect the last screenshot on the desktop according to a pattern; scale with ImageMagick
#!/usr/bin/env bash
##
## scale the last screenshot on the desktop with ImageMagick
##
## Author: Kevin Ernst (ernstki -at- mail.uc.edu)
## Date: 25 October 2020
## Source: https://gist.github.com/ernstki/8776b3325f0a7abcc0d6080b2160a15c
## License: MIT (https://choosealicense.com/licenses/mit)
##
## Installation:
@thiagopilz
thiagopilz / plink.cmd
Created October 28, 2022 02:17 — forked from ernstki/plink.cmd
A simple batch wrapper around PuTTY's PLINK.EXE to fix EGit/Pageant integration on Windows for non-standard SSH port numbers
#Security log
#============
####
#4624 - Logon & Logoff events successful
#4625 - Logon unsucceful
####
# Get usernames
Get-WinEvent -path .\Security.evtx | Where {$_.id -eq "4624"} | Foreach {([xml]$_.ToXml()).GetElementsByTagName("Data").ItemOf(5)}| Select -ExpandProperty "#text" -Unique
# Get domains
@thiagopilz
thiagopilz / connect.ps1
Created August 13, 2022 05:25 — forked from jdforsythe/connect.ps1
Remote Desktop Auto Login Powershell Script
cmdkey /list | ForEach-Object{if($_ -like "*target=TERMSRV/*"){cmdkey /del:($_ -replace " ","" -replace "Target:","")}}
echo "Connecting to 192.168.1.100"
$Server="192.168.1.100"
$User="Administrator"
$Password="AdminPassword"
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password
mstsc /v:$Server
#!/usr/bin/perl
# Report.pl
# This script scans for backups in the specified directories (@DIRINDEX)
# and generates log files for each cobian backup set detected in each
# of these directories. These log files are generated by the list command
# in 7z. Optionally password protected archives can be opened by
# specifying the password after the option -p (e.g. ./report.pl -p password).
#USER CONFIGURBLE PARAMETERS
@thiagopilz
thiagopilz / shadowbrokers-processes.csv
Created August 13, 2022 03:48 — forked from Te-k/shadowbrokers-processes.csv
ShadowBrokers list of processes
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
000stthk.exe|Toshiba Hotkey Configuration|NONE
007ssinstall.exe|007 Spy Software|NONE
00thotkey.exe|Toshiba Keyboard Helper|NONE
123downloadsuk[1].exe|123Mania Hijacker|NONE
12popup.exe|12Ghosts Popup-Killer|NONE
153.exe|??? Dialer.W32.153 ???|MALICIOUS_SOFTWARE
180sainstalleradperform.exe|180Solutions Zango|NONE
180sainstallernusac.exe|180SearchAssistant|NONE
1xconfig.exe|SCM MicroSystems Helper|NONE
2portalmon.exe|2wSysTray|NONE
@thiagopilz
thiagopilz / rsync.md
Created August 13, 2022 03:14 — forked from erikgall/rsync.md
Sync a local folder with a remote folder over SSH using rsync

The command -- rsync

rsync

rsync **source/** **destination
@thiagopilz
thiagopilz / linux_grub1.md
Created August 13, 2022 02:49 — forked from renatoapcosta/linux_grub1.md
Grub 1 ( Legacy ) - Linux

Grub 1 - Linux

O grub 1 conhecido como grub legacy, já não é utilizado por nenhuma distribuição.

Grand Unified Boot Loader

Agenda

Boot Grub Legacy

Linux Resumo

cd - cd ~ cd

ls -ltr ordena do mais velho para o mais novo

echo -n "Linux linux" não quebra linha

echo -e ... pode usar opções de tabulação \t \n

@thiagopilz
thiagopilz / linux_variaveis_ambiente.md
Created August 13, 2022 02:47 — forked from renatoapcosta/linux_variaveis_ambiente.md
Linux - Variaveis de Ambiente

Variaveis de Ambiente

Variaveis no Shell

env | less ver as variavel que foi exportada

set | less verifica as variaveis exportadas e as locais

echo $HOME