How to Make Python Repl Run Bash?

It does work mostly but not entirely for you see I now have your code because I found an exploit.


It deleted the files but not until I was able to read them.

you jsut have ultra fast wifi ig XD

but either way, how would I implement it in python?

Why not just make the code an .env variable?

I dont mean to be rude, but can you just help me fix it with the code I gave? This is proven to work and idw mess with it.

1 Like

what do i change to make it delete python files?

Your Repl is Python, not Node. So delete the ~ folder just to be safe.

You can also do

find /path/to/search -type f -name "*.py" -exec rm -f {} \;

to delete all of the .py files.

1 Like

So where it says

for file in $(find -not -path "./node_modules/*" -not -wholename "./.destroy.sh" -not -path "./.git/*" -not -path "./.config/*" -not -wholename "./.replit"); do rm -rf $file; done

I change it to

for file in $(find -not -path "*.py" -not -wholename "./.destroy.sh" -not -path "./.git/*" -not -path "./.config/*" -not -wholename "./.replit"); do rm -rf $file; done

?

Change the entire code inside the else statement.

Or you can just change it to rm -rf ~ which is safer and easier.

1 Like

Ok does it work? :pray:

https://replit.com/@JayAySeaOhBee14/Self-Distruction-Test

Not in the slightest
image

Ok try it now XD.

I changed onboot to onBoot

1 Like

But I can see
image
And I can see files too. It was closer before.

1 Like

Ok try it now: https://replit.com/@JayAySeaOhBee14/Self-Distruction-Test

Firepup’s works much better.


I am unable to exploit it. This one I can view stuff via direct URL because it loads files faster than it deletes them.

1 Like

Isn’t it much easier to use an obfuscator?

1 Like

Yeah I just need to code from it :sob:

@Firepup650 :face_holding_back_tears:

Do direct URLs not work against mine? If so, which one?

also see:

The delete methods are not 100% foolproof obviously, but they are good.

1 Like

Yours is so good that I can only learn that there is a file called run.sh but I cannot read it or any other file despite my best efforts. It is invulnerable to the exploits I was able to use on Jay/python660’s thing.

1 Like