Skip to content
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

Open
1 task done
beanscentcodingpad opened this issue Jul 12, 2024 · 6 comments
Open
1 task done

pinkcoding #5610

beanscentcodingpad opened this issue Jul 12, 2024 · 6 comments
Labels
effort/small p2 website related to Ace website

Comments

@beanscentcodingpad
Copy link

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

  • I may be able to implement this request.
@beanscentcodingpad beanscentcodingpad added needs-triage website related to Ace website labels Jul 12, 2024
@kungfooman
Copy link
Contributor

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() 

@andredcoliveira
Copy link
Contributor

@kungfooman could you expand on what you mean by your comment?

@andredcoliveira
Copy link
Contributor

Hey @beanscentcodingpad. Here's an example PR to get you started in case you find the time to implement this request: #5608

@kungfooman
Copy link
Contributor

@kungfooman could you expand on what you mean by your comment?

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.

@andredcoliveira
Copy link
Contributor

andredcoliveira commented Jul 15, 2024

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.

@beanscentcodingpad
Copy link
Author

Thank you very much ㅜㅜ I fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/small p2 website related to Ace website
Projects
None yet
Development

No branches or pull requests

3 participants