(self)
| 5071 | return |
| 5072 | |
| 5073 | def show_fds(self) -> None: |
| 5074 | pid = gef.session.pid |
| 5075 | path = f"/proc/{pid:d}/fd" |
| 5076 | |
| 5077 | info("File Descriptors:") |
| 5078 | items = os.listdir(path) |
| 5079 | if not items: |
| 5080 | gef_print("\tNo FD opened") |
| 5081 | return |
| 5082 | |
| 5083 | for fname in items: |
| 5084 | fullpath = os.path.join(path, fname) |
| 5085 | if os.path.islink(fullpath): |
| 5086 | gef_print(f"\t{fullpath} {RIGHT_ARROW} {os.readlink(fullpath)}") |
| 5087 | return |
| 5088 | |
| 5089 | def list_sockets(self, pid: int) -> List[int]: |
| 5090 | sockets = [] |