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 socket | |
import hashlib | |
import struct | |
import time | |
class IdUid: | |
def __init__(self): |
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 time | |
from http.client import HTTPConnection | |
from msgpack import packb, unpackb | |
import json | |
client = HTTPConnection("192.168.96.4", 55553) | |
client.request('POST', '/api/', packb(['auth.login', 'msf', '1234']), {'Content-Type': 'binary/message-pack'}) | |
res = unpackb(client.getresponse().read()) |
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 python | |
import sys | |
import json | |
import subprocess | |
import time | |
def ws_info(): | |
return json.loads(subprocess.check_output("i3-msg -t get_workspaces".split())) |
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
[ | |
{ | |
"backcolor": "#ffffff" | |
}, | |
[ | |
{ | |
"y": 1.5, | |
"c": "#a2a8b8", | |
"a": 6, | |
"f": 4 |