Gallopsled / Gallopsled/pwntools

Repeated Error Messages if Python not installed on SSH host

Open
#1,435 0 comments 0 reactions 1 assignee Claimed by @Arusekk View on GitHub
bug
Dominant language
Python
Stars
13.7k
Forks
1.9k
Avg merge
6d 23h
Merged PRs (30d)
3

Description

We spam the error message multiple times.

The simplest solution to this is likely to only attempt to fill `_platform_info` once via `_init_remote_platform_info` (e.g. `_platform_info['attempted']=True`)

Perhaps setting a dummy key will prevent this from being displayed so many times.

```
>>> s=ssh('root', 'device')
[x] Connecting to localhost on port 11022
[+] Connecting to localhost on port 11022: Done
[ERROR] python is not installed on the remote system 'localhost'
[ERROR] python is not installed on the remote system 'localhost'
[ERROR] python is not installed on the remote system 'localhost'
[ERROR] python is not installed on the remote system 'localhost'
[ERROR] python is not installed on the remote system 'localhost'
[ERROR] python is not installed on the remote system 'localhost'
[!] Only Linux is supported for ASLR checks.
[ERROR] python is not installed on the remote system 'localhost'
[ERROR] python is not installed on the remote system 'localhost'
[ERROR] python is not installed on the remote system 'localhost'
[*] root@localhost:
Distro Unknown Unknown
OS: Unknown
Arch: Unknown
Version: 0.0.0
ASLR: Disabled
Note: Susceptible to ASLR ulimit trick (CVE-2016-3672)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.