14 lines
295 B
Python
Executable File
14 lines
295 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import subprocess
|
|
|
|
if __name__ == "__main__":
|
|
result = subprocess.run(
|
|
['curl', 'https://hatter.ink/ip.action'],
|
|
capture_output=True,
|
|
text=True,
|
|
# timeout=30,
|
|
)
|
|
print('return code:', result.returncode)
|
|
print(result.stdout)
|