Skip to content

Instantly share code, notes, and snippets.

@haxxinen
haxxinen / dns_localhost.md
Last active March 9, 2020 23:11
Resolve DNS to 127.0.0.1
vcap.me
fuf.me
localtest.me
127-0-0-1.org.uk
yoogle.com
lvh.me
127.0.0.1.xip.io
@haxxinen
haxxinen / ViewController.swift
Created February 10, 2020 21:14
Detect iOS jailbreak - App
// ViewController.swift
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
@haxxinen
haxxinen / x11_forwarding.md
Created February 10, 2020 21:09
X11-forwarding
  1. download and install https://www.xquartz.org/
  2. remember to log out after install
  3. login via SSH to remote box ssh -X [email protected]
  4. make sure rdesktop runs on the remote box
  5. run rdesktop and wait for the magic to happen
@haxxinen
haxxinen / win_run_process_as.md
Created February 10, 2020 21:08
Run Windows process as another user.

1. Prerequisites

1.1. Account must be enabled (net user Administrator /active:yes)
>net user Administrator | findstr "active"
Account active               Yes
1.2. Info about domain and local host name
@haxxinen
haxxinen / macos_pi_lan.md
Last active October 17, 2023 12:56
Mac + Pi on Ethernet
1. Share Internet from macOS to Pi Ethernet port
  • System Preferences -> Sharing -> (Unlock Pannel)
  • Share your connection from Wi-Fi (example)
  • To computers using: USB LAN / Ethernet
  • [check] Internet Sharing -> Start
2. Find bridged device using MAC address of Pi