Skip to content

Instantly share code, notes, and snippets.

View oznotes's full-sized avatar
:octocat:
on duty

Oz oznotes

:octocat:
on duty
View GitHub Profile

Keybase proof

I hereby claim:

  • I am oznotes on github.
  • I am ozguroz (https://keybase.io/ozguroz) on keybase.
  • I have a public key ASBHfqSKU9eKOS4sRebcjcIxk2AsTNi19DXvxAWoT4Pn_Ao

To claim this, I am signing this object:

@oznotes
oznotes / BatchPing.md
Created November 6, 2023 12:29
Batch Ping Command

Introduction

While working with an Orange Pi on a network to which I had limited access, traditional methods of network scanning such as arp -a and net view /all were not yielding the results I needed. These commands typically allow for the discovery of devices on a network by listing IP addresses and connected resources, but in my case, they were insufficient due to restricted access to the router.

In an environment without router access, discovering devices can be challenging. My goal was to locate the Orange Pi, which was proving difficult to identify amongst the numerous devices on the network.

Successful Approach

@oznotes
oznotes / debugging.md
Created April 19, 2023 17:55 — forked from atoktoto/debugging.md
Debugging RP2040 (Rasbperry Pi Pico SDK) using CLion on Windows

Debugging RP2040 (Rasbperry Pi Pico SDK)

Using: Windows, Clion, Picoprobe & OpenOCD

  1. Go through all the steps necessery to build from command line, as described in "Getting started with Raspberry Pi Pico".
  2. Add MinGW toolchain to CLion: obraz
  3. Add CMake profiles using the MinGW toolchain, specify the Pico SDK path as an environment variable: obraz

At this stage the project should build.

@oznotes
oznotes / ida_function_create.py
Last active October 12, 2021 16:36
Function Create IDA
import idautils
import idc
for ea in idautils.Segments():
segend = idc.get_segm_attr(ea, idc.SEGATTR_END)
start = ea
while start < segend:
ida_funcs.add_func(start)
start += 1
@oznotes
oznotes / ida_MakeCode.py
Last active October 12, 2021 16:37
IDA MakeCode Automation
# IDAPython documentation is at https://www.hex-rays.com/products/ida/support/idapython_docs/
import idautils
import idc
for ea in idautils.Segments():
segend = idc.get_segm_attr(ea, idc.SEGATTR_END)
start = ea
while start < segend:
idc.create_insn(start)
@oznotes
oznotes / helper.cs
Last active August 29, 2023 16:54
Add Folder to Defender Exclusion C# .NET
using System;
using System.IO;
using System.Collections.ObjectModel;
using System.Management.Automation;
// Add Folder to Defender Exclusion running powershell script with-in C# .NET
namespace helper
{
class Program
@oznotes
oznotes / repo.js
Created November 26, 2019 16:00
Latest Repo Download
function GetRepo() {
var link;
var RepoLink = 'https://api.github.com/repos/YourRepoHere';
fetch(RepoLink)
.then((resp) => resp.json())
.then((resp) => resp.assets.map((asset) => {
link = asset.browser_download_url;
window.location.href = link;
}))
}
@oznotes
oznotes / Alipic.py
Last active November 26, 2019 16:02
from os import listdir, path
from os.path import isfile, join
from PIL import Image
"""
AliPic
"""
# Structure
"""