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 MimeKit; | |
using MailKit.Net.Smtp; | |
namespace TestClient | |
{ | |
class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var message = new MimeMessage(); |
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
try: | |
import tkinter as tk | |
print("tkinter is available") | |
except ImportError: | |
print("tkinter is not available") |
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
function downloadTableAsCSV(tableClass, filename) { | |
// Get the table element using class name | |
var table = document.getElementsByClassName(tableClass)[0]; | |
// Get all rows of the table | |
var rows = table.getElementsByTagName("tr"); | |
// Create the CSV string | |
var csvContent = ""; | |
for (var i = 0; i < rows.length; i++) { |
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
#!/bin/bash | |
function CheckHex { | |
#file path, Ghidra offset, Hex to check | |
commandoutput="$(od $1 --skip-bytes=$(($2-0x100000)) --read-bytes=$((${#3} / 2)) --endian=little -t x1 -An file | sed 's/ //g')" | |
if [ "$commandoutput" = "$3" ]; then | |
echo "1" | |
else | |
echo "0" | |
fi |