Skip to content

Instantly share code, notes, and snippets.

View ogu83's full-sized avatar
🏠
Working from home

Edward Blake ogu83

🏠
Working from home
View GitHub Profile
@ogu83
ogu83 / AzureFunctions_PaymentProcessing.cs
Created August 1, 2025 07:14
a simplified example of how I typically structure Azure Functions for payment processing and webhook integration, using C# (.NET 8+). This pattern is representative of how I’ve integrated Worldpay and similar payment gateways:
// Azure Function for Processing Payment (HTTP Trigger)
[Function("ProcessPayment")]
public async Task<IActionResult> ProcessPayment(
[HttpTrigger(AuthorizationLevel.Function, "post")] HttpRequestData req,
FunctionContext executionContext)
{
var logger = executionContext.GetLogger("ProcessPayment");
var requestBody = await new StreamReader(req.Body).ReadToEndAsync();
var paymentRequest = JsonSerializer.Deserialize<PaymentRequest>(requestBody);
@ogu83
ogu83 / multi_cap_hccap_converter.py
Created September 13, 2023 17:48
WIFI CAP To hashcat hash (multi) Converter
import os
import pathlib
from tqdm import tqdm
path = "./hs"
files = [f for f in os.listdir(path) if pathlib.Path(f).suffix == ".cap"]
for file in tqdm(files):
filename = pathlib.Path(file).stem
os.system(f'sudo /usr/lib/hashcat-utils/cap2hccapx.bin {path}/{file} {path}/{filename}.hccap')
[
{
"UserSerialNumber": "4de6bb8c-8494-4028-ad79-4f4d9e62e512",
"UserPositionId": 0,
"OperationName": "ISilverlightService.InitUserInfo",
"RequestId": "bd32e59c-4217-449f-b193-6bbb780aa258",
"RetryNumber": 0,
"Timestamp": "2022-04-21T00:28:35.0018061+03:00",
"ServiceUserNumber": "8800078",
"Source": "Client 1.32 (Staging)",