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
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MintableToken is Ownable, ERC20 {
constructor() ERC20("MJNA Token", "MJNA") { }
function mint(address account, uint256 amount) public onlyOwner {
_mint(account, amount);
}
@reuniware
reuniware / SqlServerInsert.wd
Created March 12, 2021 13:50
Windev 26, C#, SQL Server Insert
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
public static bool InsertCSharp(String sql)
@reuniware
reuniware / gist:a954f07e2a5066d59a9fb4fa16592f4e
Created January 29, 2021 15:15
Native C android app compilation
c:\TEMP>C:\Users\USER001\AppData\Local\Android\Sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\armv7a-linux-androideabi30-clang test.c
C:\Users\USER001\AppData\Local\Android\Sdk\platform-tools>adb push c:\temp\a.out /data/local/tmp
c:\temp\a.out: 1 file pushed, 0 skipped. 0.8 MB/s (4208 bytes in 0.005s)
C:\Users\USER001\AppData\Local\Android\Sdk\platform-tools>adb shell chmod 777 /data/local/tmp/a.out
C:\Users\USER001\AppData\Local\Android\Sdk\platform-tools>adb shell /data/local/tmp/a.out
WARNING: linker: /data/local/tmp/a.out: unsupported flags DT_FLAGS_1=0x8000001
hello world!
@reuniware
reuniware / windev_date_ex.txt
Last active December 16, 2020 14:04
Windev Date Source Example
EEnumPériode est une Enumération
Aucune = 0
Aujourdhui = 1
JourPrécédent = 2
SemaineEnCours = 3
SemaineFlottante = 4
SemainePrécédente = 5
MoisEnCours = 6
MoisFlottant = 7
MoisPrécédent = 8
@reuniware
reuniware / torpython.py
Last active November 26, 2020 09:06
Python + Tor on Windows (IP rotation + Chrome browsing)
# Add C:\...\Tor Browser\Browser\TorBrowser\Tor to the current user's environment variables (Windows 10)
# Replace PATH_TO_CHROMEDRIVER by the one on your computer (you must download ChromeDriver)
from torrequest import TorRequest
from selenium import webdriver
import time
import requests
if __name__ == '__main__':
print('Python + TOR')
@reuniware
reuniware / metasploit.sh
Created October 21, 2020 15:50
Metasploit Memo Using DB
proxychains masscan -p3389 xxx.yyy.zzz.0/24 -oX masscan.xml
Puis dans msfconsole :
systemctl start postgresql
db_connect -y /usr/share/metasploit-framework/config/database.yml
db_import masscan.xml
use auxiliary/scanner/rdp/cve_2019_0708_bluekeep
services -p 3389 -R
exploit
@reuniware
reuniware / createsqlitedb.wl
Created October 20, 2020 08:43
Windev Mobile SQLite/Fonctions WLangague Tentative (KO)...
SI fFichierExiste(fRepExe() + "\databases\BDD.db") ALORS
//Info("fichier existe")
FIN
BDD est une Connexion
BDD..Provider = hAccèsNatifSQLite
BDD..Source = "BDD.db"
BDD..Accès = hOLectureEcriture
SI HOuvreConnexion(BDD) = Faux ALORS
@reuniware
reuniware / sqlitetest.java
Last active October 20, 2020 08:49
Windev Mobile 25 : SQLite procédures Java
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.Cursor;
public static void AjouteArticle(String codeArticle, double quantite)
{
//Context context = getActiviteEnCours();
SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase("superdb", null);
db.execSQL("CREATE TABLE IF NOT EXISTS article(code TEXT, quantite REAL);");
@reuniware
reuniware / sqlitetest
Created October 9, 2020 13:25
Windev Mobile 25 : Création table SQLite
gbFichierExiste est un booleen = faux
SI fFichierExiste(fRepExe() + "\databases\scanned.db") ALORS
gbFichierExiste = vrai
Info("fichier existe")
FIN
ScannedDb est une Connexion
ScannedDb..Provider = hAccèsNatifSQLite
ScannedDb..Source = "scanned.db"
ScannedDb..Accès = hOLectureEcriture
@reuniware
reuniware / WaveFileGenerator.cpp
Last active July 5, 2020 15:41
Android, generate wav file with NDK C++
#include <fstream>
namespace little_endian_io
{
template <typename Word>
std::ostream& write_word( std::ostream& outs, Word value, unsigned size = sizeof( Word ) )
{
for (; size; --size, value >>= 8)
outs.put( static_cast <char> (value & 0xFF) );
return outs;