This file contains 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
(function attack() { | |
const rows = document.querySelectorAll('.plugin-details-output table tbody tr'); | |
var ret = []; | |
rows.forEach(row => { | |
const port = "Port " + row.querySelector('.port span').innerText.match(/\d{1,7}/)[0]; | |
row.querySelectorAll('.hosts a').forEach(host => { | |
if (!ret[port]) | |
ret[port] = new Set([]); | |
ret[port].add(host.attributes['data-host-id'].nodeValue); | |
}); |
This file contains 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
require 'rubygems' | |
require 'openssl' | |
require 'base64' | |
encrypted_data = "SOMETHING/HERE" | |
def decrypt(encrypted_data) | |
padding = "=" * (4 - (encrypted_data.length % 4)) | |
epassword = "#{encrypted_data}#{padding}" | |
decoded = Base64.decode64(epassword) |
This file contains 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 sys | |
fp = open(sys.argv[1], 'r') | |
fo = open(sys.argv[1] + ".done", 'w') | |
while True: | |
line = fp.readline().strip() | |
if not line: |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am ypcrts on github. | |
* I am ypcrts (https://keybase.io/ypcrts) on keybase. | |
* I have a public key ASAoO1UCMSlKJl_2afLruX268uImNIKplH8eyFZmMGspkAo | |
To claim this, I am signing this object: |
This file contains 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
""" | |
@author ypcrts | |
@date 2018-05-01 | |
tested on win 10, python 3.6.4 | |
uses only python standard library | |
KeepassXC has parser some CSV parser bugs / difficulties | |
because it supports only a subset of the CSV format | |
spectrum. This script is an attempt to port 1Password |
NewerOlder