Skip to content

Instantly share code, notes, and snippets.

@maximusfox
maximusfox / start.py
Last active March 6, 2023 09:28
Multi-thread urls scanner
#!/usr/bin/env python3
import argparse
import re
import queue
import requests
import threading
def get_args():
@maximusfox
maximusfox / proxyParser.rb
Last active May 12, 2020 19:48
Simple proxy parser
#!/usr/bin/env ruby
require 'httpclient'
class ProxyList
attr :url, :proxyList, :firstDownload
def initialize(url)
if url.nil?
return nil
require 'net/dns'
class ScannerAXFR
def initialize(target_list, threads = 5)
return nil if target_list.nil?
@target_list = target_list
return nil if threads <= 0
@threads = threads
@maximusfox
maximusfox / dos_PoC.pl
Last active May 12, 2020 21:47
Asus soho router DoS exploit PoC
#!/usr/bin/env perl
use strict;
use warnings;
use feature 'say';
use Data::Dumper;
use LWP::UserAgent;
unless (@ARGV > 0) {
__author__ = 'isox'
#
# https://radar.qrator.net
# IP networks extractor utility
# User AS number from https://radar.qrator.net/search?query=qiwi
# As example 5750
# MacBook-Pro:Misc isox$ python3.5 radarQrator.py 57570
#
# Output will be:
# 91.232.230.0/23
@maximusfox
maximusfox / GetThreadStack0.cs
Created March 23, 2017 15:45 — forked from baratgabor/GetThreadStack0.cs
32 bit ThreadStack0 implementation in C#
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
/// <summary>
/// Only for 32 bit processes. The methods of this static class can find the special symbol ThreadStack0,
/// and follow pointer chains to return the end result in the specified type T.
@maximusfox
maximusfox / diff.cs
Last active June 21, 2019 22:23
ImageMagick.NET calc different pixels count
using ImageMagick;
var image1Path = @"{-Project.Directory-}\ScreenStamps\1.bmp";
var image2Path = @"{-Project.Directory-}\ScreenStamps\2.bmp";
var diffImagePath = @"{-Project.Directory-}\imageDIFF.png";
using (ImageMagick.MagickImage image1 = new ImageMagick.MagickImage(image1Path))
using (ImageMagick.MagickImage image2 = new ImageMagick.MagickImage(image2Path))
{
@maximusfox
maximusfox / Web.pm
Last active May 12, 2020 23:02
Async sockets file downloading example in Perl (don't work on Windows)
# Just example about work with HTTP
package Web;
use strict;
use IO::Socket::INET;
use IO::Socket::SSL;
use Carp qw(croak);
use MIME::Base64 qw(encode_base64);
a = [1,2,3,4,5]
# 2 new arrays
left,right = a.each_slice( (a.size/2.0).round ).to_a
# left == [1, 2, 3]
# right == [4, 5]
# make array 2-dimensional
a.each_slice( (a.size/2.0).round ).to_a
# a == [[1, 2, 3], [4, 5]]
@maximusfox
maximusfox / animals.txt
Last active June 7, 2020 19:36 — forked from Bradleykingz/animals.txt
Alphabetized, removed all occurrences of 'list'
aardvark
aardwolf
albatross
alligator
alpaca
amphibian
anaconda
angelfish
anglerfish
ant