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
diff -ur firmware/Makefile firmware-new/Makefile | |
--- firmware/Makefile 2011-05-28 15:57:49 +0800 | |
+++ firmware-new/Makefile 2017-07-16 01:12:03 +0800 | |
@@ -7,7 +7,7 @@ | |
# TARGET=atmega8 HFUSE=0xc9 LFUSE=0xef | |
# TARGET=atmega48 HFUSE=0xdd LFUSE=0xff | |
# TARGET=at90s2313 | |
-TARGET=atmega8 | |
+TARGET=atmega88 | |
HFUSE=0xc9 |
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
# | |
# Makefile for an ATtiny10 project | |
# | |
CC=avr-gcc | |
OBJCOPY=avr-objcopy | |
OBJDUMP=avr-objdump | |
#F_CPU := 8000000 | |
MCU := attiny10 |
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
// | |
// solver script for flare-on #5 pewpewboat.exe | |
// run with frida -l pew.js -f pewpewboat.exe --no-pause -o pew.log | |
// | |
var mainProgLoop = ptr(0x403c05); | |
var getInput = ptr(0x40377D); | |
var clearScreen = ptr(0x4031E1); | |
var notMd5Prompt = ptr(0x403530); |
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
########### | |
#> # | |
# # ##### # | |
# # # # | |
# # #X### # | |
# # # # # # | |
# ### # # # | |
# # # # | |
# # ### ### | |
# # # |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>drag & drop</title> | |
<style> | |
html, body { | |
margin: 0; | |
padding: 0; |
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
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$True,Position=1)] | |
[string] $Path | |
) | |
# Usually the profile owner has full control, but is not a well-known SID | |
# References: | |
# https://support.microsoft.com/en-us/help/243330/well-known-security-identifiers-in-windows-operating-systems | |
# https://technet.microsoft.com/en-us/library/ff730940.aspx |
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
# moves up file data at current pos to specified to_offset | |
def moveup(f, to_offset, block_size=4096): | |
assert f.tell() > to_offset | |
while True: | |
data = f.read(block_size) | |
newpos = f.tell() | |
f.seek(to_offset) | |
to_offset += len(data) |
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
# to verify, use `route print` and check the order in which the interfaces are listed | |
Get-NetAdapter | Where-Object {$_.InterfaceDescription -like '*USB*'} | Set-NetIPInterface -InterfaceMetric 9999 |
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
document.querySelector('.SUMMARY').childNodes.forEach(function(e) { | |
if (e.nodeType == Node.TEXT_NODE && (e.textContent.match(/[+|-]/g) || []).length > 2) { | |
var n = document.createElement('code'); | |
n.textContent = e.textContent.replace(/^[\r\n]*(.*)[\r\n]*$/, '$1'); | |
n.style = 'white-space:pre-wrap'; | |
e.parentNode.replaceChild(n, e); | |
} | |
}); |
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
part uuid ${devtype} ${devnum}:${bootpart} uuid | |
setenv bootargs console=${console} root=PARTUUID=${uuid} rw rootwait | |
if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/zImage; then | |
if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}; then | |
fdt addr ${fdt_addr_r} | |
fdt resize | |
setexpr fdtovaddr ${fdt_addr_r} + F000 | |