Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.
####1. anchor file
Create an anchor file under /etc/pf.anchors/<anchor file> with your redirection rule like:
| diff --git a/src/80211.c b/src/80211.c | |
| index c2aff59..202556b 100644 | |
| --- a/src/80211.c | |
| +++ b/src/80211.c | |
| @@ -39,8 +39,18 @@ const u_char *next_packet(struct pcap_pkthdr *header) | |
| const u_char *packet = NULL; | |
| /* Loop until we get a valid packet, or until we run out of packets */ | |
| +#ifdef __APPLE__ | |
| + struct pcap_pkthdr *pkt_header = NULL; |
| Session Start: Sat Dec 15 22:42:05 2012 | |
| Session Ident: #ctf | |
| 03[22:42] * Now talking in #ctf | |
| 02[22:49] * YueLiu ([email protected]) Quit (Ping timeout: 121 seconds) | |
| 02[22:51] * adrian ([email protected]) Quit (Quit: Going offline, see ya! (www.adiirc.com)) | |
| 03[23:06] * luke ([email protected]) has joined #ctf | |
| Session Time: Sun Dec 16 00:00:00 2012 | |
| 01[00:05] <hellok> 登陆密码是? | |
| 02[00:31] * Disconnected |
| URL (Sysfirm/WebUI) | |
| * Note that global firmware ends with 00, Chinese ends with 233, Arabic ends with 1133 | |
| http://update.hicloud.com:8180/TDS/data/files/p9/s43/G134/g0/v73927/f1/full/filelist.xml (21.233.01.00.00/21.100.27.00.00) | |
| http://update.hicloud.com:8180/TDS/data/files/p9/s43/G134/g0/v76581/f1/full/filelist.xml (21.235.01.00.00/21.100.28.00.00) | |
| http://update.hicloud.com:8180/TDS/data/files/p9/s92/G247/g0/v96740/f1/full/filelist.xml (21.236.05.00.1133/21.100.32.01.1133) | |
| http://update.hicloud.com:8180/TDS/data/files/p9/s43/G134/g0/v90819/f1/full/filelist.xml (21.236.05.01.233/21.100.32.01.233) | |
| http://update.hicloud.com:8180/TDS/data/files/p9/s43/G134/g0/v98037/f1/full/filelist.xml (21.170.63.00.233/21.100.32.02.233) |
| #! /bin/bash | |
| # Simple Utility Script for allowing debug of hardened macOS apps. | |
| # This is useful mostly for plug-in developer that would like keep developing without turning SIP off. | |
| # Credit for idea goes to (McMartin): https://forum.juce.com/t/apple-gatekeeper-notarised-distributables/29952/57?u=ttg | |
| # Update 2022-03-10: Based on Fabian's feedback, add capability to inject DYLD for sanitizers. | |
| # | |
| # Please note: | |
| # - Modern Logic (on M1s) uses `AUHostingService` which resides within the system thus not patchable and REQUIRES to turn-off SIP. | |
| # - Some hosts uses separate plug-in scanning or sandboxing. | |
| # if that's the case, it's required to patch those (if needed) and attach debugger to them instead. |