Skip to content

Instantly share code, notes, and snippets.

<?php
if(isset($_POST['novar']))
{
$hash=$_POST['hache'];
$hash = trim($hash);
$hash = stripslashes($hash);
$hash = htmlspecialchars($hash);
}
if(isset($_POST['avar']))
{
@Albirew
Albirew / anti-disabled.user.js
Last active August 1, 2019 14:16
Remove fuckin password and button limitation on websites
// ==UserScript==
// @name anti-disabled
// @description Remove fuckin password and button limitation on websites
// @version 1.2
// @author sysadmin_fr | https://discord.gg/ejJ4dsg
// @namespace https://gist.github.com/Albirew/
// @grant none
// @include http://*
// @include https://*
// @run-at document-start
@Albirew
Albirew / dcs-5020l-camera-control.php
Created April 4, 2019 14:37
Simple D-Link DCS-5020L camera web control
<?php
$camIP="172.16.3.14";
$camUser="admin";
$camPass="";
?>
<!DOCTYPE html>
<html>
<head>
<title>D-Link DCS-5020L cam control for <?php echo($camIP); ?></title>
<meta charset="UTF-8">
@Albirew
Albirew / windows-1252.sh
Created February 18, 2019 17:59
rename files with shitty windows-1252 characters into normal format
#!/bin/bash
find -name *é* -exec rename 's/é/é/g' '{}' \;
find -name *è* -exec rename 's/è/è/g' '{}' \;
find -name *ç* -exec rename 's/ç/ç/g' '{}' \;
find -name *à* -exec rename 's/à/à/g' '{}' \;
find -name *ù* -exec rename 's/ù/ù/g' '{}' \;
find -name *ø* -exec rename 's/ø/ø/g' '{}' \;
find -name *â* -exec rename 's/â/â/g' '{}' \;
find -name *ë* -exec rename 's/ë/ë/g' '{}' \;
find -name *ÿ* -exec rename 's/ÿ/ÿ/g' '{}' \;
@Albirew
Albirew / capture-error-winload.bat
Created May 24, 2018 15:35
2012r2 bypass error 0xc000000f (failed to start winload.*)
@echo off
:: script to use when capture image capture shows error 0xc000000f (failed to start winload.*) under 2012r2
:: https://gist.github.com/Albirew/ff86c4871b252acf6d7b5c298283859c
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Bypass error 0xc000000f on capture.wim (failed to start winload.*) º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍŒ
echo.
if [%1]==[] goto noarg
:: UAC privilege escalation
:checkPrivileges
@Albirew
Albirew / pocketmine.sh
Last active March 4, 2018 21:35
PocketMine (Minecraft Pocket Edition) server init start script using SCREEN
#!/bin/bash
# /etc/init.d/pocketmine
### BEGIN INIT INFO
# Provides: pocketmine
# Required-Start: $local_fs $network $remote_fs screen-cleanup
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: PocketMine server

Keybase proof

I hereby claim:

  • I am albirew on github.
  • I am albirew (https://keybase.io/albirew) on keybase.
  • I have a public key ASDoFxRYVR261WeLMAzUfRxGSRdoDnPYfC_ShEQeu_plxwo

To claim this, I am signing this object:

@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 June 8, 2017 19:36
rename file in .htaccess in widows (cuz microsoft is a dick that don't allow filename starting with a dot)
@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 / remove_GWX.bat
Last active March 14, 2017 23:50
Remove shitty Windows 10 upgrade notification from your W7-W8.1 computer
@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