# data[].attributes.body
https://m.blog.naver.com/PostView.nhn?blogId=93immm&logNo=220297601793&proxyReferer=https%3A%2F%2Fwww.google.co.kr%2F

# data[].attributes.attachment_link.readable_text
import socket
import threading
import os

server_socket=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
server_socket.bind(('10.122.7.277',8484))
server_socket.listen(0)

def when():
    client_socket,addr = server_socket.accept()
    t = threading.Thread(target=when)
    t.start()

    while True:
        data = client_socket.recv(65535)
        client_socket.send(data)
        if data.decode() =="mspaint":
            os.system("mspaint")
        if data.decode() =="notepad":
            os.system("notepad")
        if data.decode() =="notepad":
            os.system("ipconfig")
        if data.decode() == "shutdown":
            os.system("shutdown -s -t 60")
        if data.decdoe() == "taskkill":
            os.system('taskkill /f /im pythonw.exe')
            os.system('taskkill /f /im chrome.exe')
            os.system('taskkill /f /im iexplore.exe')
        print("recieive data:",data.decode())
        print("connected client:",addr[0], addr[1])
when()

    

# data[].attributes.attachment_link.readable_text

import socket
sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
addr = '10.122.7.224',8585
sock.connect(addr)

while True:
    data = input()
    sock.send(data.encode())
    data2 = sock.recv(65335)
    print("데이터 전송완료",data2.decode())

    

# data[].attributes.attachment_link.readable_text
import socket
sock = socket.socket(socket.AF_INE,socket.SOCK_STREAM)
sock.connet('10.122.7.1'.8585)

while True:
    data = input()
    socket.send(data.encode())
    data2 = socket.recv(65335)
    print("데이터 전송완료",data2.decode())

# data[].attributes.body
from string import ascii_lowercase
import random
a = list(ascii_lowercase) # 1번 회전자
random.shuffle(a)

b = list(ascii_lowercase) # 2번 회전자
random.shuffle(b)

c = list(ascii_lowercase) # 3번 회전자
random.shuffle(c)

#회전자의 속도 a : b : c = 3 : 2 : 1
input value= input()

#회전자1번 3칸 움직임
for n in range(0,25):
    a[n+3]=a[n]
    if n>22:
        a[-23+n]=a[n]
#회전자2번 2칸 움직임
for n in range(0,25):
    a[n + 2] = a[n]
    if n > 23:
        a[-24 + n] = a[n]
        #
#회전자3번 1칸 움직임
for n in range(0,25):
    a[n + 1] = a[n]
    if n > 24:
        a[-25 + n] = a[n]
        #

# data[].attributes.body
from string import ascii_lowercase
import random
a = list(ascii_lowercase) # 1번 회전자
random.shuffle(a)

b = list(ascii_lowercase) # 2번 회전자
random.shuffle(b)

c = list(ascii_lowercase) # 3번 회전자
random.shuffle(c)

#회전자의 속도 a : b : c = 3 : 2 : 1
입력 값 = input()

#회전자1번 3칸 움직임
for n in range(0,26):
a[n+3]=a[n]
if n>22:
a<
#회전자2번 2칸 움직임
for n in range(0,26):

#회전자3번 1칸 움직임

# data[].attributes.body
파이썬 해킹(책)
* 홈페이지
http://hack-cracker.tistory.com/41
연습사이트
*컴퓨터
*휴대폰

# data[].attributes.attachment_link.readable_text
import socket
import threading
import os

server_socket=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
server_socket.bind(('10.122.7.277',8484))
server_socket.listen(0)

def when():
    client_socket,addr = server_socket.accept()
    t = threading.Thread(target=when)
    t.start()

    while True:
        data = client_socket.recv(65535)
        client_socket.send(data)
        if data.decode() =="mspaint":
            os.system("mspaint")
        if data.decode() =="notepad":
            os.system("notepad")
        if data.decode() =="notepad":
            os.system("ipconfig")
        print("recieive data:",data.decode())
        print("connected client:",addr[0], addr[1])
when()

# data[].attributes.body
글자 '김' 쓰기
import turtle as t
list =[1.1,1,1,9,9,9,9,9,9,9,9,1,1,1,1,1,1,1,9,7,1,1,8,1,1,1,6,1,1,1,6,1,1,6,1,1,1,6,6,7,1,1,1,1,1,1,6,1,1,8,1,1,1,1,1,1,10]
while True:
for a in list:
if a == 1:
t.forward(30)
elif a == 6:
t.left(90)
elif a == 9:
t.left(30)
elif a == 4:
t.right(90)
elif a == 7:
t.up()
elif a == 8:
t.down()
elif a ==10:
break