Skip to content

Instantly share code, notes, and snippets.

@helpdeskdan
helpdeskdan / gist:07a94bd711cb7bb2d7d53feb70425cf8
Created June 25, 2018 18:35
Tacacs AFL Patch for 4.0.4.28 with pamenable.patch by ragzilla
--- ../../tacacs-F4.0.4.28/authen.c 2014-07-31 14:09:47.000000000 -0600
+++ ./authen.c 2018-05-08 11:17:09.056622318 -0600
@@ -329,10 +329,22 @@
return;
}
- if ((*func)(datap)) {
+#ifdef AFL
+ if ((session.afl_cfg) &&
+ cfg_is_user_disabled(datap->NAS_id->username) == 1)
@helpdeskdan
helpdeskdan / gist:1358d005ae1277bffdf67d66d956d919
Created June 25, 2018 17:23
Tacacs AFL Patch for 4.0.4.28
--- ../../tacacs-F4.0.4.28/authen.c 2014-07-31 14:09:47.000000000 -0600
+++ ./authen.c 2018-05-02 13:12:24.316818539 -0600
@@ -329,10 +329,22 @@
return;
}
- if ((*func)(datap)) {
+#ifdef AFL
+ if ((session.afl_cfg) &&
+ cfg_is_user_disabled(datap->NAS_id->username) == 1)
Dual booting chromium with up to date flash. (Or 'buntu derivatives, I used xubuntu). I sincerely hope this saves somebody the grief I had to go through to get it right.
I used 3 usb keys. One for Ubuntu, one for gparted live, and one for chromium. This document assumes you've booted to chromium from usb to assure it works and assumes you know how to make bootable USB's. (or that you at least know how to use google).
Method A (Tested, works)
Get a gparted iso & boot from it - usb or cd. (google can help you with this). If you've borked the drive, rewrite the boot sector. (failed chromium installs for instance). Get a chromium ISO and write it to USB. (I used dd). Insert it & refresh gparted. Copy the State Partition (big one) to the first partition on the drive, make it bigger if you want. Grab the root-a partition (other big one) and make it the second. Create a swap partion 1024 - 2048 - megabyte-ish at the end of the drive. Make an ext4 partition with whatever is left in between. Reboot to t