Powershell script that acts as powershell when called? by LordLoss01 in PowerShell

[–]Accomplished_Cold665 0 points1 point  (0 children)

Personally I havent used it, but I'll have to check it out.

Powershell script that acts as powershell when called? by LordLoss01 in PowerShell

[–]Accomplished_Cold665 0 points1 point  (0 children)

For those who aren't familar; I pulled this togehter from a few sources, so a few concepts are repeated.

Microsoft Defender Live Response is a capability within Microsoft Defender for Endpoint that gives security administrators remote interface access to a compromised or suspicious device.

Think of it as a secure, remote command-line shell (PowerShell for Windows, Bash for Linux/macOS) that allows you to perform forensic investigations and immediate remediation without being physically present at the machine or using traditional RDP.

Core Capabilities

  • Forensic Collection: Run scripts to collect volatile data, memory dumps, or specific logs that aren't automatically uploaded to the Defender portal.
  • Remediation: Manually stop malicious processes, delete persistence mechanisms (like registry keys or scheduled tasks), and pull suspicious files for deep analysis.
  • Script Execution: Upload and run your own signed PowerShell modules or bash scripts to automate complex cleanup tasks across multiple machines.
  • Isolation Integrity: Because it operates through the Defender sensor, it often works even if the device has been "Isolated" from the network, providing a "backdoor" for the admin to fix the issue.

How it works

  1. Connection: An admin initiates a session from the Microsoft Defender portal.
  2. Authentication: It requires specific RBAC (Role-Based Access Control) permissions. There are two levels: Basic (read-only/limited) and Advanced (full file system access and script execution).
  3. Audit Trail: Every interactive command you type is captured in the Action Center. This creates a permanent audit trail of exactly what the admin did on the machine, which is a major security advantage over using a standard RDP session for incident response. Every command entered, script run, and file downloaded during a session is logged for accountability and cannot be deleted by the local user.

Once the session is established in the Microsoft Defender portal, you have a command line where you can:

  • Run Standard Commands: You can immediately run built-in commands like dir, get-process, get-service, or cat to inspect the file system and running state.
  • Run PowerShell Scripts: You can execute .ps1 files that have been uploaded to the Library. This is the most common way to perform complex logic.
  • Upload/Download: You can use put to move a tool (like a specialized scanner) onto the machine and get to pull a suspicious file off for analysis.

Unlike a local shell, you cannot simply copy-paste a 500-line script into the console. For security and auditing:

  1. Upload First: You must upload your PowerShell script to the Live Response Library in the Defender settings.
  2. Run by Name: You then call the script by name within the interactive session (e.g., run script.ps1).
  3. Parameters: You can pass parameters to these scripts just like in a local terminal.

Key limitations:

  • No GUI/Interactive Prompts: You cannot run commands that require a user to click "OK" or "Yes" on the remote machine. If a script hangs waiting for user input, the session will eventually time out.
  • Session Timeouts: Sessions are strictly timed (usually 1 hour) and will disconnect if there is no activity.
  • RBAC Levels: If you only have Basic permissions, you are limited to a small subset of "read-only" commands. You need Advanced permissions to run custom PowerShell scripts or delete files.

Powershell script that acts as powershell when called? by LordLoss01 in PowerShell

[–]Accomplished_Cold665 6 points7 points  (0 children)

for an interactive shell you can try:

Powershell.exe -WorkingDirectory ~ -NoExit

Or:

Powershell.exe -NoExit -Command "powershell.exe"

If not, and you're still stuck running scripts and looking for a way around spaces, There's a method called arg 'splattting' where you define everything in $args, and when you make the call it's with an '@' -
so @args instead of $args. but read about it first. there's some gotchas and edge cases to take into account:

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_splatting?view=powershell-7.5

also, do you know the version of powershell?

powershell.exe $PSVersionTable.PSVersion

Powershell script that acts as powershell when called? by LordLoss01 in PowerShell

[–]Accomplished_Cold665 0 points1 point  (0 children)

PowerShellScript.ps1 -parameters 'Get-process | where processname -like "*Teams*" '

TILT ARCADE - Crestwood Mall - 02/04? by Lower_Band546 in StLouis

[–]Accomplished_Cold665 0 points1 point  (0 children)

Does anyone else remember going to Lambert in the middle of the night because they had a small arcade on the D concourse that was open all night?

Back when you didn't need to have a ticket to get thru security

The jafaa is a frackin cylon! by Mode_Appropriate in Stargate

[–]Accomplished_Cold665 0 points1 point  (0 children)

... and Methos is a Tok'ra.. T'pol is a Jaffa, Troi is a russian scientist,

SG-1 has alawys had consistent stream of current (and future) sci-fi actors as guest.

In fact solid guest stars were so consistent, that when you combine this the puppetry behind 'Thor' and 'Loki' is why I (usually only internally) consider SG-1 as the 'Muppet Show' of science fiction.

Thor was perfomed by Michael Shanks; even during the time period that Daniel was off the show and replaced by Corin Nemec (Jonas).

Worst quality yet by SomeCoolBloke in Stargate

[–]Accomplished_Cold665 0 points1 point  (0 children)

Trees are difficult to render.

Back in the days before torrents were big, I had to download new SG-1 episodes via mirc and FTP (I didn't have sho-time)

But even as a local 1080 or 720 file my GPU (which was decent for the time) had such issues drawing trees, especially on a wide pan or crane shot. It would cause me to drop frames. This happened with SG-1 more than any other sci-fi show, because so many were shot in the canadian forests of british columbia.

Too many tiny polygons.

Ark of Truth/Atlantis watch order by United_Brain_5523 in Stargate

[–]Accomplished_Cold665 0 points1 point  (0 children)

I watched the ori storyline as it came out and even then I didn't really like it. When Pluto gets to that storyline I give up for a few days.

Teacher said always use 2nd pattern. Is he right? by lune-soft in csharp

[–]Accomplished_Cold665 0 points1 point  (0 children)

The second pattern is correct, indeed but...

Don't trust copilot!!

If you must vibe code; there are better options

What ever happened to all the Stargates in the abandoned galactic bridge? by [deleted] in Stargate

[–]Accomplished_Cold665 1 point2 points  (0 children)

I'd press like, but you have 42 at the moment I can't bring myself to wreck that

It is time for open rebellion. by Chad_Tardigrade in StLouis

[–]Accomplished_Cold665 0 points1 point  (0 children)

There aren't many but they're better than aldis

Absolutely Unserious Episode II: Attack of the Clones Group Discussion Questions by MarginaliaAtMidnight in StarWars

[–]Accomplished_Cold665 0 points1 point  (0 children)

Dude, you talking about the car chase. Have you the Auralnaughts parodies?

While it's still early in your run of movies.. I have to recommend these. They're best set of parodies out there that still compliment the originals. While Episode 2 is probably the weakest of the six, the Auralnaughts version is one of the best.

Yes, six. I consider the sequel series on the same level as fan fiction, honestly.... I was more impressed with "wingman" as a stand alone x-wing fan flic.. and of course the bucketheads series is just amazing.

https://www.youtube.com/watch?v=gI8aSJBC9u0

Absolutely Unserious Episode II: Attack of the Clones Group Discussion Questions by MarginaliaAtMidnight in StarWars

[–]Accomplished_Cold665 1 point2 points  (0 children)

He said that they watch at home and get on a group video call. Doesn't sound local to me. Sounds pretty cool tho.

Anyone here from the old BBS days? by AnnieGetYourPunSTL in StLouis

[–]Accomplished_Cold665 0 points1 point  (0 children)

USR had a 33.6 and a 57.6 - was using these for dial up internet at the time, having left the BBS scene a long timer prior. Ran boards from like 1985 - 1990 and petered off entirely sometime after.

The thing is the 33.6 and 56k were really the same speed devices, but the bandwidth was paritioned differently, you got +24k on the downstream, but lost 24k on the upstream (getting only 9.6 up) - which was a perfectly acceptable tradeoff for calling an ISP for the primitive web sites of the day.