Skip to content

Instantly share code, notes, and snippets.

View ProIntegritate's full-sized avatar
💭
Loitering

ProIntegritate

💭
Loitering
View GitHub Profile
178.162.203.202, abfxbfslwtgajbc.ru
178.162.203.211, abfxbfslwtgajbc.ru
178.162.203.226, abfxbfslwtgajbc.ru
178.162.217.107, abfxbfslwtgajbc.ru
5.79.71.205, abfxbfslwtgajbc.ru
5.79.71.225, abfxbfslwtgajbc.ru
85.17.31.82, abfxbfslwtgajbc.ru
85.17.31.122, abfxbfslwtgajbc.ru
85.17.31.122, aaawkvmluxgrmac.ru
178.162.203.202, aaawkvmluxgrmac.ru
@ProIntegritate
ProIntegritate / gist:d484e84e12087fc11a00b7d2cc866123
Created September 7, 2021 17:55
C++ style Inline functions in VB.net
Class Something
<Runtime.CompilerServices.MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)>
Public Function fInlineFunction() As String
Return "Stuff"
End Function
End Class
@ProIntegritate
ProIntegritate / gist:3ac7152378dd1376f1c74601816b14c4
Last active October 20, 2021 20:03
Suricata 6.0 Setup on Windows 10 x64
**** Firing up Suricata on your Windows 10 box: ****
This is a very quick and dirty way to get it up and running so you can experiment on it.
There are lots of settings and things that i jump over, you should dig into the settings on your own.
1. Start by getting the 64 bit MSI with Suricata. https://suricata.io/download/
Install to default location: "C:\Program files\Suricata\"
____________________________________________________________________________________________________
@ProIntegritate
ProIntegritate / gist:7e14c5ae6b98e87dbfdb933140ba356d
Last active October 13, 2021 00:24
Increase Pinned links from 12 to 24 for each shortcut on start-bar:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"JumpListItems_Maximum"=dword:00000018
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"JumpListItems_Maximum"=dword:00000018
@ProIntegritate
ProIntegritate / gist:e2a8ff0a198d5de40cddf1bfab43b4c4
Created October 5, 2021 17:49
VB.Net Bouncycastle Digest Example for SHA3 (Keccak)
Imports Org.BouncyCastle.Crypto.Digests
Sub main()
' SHA3 Test vectors for string 'abc'
' SHA-3-224 e642824c3f8cf24a d09234ee7d3c766f c9a3a5168d0c94ad 73b46fdf
' SHA-3-256 3a985da74fe225b2 045c172d6bd390bd 855f086e3e9d525b 46bfe24511431532
' SHA-3-384 ec01498288516fc9 26459f58e2c6ad8d f9b473cb0fc08c25 96da7cf0e49be4b2 98d88cea927ac7f5 39f1edf228376d25
' SHA-3-512 b751850b1a57168a 5693cd924b6b096e 08f621827444f70d 884f5d0240d2712e 10e116e9192af3c9 1a7ec57647e39340 57340b4cf408d5a5 6592f8274eec53f0
Dim sTopChar As String = "▄"
Dim sBottomChar As String = "▀"
Dim sVerticalChar As String = "█"
Console.ForegroundColor = ConsoleColor.Red
For n = 0 To 63
Console.Write(sTopChar)
Next
Console.Write(vbCrLf)
Console.WriteLine(sVerticalChar & " Software failure. Press left mouse button to continue " & sVerticalChar)
@ProIntegritate
ProIntegritate / gist:b2315f160d1f561b0ec4496c9680c28f
Last active October 19, 2021 17:23
Virustotal false positive for an almost empty file with almost NO functionality:
@echo off
cls
echo The following dummy code produces a false positive on Virustotal and MS Defender also reacts because of this:
echo y | del t.vb*
echo y | del t.exe
echo ----------------------------------------
echo Decoding B64 sample...
echo TW9kdWxlIE1vZHVsZTENCiAgICBTdWIgTWFpbigpDQogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJUaGlzIHByb2dyYW0gZG9lcyBub3RoaW5nIGJ1dCBwcmludCB0aGlzIGxpbmUgaW4gYSBjb25zb2xlIHdpbmRvdy4iKQ0KICAgIEVuZCBTdWINCkVuZCBNb2R1bGU= > t.vb.b64
certutil -decode t.vb.b64 t.vb
Public Function CleanCommand(ByVal sString As String) As String
' Cleans up commandline params that try to break up strings to bypass detection with ASCII > 127 and Nop characters like "^"
Dim sByteArray() As Byte = System.Text.Encoding.Default.GetBytes(sString)
Dim sResult As String = ""
For n = 0 To UBound(sByteArray)
If sByteArray(n) <= 127 And sByteArray(n) > 0 Then
sResult = sResult & Chr(sByteArray(n))
End If
-- Write RecMedia entities like the one below into a lua file in your modfolder,
-- example ..\media\lua\shared\RecordedMedia\Somefilename.lua
RecMedia["Unique Identifyer of the video object"] = {
itemDisplayName = "Displayed ingame",
title = "Title of video",
subtitle = nil, -- I really don't know what this does.
author = "Author shown on video",
extra = "Category",