7MS #589: Tales of Pentest Pwnage - Part 51

7MS #589: Tales of Pentest Pwnage - Part 51

In today's tale of pentest pwnage we talk about:

  • The importance of local admin and how access to even one server might mean instant, full control over their backup or virtualization infrastructure

  • Copying files via WinRM when copying over SMB is blocked:

$sess = New-PSSession -Computername SERVER-I-HAVE-LOCAL-ADMIN-ACCESS-ON -Credential *

...then provide your creds...and then:

copy-item c:\superimportantfile.doc -destination c:\my-local-hard-drive\superimportantfile.doc -fromsession $sess
  • If you come across PowerShell code that crafts a secure string credential, you may able to decrypt the password variable with:
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($MyVarIWantToDecryptGoesHere))

Episoder(689)

Populært innen Politikk og nyheter

giver-og-gjengen-vg
aftenpodden
forklart
hva-star-du-for
stopp-verden
aftenpodden-usa
popradet
nokon-ma-ga
fotballpodden-2
dine-penger-pengeradet
det-store-bildet
frokostshowet-pa-p5
aftenbla-bla
e24-podden
unitedno
rss-dannet-uten-piano
rss-ness
rss-penger-polser-og-politikk
liverpoolno-pausepraten
rss-borsmorgen-okonominyhetene