
구글 드라이브를 명령 및 제어에 사용하는 개념 증명
이 스크립트는 Google Drive를 통해 데이터를 중계하면서 두 소켓이 통신할 수 있도록 하는 데 사용됩니다.
자세한 내용은 이 블로그 게시물을 확인하세요.
pip2 install google-auth google-auth-oauthlib google-auth-httplib2 python-dateutil google-api-python-client
Usage: google_socks.py [options]
Options:
-h, --help show this help message and exit
--setup Setup script with Drive App
-c CREDS Index of creds in credentials array to use (default: 0)
-d Delete files with names provided to -s and -r
-l Enable Socket Mode: Listener
-i IP Enable Socket Mode: Connect
-p PORT Port number for socket mode (default: 8000)
-s SEND Sending channel (default: 0)
-r RECV Receiving channel (default: 1)
-P POLL Poll every x seconds (default: 0)
-j JITTER Amount of randomness in polling (default: 1.0)
-v Enable verbose output
--debug Enable debug output
데이터를 최대한 빠르게 보내야 하는 경우, 폴링을 설정하지 않거나(-P 0) 지터를 설정하지 마세요(-j 0). API 속도 제한을 초과하여 오류가 발생하면, 폴링 시간을 조금씩 늘려서 적절한 지점을 찾으세요. 0.2초가 잘 작동했습니다.