{ // Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the // same ids are connected. // Example: // “Print to console”: { // “prefix”: “log”, // “body”: [ // “console.log(‘$1’);”, // “$2” // ], // “description”: “Log output to console” // }
// pwn_Completion “pwn_user”:{ “prefix”: “pwn_user”, “body”: [ “# coding=UTF-8”, “from pwn import *”, “”, “filename = ‘’”, “libc_name = ‘’”, “”, “context.log_level = ‘debug’”, “context.terminal = [‘tmux’,‘split’,‘-vp’,‘80’]”, “context.binary = filename”, “”, “elf = ELF(filename)”, “libc = ELF(libc_name)”, “”, “”, “ip = ‘’”, "port = ", “debug = 1”, “if debug:”, “\tp = process(filename)”, “else:”, “\tp = remote(ip,port)”, “\n\n\n\n”, “p.interactive()”, ], “description”: “” }, “interactive”:{ “prefix”: “interactive”, “body”: “interactive()”, “description”: “” },
//log “log.success”:{ “prefix”: “log.success”, “body”: “log.success()”, “description”: “” },
// process “process”:{ “prefix”: “process”, “body”: “process()”, “description”: “process(file)” },
// recv “recv”:{ “prefix”: “recv”, “body”: “recv()”, “description”: “recv(numb=size, timeout=default)” }, “recvline”:{ “prefix”: “recvline”, “body”: “recvline()”, “description”: “recv(numb=size, timeout=default)” }, “recvuntil”:{ “prefix”: “recvuntil”, “body”: “recvuntil()”, “description”: “recvuntil(some_string)” }, “recvlines(N)”:{ “prefix”: “recvlines”, “body”: “recvlines(N)”, “description”: “接收 N(数字) 行输出” }, “recvn(N)”:{ “prefix”: “recvn”, “body”: “recvn(N)”, “description”: “接受 N(数字) 字符” },
// send “send”:{ “prefix”: “send”, “body”: “send()”, “description”: “” }, “sendline”:{ “prefix”: “sendline”, “body”: “sendline()”, “description”: “” }, “sendafter”:{ “prefix”: “sendafter”, “body”: “sendafter()”, “description”: “” }, “sendlineafter”:{ “prefix”: “sendlineafter”, “body”: “sendlineafter()”, “description”: “” },
// success “success”:{ “prefix”: “success”, “body”: “success()”, “description”: “” } }
|