mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
20 lines
284 B
Python
20 lines
284 B
Python
|
|
|
|
HOST = "acme-trading.com"
|
|
PORT = 8000
|
|
USERNAME = "road_runner"
|
|
PASSWORD = "insecure_pwd"
|
|
|
|
|
|
def sell(client, units):
|
|
|
|
conn = client.connect(
|
|
host=HOST,
|
|
port=PORT,
|
|
username=USERNAME,
|
|
password=PASSWORD)
|
|
|
|
conn.cmd("sell", 1000)
|
|
conn.close()
|
|
|