prjbrook

Perplexcsv1.py pico send file program

Aug 10th, 2024
451
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.22 KB | None | 0 0
  1. https://capture.dropbox.com/bkF5UoX4ybyFx3Ja
  2. import network
  3. import socket
  4.  
  5. # Set up access point
  6. ap = network.WLAN(network.AP_IF)
  7.  
  8. #ap.config(essid='PicoW_AP',password='PASSWORD')  #Pb added password
  9. ap.config(essid='NAME2',password='PASSWORD')  #Pb added password
  10. ap.active(True)
  11. # Wait for connection
  12. while not ap.isconnected():
  13.     pass
  14.  
  15. print('AP Mode Is Active, You can Now Connect')
  16. print('IP Address To Connect to::', ap.ifconfig()[0])
  17.  
  18. # Set up socket
  19. addr = socket.getaddrinfo('0.0.0.0', 80)[0][-1]
  20. s = socket.socket()
  21. s.bind(addr)
  22. s.listen(1)
  23.  
  24. print('Listening on', addr)
  25.  
  26. while True:
  27.     cl, addr = s.accept()
  28.     print('Got a connection from', addr)
  29.     request = cl.recv(1024)
  30.     print('Content received by Pico =', request)
  31.  
  32.     # Attempt to read the log.csv file
  33.     try:
  34.         with open('log.csv', 'r') as file:
  35.             log_data = file.read()
  36.     except OSError:
  37.         log_data = "Error: log.csv file not found."
  38.  
  39.     # Send a proper HTTP response with the CSV data
  40.     response = """\
  41. HTTP/1.1 200 OK
  42. Content-Type: text/csv
  43. Content-Disposition: attachment; filename="log.csv"
  44. Content-Length: {}
  45.  
  46. {}
  47.  
  48. """.format(len(log_data), log_data)
  49.  
  50.     cl.send(response)
  51.     cl.close()
  52.  
  53.  
Advertisement
Comments
  • prjbrook
    2 years
    # text 0.03 KB | 0 0
    1. Works ok after hard reset of picoW
  • User was banned
  • User was banned
  • Saxsunor
    226 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment