Skip to content

Instantly share code, notes, and snippets.

View reuniware's full-sized avatar
🎯
Focusing

Quant & Fintech Opensource Projects reuniware

🎯
Focusing
View GitHub Profile
@reuniware
reuniware / start_bettercap_webui.sh
Created November 15, 2019 12:59
How to start bettercap web interface (and enable ip forwarding and start firefox).
echo "1" > /proc/sys/net/ipv4/ip_forward
sudo bettercap -caplet http-ui &
firefox http://127.0.0.1
@reuniware
reuniware / netfiltertest01.py
Last active October 12, 2024 04:42
Python + Netfilterqueue + Scapy (trying to intercept HTTP traffic from Kali Linux)
# apt-get install build-essential python-dev libnetfilter-queue-dev
# pip install NetfilterQueue
# sudo apt-get install python-netfilterqueue
# iptables -F
# iptables -F -t nat
# iptables -I FORWARD -j NFQUEUE --queue-num 0
# arpspoof -i eth0 192.168.1.200 -t 192.168.1.1
# arpspoof -i eth0 192.168.1.1 -t 192.168.1.200
from netfilterqueue import NetfilterQueue
@reuniware
reuniware / netfiltertest02.py
Last active November 29, 2019 10:19
Python + Netfilterqueue + Scapy + logging time and IP and TCP traffic
# apt-get install build-essential python-dev libnetfilter-queue-dev
# pip install NetfilterQueue
# sudo apt-get install python-netfilterqueue
# iptables -F
# iptables -F -t nat
# iptables -I FORWARD -j NFQUEUE --queue-num 0
# arpspoof -i eth0 192.168.1.200 -t 192.168.1.1
# arpspoof -i eth0 192.168.1.1 -t 192.168.1.200
from netfilterqueue import NetfilterQueue
@reuniware
reuniware / netfiltertest03.py
Created November 29, 2019 10:33
Log UDP and TCP requests (Python/NetfilterQueue/Scapy)
# apt-get install build-essential python-dev libnetfilter-queue-dev
# pip install NetfilterQueue
# sudo apt-get install python-netfilterqueue
# iptables -F
# iptables -F -t nat
# iptables -I FORWARD -j NFQUEUE --queue-num 0
# arpspoof -i eth0 192.168.1.200 -t 192.168.1.1
# arpspoof -i eth0 192.168.1.1 -t 192.168.1.200
from netfilterqueue import NetfilterQueue
@reuniware
reuniware / MainActivity.kt
Created December 10, 2019 10:26
(Android/Kotlin) Record Audio from MIC to .3GP file (that can be read with VLC).
// https://ntic974.blogspot.com
package com.reuniware.poneyvid
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.media.MediaRecorder
import android.media.projection.MediaProjection
@reuniware
reuniware / index.php
Last active December 18, 2019 09:31
PHP : Get Rss Feed from multiple sources (rss links in rsslinks.txt file) and show them on one file
<?php
if (isset($_GET['feedid'])){
}
$filename = "rssfeeds.txt";
//$lines = file($filename, FILE_IGNORE_NEW_LINES);
$arr = file("rsslinks.txt", FILE_IGNORE_NEW_LINES);
@reuniware
reuniware / pdfwriter.kt
Created January 10, 2020 13:53
(Android/Kotlin) Write unlimited number of lines to PDF (A4).
fun createAndWritePdf() {
initPdfDocument()
writeToPdfDocument("One line...")
writeToPdfDocument("Another line...")
closePdfDocument()
savePdfDocument()
}
lateinit var document : PdfDocument
@reuniware
reuniware / intercepted_malware.htm
Created January 28, 2020 15:04
Intercepted malware while browsing on internet...
<!DOCTYPE html>
<html lang="en-en">
<head>
<meta charset="utf-8">
<meta content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
<title>SECURITY WARNING</title>
<link href="./images/favicon.ico" rel="shortcut icon">
@reuniware
reuniware / MainActivity.kt
Last active February 12, 2020 15:39
Android + Kotlin + YouTube API : Get playlist basic code
// Largely inspired by sourcecode at : https://github.com/akoscz/YouTubePlaylist/blob/master/app/src/main/java/com/akoscz/youtube/GetPlaylistAsyncTask.java
package com.reuniware.humoristesfr
import android.os.Bundle
import android.os.StrictMode
import android.text.TextUtils
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.google.api.client.extensions.android.http.AndroidHttp
@reuniware
reuniware / print_web_config.cs
Created February 18, 2020 15:24
Show current Web.config settings programmatically in C#
var configuration = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~");
foreach (string str in configuration.AppSettings.Settings.AllKeys)
{
var value = configuration.AppSettings.Settings[str].Value;
_logger.LogError(str + " => " + value);
}