Skip to content

Instantly share code, notes, and snippets.

pub fn QObject(comptime T: type) type {
const typeInfo: std.builtin.TypeInfo = @typeInfo(T);
const str: std.builtin.TypeInfo.Struct = typeInfo.Struct;
return struct {
const parentType = T;
const Self = @This();
const name: []const u8 = @typeName(T);
pub fn create() type {
template<class... Y, class X>
void (*y(X z, unsigned int b)) (Y...) {
for(char* a = reinterpret_cast<char*>(z); a < reinterpret_cast<char*>(z) + 256; a++) if((*reinterpret_cast<unsigned int*>(a) & 4294967295) == b) return reinterpret_cast<void(*)(Y...)>(a);
return {};
}
int main() {
y<int, const char*, int, void(*)()>(&main, 84922879)(1, "Hello World!\n", 13, y<>(&main, 3287845192));
}
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
unsigned __int128 a = 20;
int solve(__int128 TO, unsigned __int128 TIME, unsigned __int128 number, unsigned __int128 idd) {
for(__int128 t = -120; t < 120; t++) {
for(__int128 s1 = 0; s1 <256*16; s1++) {
for(__int128 s2 = 0; s2 < 256*16; s2++) {
version: 1
ndevices: 1
libinput:
version: "1.13.2"
git: "unknown"
system:
kernel: "5.1.4-artix1-1-ARTIX"
dmi: "dmi:bvnHUAWEI:bvr1.25:bd12/15/2018:svnHUAWEI:pnMACH-WX9:pvrW29:rvnHUAWEI:rnMACH-WX9:rvrW29:cvnHUAWEI:ct10:cvrW29:"
devices:
- node: /dev/input/event8
This file has been truncated, but you can view the full file.
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20190329 (64-bit version)
* Copyright (c) 2000 - 2019 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of dsdt.dat, Mon Apr 1 21:28:15 2019
*
* Original Table Header:
from pwn import *
host = '78.46.224.86'
port = 1337
context.os = 'linux'
context.arch = 'amd64'
p = remote(host, port)
#!/usr/bin/python
'''
~Gros&Vesim
'''
from pwn import *
import re
#context.log_level = 'debug'
section .data
error_msg db 'error while opening file', 10, 0 ;25 length
file dd 0x2 ;stdin
section .bss
buffer resb 64
section .text
global main
main:
from pwn import *
def syscall():
return p64(0x0000000000400560)
def set_rbx_rbp_r12_r13_r14_r15(rbx, rbp, r12, r13, r15):
return ''.join([
p64(0x00000000004005e6),
p64(0),
p64(rbx),
@vesim987
vesim987 / bind.hpp
Last active March 23, 2016 18:13
easy bind
#include <functional>
#include <utility>
#include "functor_traits.hpp"
namespace vtl {
template<int> struct placeholder{ };
}//vtl
namespace std {