Skip to content

Instantly share code, notes, and snippets.

@ypcrts
ypcrts / nessus_attacker.js
Last active October 7, 2019 19:35
nessus output miner
(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);
});
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)
#!/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:
### 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:
@ypcrts
ypcrts / 1password_to_keepass_compatible_csv.py
Created May 8, 2018 17:37
1Password CSV transform to KeepassXC compatible CSV (2018)
"""
@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