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
| # python3 -m pip install pycryptodome==3.4.3 | |
| from Crypto.Util.number import inverse, long_to_bytes | |
| import decimal, binascii | |
| # If you have the id_rsa.pub or equivalent | |
| # ssh-keygen -f id_rsa.pub -e -m PKCS8 > id_rsa.pem | |
| # If you have a private key (pem) file | |
| # - http://certificate.fyicenter.com/2145_FYIcenter_Public_Private_Key_Decoder_and_Viewer.html | |
| # -- Fill in n, e, d, p, q (Note: numeric values of n,d,p,q - Not displayed hex values) |
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
| <?php | |
| // File created by Reelix (HTB: Reelix) | |
| // Enter your Host, username, password, database below. | |
| $host = "IP_HERE"; | |
| $dbuser = "USERNAME_HERE"; | |
| $dbpass = "PASSWORD_HERE"; | |
| $db = "DATABASE_HERE"; | |
| $query = ""; | |
| if ($argc == 2) |
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
| internal class Program | |
| { | |
| private static void Main(string[] args) | |
| { | |
| // https://code.google.com/archive/p/torchtools/wikis/TorchlightFileSpec.wiki | |
| Console.Title = "Reelix's TL1 Save Game Viewer"; | |
| byte[] fileBytes = File.ReadAllBytes(@"C:\Users\Reelix\AppData\Roaming\runic games\torchlight\save\0.SVT"); | |
| // Remove first 4 - Unsure | |
| fileBytes = RemoveFirstBytes(fileBytes, 4); |
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
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| List<double> exampleOne = new List<double> { 1, 3, 3, 6, 7, 8, 9 }; | |
| List<double> exampleTwo = new List<double> { 1, 2, 3, 4, 5, 6, 8, 9 }; | |
| List<double> exampleThree = new List<double> { 0, 1, 2, 4, 6, 5, 3 }; | |
| double medianOne = exampleOne.Median(); | |
| double medianTwo = exampleTwo.Median(); | |
| double medianThree = exampleThree.Median(); |
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.Net.Sockets; | |
| using System.Text; | |
| namespace SSHv | |
| { | |
| internal class Program | |
| { | |
| private static void Main(string[] args) | |
| { |
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.IO; | |
| using System.Linq; | |
| using System.Windows.Forms; // DLL Reference for SendKeys | |
| namespace SniffedUSBKeyboardDataReplicator | |
| { | |
| class Program | |
| { |
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
| private static void Main() | |
| { | |
| int num1 = 2; | |
| double num2 = 4; | |
| var someString2 = $"{num2 / int.Parse($"{num2}") + $"_{num1}" + $"Meta{num2 / int.Parse($"{num2}") + $"_{num2 % num1 % int.Parse($"{num2}")}"}M{null}eta_{num2}Me"}"; | |
| Console.WriteLine(someString2); | |
| Console.ReadLine(); | |
| } |
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
| <script> | |
| function formatCurrency() | |
| { | |
| // Get the values from the text-boxes | |
| var symbol = document.getElementById('formatCurrencySymbol').value; | |
| var number = parseFloat(document.getElementById('formatCurrencyNumber').value); | |
| var decimalPlaces = document.getElementById('formatCurrencyDecimalPlaces').value; | |
| // Do the formatting - Regex here! | |
| var result = symbol + number.toFixed(decimalPlaces).replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); |
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
| /* Gist Embed - Dark Theme Styling - Thanks to MattD */ | |
| /* Body */ | |
| .gist-data tbody { background-color: Black; } | |
| /* Line Numbers */ | |
| .gist-data tbody td:nth-of-type(1) { | |
| color: #2B91AF !important; | |
| } |