This file contains hidden or 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
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); | |
} |
This file contains hidden or 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
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) |
This file contains hidden or 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
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! |
This file contains hidden or 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
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 |
This file contains hidden or 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
# 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') |
This file contains hidden or 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
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 |
This file contains hidden or 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
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 |
This file contains hidden or 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
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);"); |
This file contains hidden or 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
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 |
This file contains hidden or 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
#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; |