Skip to content

Commit

Permalink
Make pwd do what pwd print used to do.
Browse files Browse the repository at this point in the history
This should be a backwards compatible change as `pwd print` will
fallback to `pwd`'s `exec` value.

Fixes #395
  • Loading branch information
leonjza committed Aug 7, 2020
1 parent bca9776 commit b550b94
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions objection/console/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
from ..commands import ui
from ..commands.android import clipboard
from ..commands.android import command
from ..commands.android import generate as android_generate
from ..commands.android import heap as android_heap
from ..commands.android import hooking as android_hooking
from ..commands.android import intents
from ..commands.android import keystore
from ..commands.android import pinning as android_pinning
from ..commands.android import root
from ..commands.android import generate as android_generate
from ..commands.ios import binary
from ..commands.ios import bundles
from ..commands.ios import cookies
from ..commands.ios import generate as ios_generate
from ..commands.ios import heap as ios_heap
from ..commands.ios import hooking as ios_hooking
from ..commands.ios import jailbreak
Expand All @@ -30,7 +31,6 @@
from ..commands.ios import pasteboard
from ..commands.ios import pinning as ios_pinning
from ..commands.ios import plist
from ..commands.ios import generate as ios_generate
from ..utils.helpers import list_current_jobs

# commands are defined with their name being the key, then optionally
Expand Down Expand Up @@ -107,13 +107,8 @@
},

'pwd': {
'meta': 'Work with the current directory',
'commands': {
'print': {
'meta': 'Print the current working directory on the device',
'exec': filemanager.pwd_print
},
},
'meta': 'Print the current working directory on the device',
'exec': filemanager.pwd_print,
},

'file': {
Expand Down

0 comments on commit b550b94

Please sign in to comment.