i cannot access my source code after obfuscation - python

So guys hello, i recently obfuscated my code without backing it up using Monkey-obfuscator
and i really cannot reverse it, i lost my source code and i only have an obfuscated source code.
here's the code : https://dpaste.com/DBUU3X3H2.txt
if anyone can help me get the source back please let me know in the comments
i tried turning exec() into print() and it still gives some nonsense stuff
and i think it should print my source but it doesn't...

Related

Partial Derivates in Python

Can anyone give me the python code for the equation "If u = tan^-1(2xy/x^2-y^2), then show that uxy=uyx." for beginners without using any shortcut commands.
I tried to compile my code, but for some reason, it is not doing so. So, please can someone send me the working code for the above-mentioned problem.

How to remove Pycharm's point of view regarding my code? If I have a mistake - so it will not show it is wrong

Sorry for bad title, I dont know how to say it in my language ( so especially in english ).
Lets say I am working for a code, I make a grammer mistake, forget "" or other stuff, how to remove all the help from pycharm?
I am studying for a final test in my university for Python and I wont want pycharm helping me, I want to realize my mistakes myself, not pycharm helping me.
Please help, atleast tell me what to write at google so I know how to remove it.
EDIT: can anyone help? Inspection and such will not work. I am still in this problem.

#local_config_python issue in RBE

I've been having this error while setting up remote exec with python.
The #local_config_python platform rule says it doesn't find the Python-ast.h file. Please, has anyone encountered a problem like that. Here's out it looks. I apologize for my lack of clarity, I don't really understand the problem.

How do you modify tensorflow python code so that when you import this into your own python files the modifications are picked up?

I am trying to debug a use-case and the error messages that are given by tensorflow are cryptic. Therefore I want to modify the tensorflow code base to print some values so I see exactly what is going wrong. Unfortunately I am not able to simply modify the python file and run, as the changes are not getting picked up. Is there any extra step to work on? To be concrete
https://github.com/tensorflow/tensorflow/blob/98a2d7d166c6ba19539e6d1fa57c47c4170ee77b/tensorflow/python/keras/engine/data_adapter.py
I have modified line 1233
"Your input ran out of data; interrupting training." with "Your input ran out of data; interrupting training. TESTING!!!!"
Basically I added some extra log here just to see how this works. However, the changes do not seem to be getting picked up when I run my code which imports tensorflow. I have made the modifications here
/path_to_anaconda/anaconda3/envs/py39tf26cpu/lib/python3.9/site-packages/tensorflow/python/keras/engine
Any help would be greatly appreciated :)

Python invalid syntax

lastPosition = GPS.getActualPosition()
I m trying to compile a code which is about sending sms through telit module.
above statement is giving an error. I couldn't understand, GPS library is in the place where it's supposed to be and I imported it.
import SER
import MOD
import MDM
import GPS
syntaxError: invalid syntax
http://forum.sparkfun.com/viewtopic.php?f=13&t=20038
please help!!!
The post the OP referred to (in a comment -- not a great idea, #gheddo! edit your Q instead!), here, has exactly this code (I'm copying and pasting only the two relevant lines):
def get_gps():
gpspos = GPS.getActualPosition() #Read GPS position
see the problem? No indentation for the second line! Therefore, a syntax error: function bodies (and other bodies of compound statements) must be indented in Python.
It was hardly necessary to send us reading that code, you know... the code's author, John Melbourne, in the very next post in this thread says, and I quote:
Hi again Ryan,
The forum software removed the
indentation from the Python script
that I listed in my earlier mail.
You will need to re-indent the
function bodies, if and while
statements. See Flavio's original
source if your not sure how.
So that's exactly what you have to do -- re-indent the function bodies, if and while statements, and refer to Flavio Bernardotti's code if you need to for this purpose.
Also, in the future, I would strongly recommend you read at least one post later in a thread (if reading the whole thread is too much work for you...;-)...
Perhaps try some text editor with visible white-space? I've had pesky bugs like this until I turn on "Show Invisibles" in TextMate.

Categories

Resources