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 gi | |
| gi.require_version('Secret', '1') | |
| from gi.repository import Secret | |
| for item in Secret.password_search_sync(None, {}, Secret.SearchFlags.ALL, None): | |
| print(f'attributes {item.get_attributes()}') | |
| print(f'label {item.get_label()}') | |
| print(f'secret {item.retrieve_secret_sync().get()}') |
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/python | |
| import socket | |
| import uuid | |
| import struct | |
| import io | |
| import sys | |
| def unpack(stream, fmt): |
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 chunk_bytes(value, bit_length): | |
| """ | |
| Chunk value into bytes of bit_length | |
| """ | |
| for _ in range(0, value.bit_length(), bit_length): | |
| yield value & ((1 << bit_length) - 1) | |
| value >>= bit_length | |
| def one_is_more_encode(value): |
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
| """ | |
| Script to use Wooting Gamepad as Mouse | |
| """ | |
| import asyncio | |
| import collections | |
| import signal | |
| import sys | |
| import evdev | |
| import pyudev |
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/bash | |
| if [ -n "$2" ] ; then | |
| ausearch -m avc -ts $2|audit2allow -m $1 > $1.tt.tmp | |
| diff -ud $1.tt $1.tt.tmp | |
| read | |
| mv -f $1.tt.tmp $1.tt | |
| fi | |
| checkmodule -M -m $1.tt -o $1.mod | |
| semodule_package -o $1.pp -m $1.mod | |
| semodule -i $1.pp |
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
| # MOVED TO: https://github.com/meeuw/injectinput | |
| #!/usr/bin/python3 | |
| import evdev | |
| import sys | |
| upper = { '!': '1', '@': '2', '#': '3', '$': '4', '%': '5', '^': '6', '&': '7', '*': '8', '(': '9', ')': '0' } | |
| with evdev.UInput() as ui: | |
| escape = False |
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 hashlib | |
| import paramiko | |
| a = paramiko.agent.Agent() | |
| for key in a.get_keys(): | |
| print(key.sign_ssh_data(hashlib.sha1(b'something to sign').digest())) |
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
| ls "$1/"*|sed "s%^%file $PWD/%" > /tmp/dmlist | |
| ffmpeg -f concat -protocol_whitelist file,pipe -safe 0 -i /tmp/dmlist -c copy "$1.mp4" |
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
| ffmpeg -i "$1" -acodec copy -f segment -vcodec copy -reset_timestamps 1 -map 0 OUTPUT%04d.mp4 |
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
| <?xml version='1.0'?> | |
| <!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd"> | |
| <signatures version='1.0'> | |
| <opaque name='IONotificationPortRef' type64='^{IONotificationPort=}'/> | |
| <constant name='kIOMasterPortDefault' type64='I'/> | |
| <string_constant name='kIOFirstPublishNotification' value='IOServiceFirstPublish'/> | |
| <string_constant name='kIOPublishNotification' value='IOServicePublish'/> | |
| <string_constant name='kIOMatchedNotification' value='IOServiceMatched'/> | |
| <string_constant name='kIOFirstMatchNotification' value='IOServiceFirstMatch'/> | |
| <string_constant name='kIOTerminatedNotification' value='IOServiceTerminate'/> |
NewerOlder