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 argparse | |
| from capstone import ( | |
| Cs, | |
| CS_ARCH_X86, | |
| CS_MODE_32, | |
| CS_OPT_SYNTAX_ATT, | |
| ) | |
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
| 题目是 pwnable.tw 上的一个, start[0] | |
| 使用 hexdump -Cv start 得到如下输出: | |
| 00000000 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 |.ELF............| | |
| 00000010 02 00 03 00 01 00 00 00 60 80 04 08 34 00 00 00 |........`...4...| | |
| 00000020 6c 01 00 00 00 00 00 00 34 00 20 00 01 00 28 00 |l.......4. ...(.| | |
| 00000030 05 00 02 00 01 00 00 00 00 00 00 00 00 80 04 08 |................| | |
| 00000040 00 80 04 08 a3 00 00 00 a3 00 00 00 05 00 00 00 |................| | |
| 00000050 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| |
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
| # TerransForce S4 - http://www.terransforce.com/?product_info/S4-1060-67T.html | |
| # Usage: | |
| # put this content to /etc/udev/hwdb.d/70-keyboard.hwdb, and then | |
| # > systemd-hwdb update | |
| # > udevadm trigger /dev/input/event5 | |
| # | |
| evdev:atkbd:dmi:bvn*:bvr*:bd*:svnTerransForce:pnTerransForceS4:pvr* | |
| KEYBOARD_KEY_e4=f21 # Touchpad | |
| KEYBOARD_KEY_f7=brightnessdown # Fn+F4 | |
| KEYBOARD_KEY_f8=brightnessup # Fn+F5 |
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
| diff --git a/gef.py b/gef.py | |
| index 13e26eb..2f189eb 100644 | |
| --- a/gef.py | |
| +++ b/gef.py | |
| @@ -1160,6 +1160,7 @@ def capstone_disassemble(location, nb_insn, **kwargs): | |
| capstone = sys.modules["capstone"] | |
| arch, mode = get_capstone_arch(arch=kwargs.get("arch", None), mode=kwargs.get("mode", None), endian=kwargs.get("endian", None)) | |
| cs = capstone.Cs(arch, mode) | |
| + cs.syntax = capstone.CS_OPT_SYNTAX_ATT | |
| cs.detail = True |
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
| LxHTSOcR7IewRyBMMEJMD0iT2oNhLZ-2P8JDLvHwfYKFDXQzvh~DcaDXrejRsxmzzhAuz47IY5f2JnXoGy~N-61GRm31PSqj5DfOd1RTtySzg19UHTV~AvtEBMDoJoUD-~TEzfrH35oRkKSSHPdTyj6nnfD44zGJqBL4ckDRcztkywWQ7LH9IFX0Xm4qPxPnXNxJGhfqQXJPyZKHGJYaWRE4cuSIvWF-a0TkAFiYd6rswsOOMRuHopHv-r4gu7olW8PNPfQWllZos5uyrtE7kMGaeT9Ua8LA0I12cB~nKsp-uBKhVBznHPTIlgdl2NsEBs1ibDaSwCvU8MChtRM-~gj7G3MSd86JxYXISzOJU1nOq1DbCMcFEUu6DybUhP2~gvSj3vEy8C5U6Wsu6YDr7WilmFUQZ2nLKvn29GoQ3gSh9FjZCzNsn2zXgahT-3JT8CXUkDASL~TQsvQSj1yHE3T4pSAzx9KzX133ELkPrMXUXXAsc5u1NmqNUMOla3l573EYrw4gJ-kat5wUJutE3YxMREHwnt954lXPYNU9W4qZZtkx4Y-I7aHMjrbju~vLzpa9O5iKHBYNOVOJWhyxSt9JzGw6Wr7~mkL8rFGXpZJfg7~8b19CTUi82W8wmqlzp5q3CzuhTMCHzjGU2k3NQ8gbWPDUNXwauXZQ2psHJdh-1-24lDuvH2bGltOgPVSLDY7JvyspE1xIHzJDlpQgRDHSJ4tEhTeNRu1BMIuIjH4vudX9o8qur9g8LOeV4rPLM0UXrhEnagngldYza03HERk1p7khJYGIAocU3dkETmjdeqPXhKa3wDOrhoeALQy8simNQ3GcSPqEuJ8Dbv2UtUVG4Ef8AATbbvU4LxdUpCn1IyT4DS1tYv1S4RXI3ZrXJIL89gPupkPncKsXKV0SQvaM7bmSJ0Bg4J8nlrGsuPa-BF4nRGjsQfqL5ZnoIw8bDR5H-jjzZqs61zahcXVVMM2OW-w~1Re~7HGxFDefZzFyks68KmM706YZN~N179Xt |
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
| #!/usr/bin/env sh | |
| node_activate() { | |
| local _DIRNAME=${PWD##*/} | |
| if ! grep -qi $_DIRNAME <<< $PS1; then | |
| _OLD_PS1=$PS1 | |
| export PS1="($_DIRNAME) $PS1" | |
| fi |
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
| use std::env; | |
| use std::io::{self, Write}; | |
| use std::path::Path; | |
| use std::process::{Command, Stdio, Child}; | |
| fn main() { | |
| loop { | |
| print!("> "); | |
| io::stdout().flush().unwrap(); |
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
| #!/bin/sh | |
| # vim: set nu rnu fdm=indent ts=2 sts=2 shiftwidth=2 sr nowrap : | |
| TODAY=$(date +%Y%m%d) | |
| echo "Running on $(sed -nE '/PRETTY_NAME/{s/PRETTY_NAME="([^"]+)"/\1/p}' /etc/os-release)..." | |
| cat <<EOF | |
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
| diff --git a/Lib/shutil.py b/Lib/shutil.py | |
| index 6cfe3738f6..9b3c007596 100644 | |
| --- a/Lib/shutil.py | |
| +++ b/Lib/shutil.py | |
| @@ -844,14 +844,29 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0, | |
| return archive_name | |
| -def _make_zipfile(base_name, base_dir, verbose=0, dry_run=0, logger=None): | |
| +def _make_zipfile(base_name, base_dir, compress="zlib", |
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
| diff --git a/app/config/yakuake.kcfg b/app/config/yakuake.kcfg | |
| index 1d19d21..392c632 100644 | |
| --- a/app/config/yakuake.kcfg | |
| +++ b/app/config/yakuake.kcfg | |
| @@ -85,6 +85,11 @@ | |
| </entry> | |
| </group> | |
| <group name="Appearance"> | |
| + <entry name="Blur" type="Bool"> | |
| + <label context="@label">Blur</label> |