System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
/* Read this comment first: https://gist.github.com/tonious/1377667#gistcomment-2277101 | |
* 2017-12-05 | |
* | |
* -- T. | |
*/ | |
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */ | |
#include <stdlib.h> | |
#include <stdio.h> |
System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <linux/input.h> | |
#include <linux/uinput.h> | |
#define die(str, args...) do { \ |
#!/bin/sh | |
synclient TouchpadOff=$((`synclient -l | grep TouchpadOff | awk '{print $3}'`==0)) |
import java.io.IOException; | |
import java.net.URLClassLoader; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.nio.file.Path; | |
/** | |
* Example demonstrating a ClassLoader leak. | |
* | |
* <p>To see it in action, copy this file to a temp directory somewhere, |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <linux/input.h> | |
#include <linux/uinput.h> | |
#include <stdio.h> | |
#include <sys/time.h> |
[{"country":"Afghanistan","code":"93","iso":"AF"}, | |
{"country":"Albania","code":"355","iso":"AL"}, | |
{"country":"Algeria","code":"213","iso":"DZ"}, | |
{"country":"American Samoa","code":"1-684","iso":"AS"}, | |
{"country":"Andorra","code":"376","iso":"AD"}, | |
{"country":"Angola","code":"244","iso":"AO"}, | |
{"country":"Anguilla","code":"1-264","iso":"AI"}, | |
{"country":"Antarctica","code":"672","iso":"AQ"}, | |
{"country":"Antigua and Barbuda","code":"1-268","iso":"AG"}, | |
{"country":"Argentina","code":"54","iso":"AR"}, |
www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com
is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).update: A minor variant of the viru