Skip to content

Instantly share code, notes, and snippets.

Marco Schuster msmuenchen

Block or report user

Report or block msmuenchen

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
@msmuenchen
msmuenchen / svnadmin-upgrade-all.php
Created Nov 18, 2015
Mass upgrade of svn repositories
View svnadmin-upgrade-all.php
<?php
//This script updates all repositories in a huge root directory to current svnformat
//Generate said file with find . -maxdepth 1 -type d > list
$repos=file("list");
foreach($repos as $repo) {
$repo=trim($repo);
exec("svnadmin upgrade $repo",$out,$rc);
if($rc!=0)
echo "$repo failed\n";
else
View gist:c3fb276f264058b8d51e
<?php
$config=array(
"tag"=>"15811375356",
"imei"=>"666", //server does not seem to check this
"sim"=>"666",
"operator"=>"666",
"login_url"=>"http://xxx/fota/download/login.php",
"check_url"=>"http://xxx/fota/download/checkversion.php",
"down_url"=>"http://xxx/fota/download/download.php",
"curversion"=>'xxx', //get this using fiddler or any http sniffer
View encode.php
<?php
date_default_timezone_set("Europe/Berlin");
require("libmifare.php");
$ctx=scard_establish_context();
echo "Established context:\n";
var_dump($ctx);
$readers=scard_list_readers($ctx);
if(sizeof($readers)==0)
@msmuenchen
msmuenchen / gist:9318327
Last active Oct 3, 2019
KeePass v2.x (KDBX v3.x) file format
View gist:9318327
Convention: Byte array notation as it would appear in a hexeditor.
= Layout=
KDBX files, the keepass database files, are layout as follows:
1) Bytes 0-3: Primary identifier, common across all kdbx versions:
private static $sigByte1=[0x03,0xD9,0xA2,0x9A];
2) Bytes 4-7: Secondary identifier. Byte 4 can be used to identify the file version (0x67 is latest, 0x66 is the KeePass 2 pre-release format and 0x55 is KeePass 1)
@msmuenchen
msmuenchen / kdg-bot.php
Last active Dec 14, 2016
Automatic login bot for Kabel Deutschland 30-Min Free Wifi Hotspot
View kdg-bot.php
<?php
/*
Kabel Deutschland 30-Min Free Wifi Hotspot Auto-Login bot for Linux and Windows
According to the ToC, there is nothing which forbids the usage of this tool, but you have to accept and act by them.
See https://www.hotspot.kabeldeutschland.de/portal/nutzungsbedingungen.html?profile=2 for details.
Windows Install:
1) Install PHP
1.1) Grab and unpack http://windows.php.net/downloads/releases/php-5.5.3-nts-Win32-VC11-x86.zip
You can’t perform that action at this time.