2022-05-01 16:32:23 +00:00
2022-04-28 16:01:33 +00:00
2024-07-19 09:06:54 +00:00
{% hint style="success" %}
Learn & practice AWS Hacking:< img src = "/.gitbook/assets/arte.png" alt = "" data-size = "line" > [**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)< img src = "/.gitbook/assets/arte.png" alt = "" data-size = "line" > \
Learn & practice GCP Hacking: < img src = "/.gitbook/assets/grte.png" alt = "" data-size = "line" > [**HackTricks Training GCP Red Team Expert (GRTE)**< img src = "/.gitbook/assets/grte.png" alt = "" data-size = "line" > ](https://training.hacktricks.xyz/courses/grte)
2022-04-28 16:01:33 +00:00
2024-07-19 09:06:54 +00:00
< details >
2022-04-28 16:01:33 +00:00
2024-07-19 09:06:54 +00:00
< summary > Support HackTricks< / summary >
2022-04-28 16:01:33 +00:00
2024-07-19 09:06:54 +00:00
* Check the [**subscription plans** ](https://github.com/sponsors/carlospolop )!
* **Join the** 💬 [**Discord group** ](https://discord.gg/hRep4RUj7f ) or the [**telegram group** ](https://t.me/peass ) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live** ](https://twitter.com/hacktricks\_live )**.**
* **Share hacking tricks by submitting PRs to the** [**HackTricks** ](https://github.com/carlospolop/hacktricks ) and [**HackTricks Cloud** ](https://github.com/carlospolop/hacktricks-cloud ) github repos.
2022-04-28 16:01:33 +00:00
< / details >
2024-07-19 09:06:54 +00:00
{% endhint %}
2022-04-28 16:01:33 +00:00
2022-05-01 16:32:23 +00:00
# Check for possible actions inside the GUI application
2020-07-15 15:43:14 +00:00
2021-11-30 16:46:07 +00:00
**Common Dialogs** are those options of **saving a file** , **opening a file** , selecting a font, a color... Most of them will **offer a full Explorer functionality** . This means that you will be able to access Explorer functionalities if you can access these options:
2020-11-09 15:25:30 +00:00
2020-07-15 15:43:14 +00:00
* Close/Close as
* Open/Open with
* Print
* Export/Import
* Search
* Scan
You should check if you can:
* Modify or create new files
* Create symbolic links
* Get access to restricted areas
* Execute other apps
2022-05-01 16:32:23 +00:00
## Command Execution
2020-11-09 15:25:30 +00:00
2024-02-08 21:36:35 +00:00
Maybe **using a `Open with`** option** you can open/execute some kind of shell.
2020-11-09 15:25:30 +00:00
2022-05-01 16:32:23 +00:00
### Windows
2020-11-09 15:25:30 +00:00
2021-11-30 16:46:07 +00:00
For example _cmd.exe, command.com, Powershell/Powershell ISE, mmc.exe, at.exe, taskschd.msc..._ find more binaries that can be used to execute commands (and perform unexpected actions) here: [https://lolbas-project.github.io/ ](https://lolbas-project.github.io )
2020-07-15 15:43:14 +00:00
2022-05-01 16:32:23 +00:00
### \*NIX __
2020-07-15 15:43:14 +00:00
2021-11-30 16:46:07 +00:00
_bash, sh, zsh..._ More here: [https://gtfobins.github.io/ ](https://gtfobins.github.io )
2020-11-09 15:25:30 +00:00
2022-05-01 16:32:23 +00:00
# Windows
2020-11-09 15:25:30 +00:00
2022-05-01 16:32:23 +00:00
## Bypassing path restrictions
2020-07-15 15:43:14 +00:00
* **Environment variables**: There are a lot of environment variables that are pointing to some path
* **Other protocols**: _about:, data:, ftp:, file:, mailto:, news:, res:, telnet:, view-source:_
* **Symbolic links**
2022-05-01 16:32:23 +00:00
* **Shortcuts**: CTRL+N (open new session), CTRL+R (Execute Commands), CTRL+SHIFT+ESC (Task Manager), Windows+E (open explorer), CTRL-B, CTRL-I (Favourites), CTRL-H (History), CTRL-L, CTRL-O (File/Open Dialog), CTRL-P (Print Dialog), CTRL-S (Save As)
2020-07-15 15:43:14 +00:00
* Hidden Administrative menu: CTRL-ALT-F8, CTRL-ESC-F9
* **Shell URIs**: _shell:Administrative Tools, shell:DocumentsLibrary, shell:Librariesshell:UserProfiles, shell:Personal, shell:SearchHomeFolder, shell:Systemshell:NetworkPlacesFolder, shell:SendTo, shell:UsersProfiles, shell:Common Administrative Tools, shell:MyComputerFolder, shell:InternetFolder_
2021-10-18 11:21:18 +00:00
* **UNC paths**: Paths to connect to shared folders. You should try to connect to the C$ of the local machine ("\\\127.0.0.1\c$\Windows\System32")
2020-11-09 15:25:30 +00:00
* **More UNC paths:**
2021-10-18 11:21:18 +00:00
| UNC | UNC | UNC |
| ------------------------- | -------------- | -------------------- |
| %ALLUSERSPROFILE% | %APPDATA% | %CommonProgramFiles% |
| %COMMONPROGRAMFILES(x86)% | %COMPUTERNAME% | %COMSPEC% |
| %HOMEDRIVE% | %HOMEPATH% | %LOCALAPPDATA% |
| %LOGONSERVER% | %PATH% | %PATHEXT% |
| %ProgramData% | %ProgramFiles% | %ProgramFiles(x86)% |
| %PROMPT% | %PSModulePath% | %Public% |
| %SYSTEMDRIVE% | %SYSTEMROOT% | %TEMP% |
| %TMP% | %USERDOMAIN% | %USERNAME% |
| %USERPROFILE% | %WINDIR% | |
2020-11-09 15:25:30 +00:00
2022-05-01 16:32:23 +00:00
## Download Your Binaries
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
Console: [https://sourceforge.net/projects/console/ ](https://sourceforge.net/projects/console/ )\
Explorer: [https://sourceforge.net/projects/explorerplus/files/Explorer%2B%2B/ ](https://sourceforge.net/projects/explorerplus/files/Explorer%2B%2B/ )\
2020-07-15 15:43:14 +00:00
Registry editor: [https://sourceforge.net/projects/uberregedit/ ](https://sourceforge.net/projects/uberregedit/ )
2022-05-01 16:32:23 +00:00
## Accessing filesystem from the browser
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
| PATH | PATH | PATH | PATH |
| ------------------- | ----------------- | ------------------ | ------------------- |
| File:/C:/windows | File:/C:/windows/ | File:/C:/windows\\ | File:/C:\windows |
| File:/C:\windows\\ | File:/C:\windows/ | File://C:/windows | File://C:/windows/ |
| File://C:/windows\\ | File://C:\windows | File://C:\windows/ | File://C:\windows\\ |
| C:/windows | C:/windows/ | C:/windows\\ | C:\windows |
| C:\windows\\ | C:\windows/ | %WINDIR% | %TMP% |
| %TEMP% | %SYSTEMDRIVE% | %SYSTEMROOT% | %APPDATA% |
| %HOMEDRIVE% | %HOMESHARE | | < p > < br > < / p > |
2020-07-15 15:43:14 +00:00
2022-05-01 16:32:23 +00:00
## ShortCuts
2020-11-09 15:25:30 +00:00
2022-04-05 22:24:52 +00:00
* Sticky Keys – Press SHIFT 5 times
* Mouse Keys – SHIFT+ALT+NUMLOCK
* High Contrast – SHIFT+ALT+PRINTSCN
* Toggle Keys – Hold NUMLOCK for 5 seconds
* Filter Keys – Hold right SHIFT for 12 seconds
* WINDOWS+F1 – Windows Search
* WINDOWS+D – Show Desktop
* WINDOWS+E – Launch Windows Explorer
* WINDOWS+R – Run
* WINDOWS+U – Ease of Access Centre
* WINDOWS+F – Search
* SHIFT+F10 – Context Menu
* CTRL+SHIFT+ESC – Task Manager
* CTRL+ALT+DEL – Splash screen on newer Windows versions
* F1 – Help F3 – Search
* F6 – Address Bar
* F11 – Toggle full screen within Internet Explorer
* CTRL+H – Internet Explorer History
* CTRL+T – Internet Explorer – New Tab
* CTRL+N – Internet Explorer – New Page
* CTRL+O – Open File
2020-11-09 15:25:30 +00:00
* CTRL+S – Save CTRL+N – New RDP / Citrix
2022-05-01 16:32:23 +00:00
## Swipes
2021-03-29 22:23:34 +00:00
* Swipe from the left side to the right to see all open Windows, minimizing the KIOSK app and accessing the whole OS directly;
* Swipe from the right side to the left to open Action Center, minimizing the KIOSK app and accessing the whole OS directly;
* Swipe in from the top edge to make the title bar visible for an app opened in full screen mode;
2022-05-01 16:32:23 +00:00
* Swipe up from the bottom to show the taskbar in a full screen app.
2021-03-29 22:23:34 +00:00
2022-05-01 16:32:23 +00:00
## Internet Explorer Tricks
2020-11-09 15:25:30 +00:00
2022-05-01 16:32:23 +00:00
### 'Image Toolbar'
2020-07-15 15:43:14 +00:00
It's a toolbar that appears on the top-left of image when it's clicked. You will be able to Save, Print, Mailto, Open "My Pictures" in Explorer. The Kiosk needs to be using Internet Explorer.
2022-05-01 16:32:23 +00:00
### Shell Protocol
2020-07-15 15:43:14 +00:00
Type this URLs to obtain an Explorer view:
2020-11-09 15:25:30 +00:00
* `shell:Administrative Tools`
* `shell:DocumentsLibrary`
* `shell:Libraries`
* `shell:UserProfiles`
* `shell:Personal`
* `shell:SearchHomeFolder`
* `shell:NetworkPlacesFolder`
* `shell:SendTo`
* `shell:UserProfiles`
* `shell:Common Administrative Tools`
* `shell:MyComputerFolder`
* `shell:InternetFolder`
2020-07-15 15:43:14 +00:00
* `Shell:Profile`
* `Shell:ProgramFiles`
* `Shell:System`
* `Shell:ControlPanelFolder`
* `Shell:Windows`
2021-10-18 11:21:18 +00:00
* `shell:::{21EC2020-3AEA-1069-A2DD-08002B30309D}` --> Control Panel
* `shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}` --> My Computer
* `shell:::{{208D2C60-3AEA-1069-A2D7-08002B30309D}}` --> My Network Places
* `shell:::{871C5380-42A0-1069-A2EA-08002B30309D}` --> Internet Explorer
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
## Show File Extensions
Check this page for more information: [https://www.howtohaven.com/system/show-file-extensions-in-windows-explorer.shtml ](https://www.howtohaven.com/system/show-file-extensions-in-windows-explorer.shtml )
2022-05-01 16:32:23 +00:00
# Browsers tricks
2020-11-09 15:25:30 +00:00
Backup iKat versions:
2021-10-18 11:21:18 +00:00
[http://swin.es/k/ ](http://swin.es/k/ )\
2022-05-01 16:32:23 +00:00
[http://www.ikat.kronicd.net/ ](http://www.ikat.kronicd.net )\
2020-11-09 15:25:30 +00:00
2022-05-01 16:32:23 +00:00
Create a common dialog using JavaScript and access file explorer: `document.write('<input/type=file>')`
Source: https://medium.com/@Rend_/give-me-a-browser-ill-give-you-a-shell-de19811defa0
2020-11-09 15:25:30 +00:00
2022-05-01 16:32:23 +00:00
# iPad
2020-07-15 15:43:14 +00:00
2022-05-01 16:32:23 +00:00
## Gestures and bottoms
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
* Swipe up with four (or five) fingers / Double-tap Home button: To view the multitask view and change App
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
* Swipe one way or another with four or five fingers: In order to change to the next/last App
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
* Pinch the screen with five fingers / Touch Home button / Swipe up with 1 finger from the bottom of the screen in a quick motion to the up: To access Home
* Swipe one finger from the bottom of the screen just 1-2 inches (slow): The dock will appear
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
* Swipe down from the top of the display with 1 finger: To view your notifications
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
* Swipe down with 1 finger the top-right corner of the screen: To see iPad Pro's control centre
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
* Swipe 1 finger from the left of the screen 1-2 inches: To see Today view
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
* Swipe fast 1 finger from the centre of the screen to the right or left: To change to next/last App
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
* Press and hold the On/**Off**/Sleep button at the upper-right corner of the **iPad +** Move the Slide to **power off** slider all the way to the right: To power off
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
* Press the On/**Off**/Sleep button at the upper-right corner of the **iPad and the Home button for a few second** : To force a hard power off
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
* Press the On/**Off**/Sleep button at the upper-right corner of the **iPad and the Home button quickly** : To take a screenshot that will pop up in the lower left of the display. Press both buttons at the same time very briefly as if you hold them a few seconds a hard power off will be performed.
2020-07-15 15:43:14 +00:00
2022-05-01 16:32:23 +00:00
## Shortcuts
2020-07-15 15:43:14 +00:00
You should have an iPad keyboard or a USB keyboard adaptor. Only shortcuts that could help escaping from the application will be shown here.
2021-10-18 11:21:18 +00:00
| Key | Name |
| --- | ------------ |
| ⌘ | Command |
| ⌥ | Option (Alt) |
| ⇧ | Shift |
| ↩ | Return |
| ⇥ | Tab |
| ^ | Control |
| ← | Left Arrow |
| → | Right Arrow |
| ↑ | Up Arrow |
| ↓ | Down Arrow |
2020-07-15 15:43:14 +00:00
2022-05-01 16:32:23 +00:00
### System shortcuts
2020-07-15 15:43:14 +00:00
These shortcuts are for the visual settings and sound settings, depending on the use of the iPad.
2021-10-18 11:21:18 +00:00
| Shortcut | Action |
| -------- | ------------------------------------------------------------------------------ |
| F1 | Dim Sscreen |
| F2 | Brighten screen |
| F7 | Back one song |
| F8 | Play/pause |
| F9 | Skip song |
| F10 | Mute |
| F11 | Decrease volume |
| F12 | Increase volume |
| ⌘ Space | Display a list of available languages; to choose one, tap the space bar again. |
2020-07-15 15:43:14 +00:00
2022-05-01 16:32:23 +00:00
### iPad navigation
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
| Shortcut | Action |
| -------------------------------------------------- | ------------------------------------------------------- |
| ⌘H | Go to Home |
| ⌘⇧H (Command-Shift-H) | Go to Home |
| ⌘ (Space) | Open Spotlight |
| ⌘⇥ (Command-Tab) | List last ten used apps |
| ⌘\~ | Go t the last App |
| ⌘⇧3 (Command-Shift-3) | Screenshot (hovers in bottom left to save or act on it) |
| ⌘⇧4 | Screenshot and open it in the editor |
| Press and hold ⌘ | List of shortcuts available for the App |
| ⌘⌥D (Command-Option/Alt-D) | Brings up the dock |
| ^⌥H (Control-Option-H) | Home button |
| ^⌥H H (Control-Option-H-H) | Show multitask bar |
| ^⌥I (Control-Option-i) | Item chooser |
| Escape | Back button |
| → (Right arrow) | Next item |
| ← (Left arrow) | Previous item |
| ↑↓ (Up arrow, Down arrow) | Simultaneously tap selected item |
| ⌥ ↓ (Option-Down arrow) | Scroll down |
| ⌥↑ (Option-Up arrow) | Scroll up |
| ⌥← or ⌥→ (Option-Left arrow or Option-Right arrow) | Scroll left or right |
| ^⌥S (Control-Option-S) | Turn VoiceOver speech on or off |
| ⌘⇧⇥ (Command-Shift-Tab) | Switch to the previous app |
| ⌘⇥ (Command-Tab) | Switch back to the original app |
| ←+→, then Option + ← or Option+→ | Navigate through Dock |
2020-07-15 15:43:14 +00:00
2022-05-01 16:32:23 +00:00
### Safari shortcuts
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
| Shortcut | Action |
| ----------------------- | ------------------------------------------------ |
| ⌘L (Command-L) | Open Location |
| ⌘T | Open a new tab |
| ⌘W | Close the current tab |
| ⌘R | Refresh the current tab |
| ⌘. | Stop loading the current tab |
| ^⇥ | Switch to the next tab |
| ^⇧⇥ (Control-Shift-Tab) | Move to the previous tab |
| ⌘L | Select the text input/URL field to modify it |
| ⌘⇧T (Command-Shift-T) | Open last closed tab (can be used several times) |
| ⌘\[ | Goes back one page in your browsing history |
| ⌘] | Goes forward one page in your browsing history |
| ⌘⇧R | Activate Reader Mode |
2020-07-15 15:43:14 +00:00
2022-05-01 16:32:23 +00:00
### Mail shortcuts
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
| Shortcut | Action |
| -------------------------- | ---------------------------- |
| ⌘L | Open Location |
| ⌘T | Open a new tab |
| ⌘W | Close the current tab |
| ⌘R | Refresh the current tab |
| ⌘. | Stop loading the current tab |
| ⌘⌥F (Command-Option/Alt-F) | Search in your mailbox |
2020-07-15 15:43:14 +00:00
2024-02-08 21:36:35 +00:00
# References
2020-07-15 15:43:14 +00:00
* [https://www.macworld.com/article/2975857/6-only-for-ipad-gestures-you-need-to-know.html ](https://www.macworld.com/article/2975857/6-only-for-ipad-gestures-you-need-to-know.html )
* [https://www.tomsguide.com/us/ipad-shortcuts,news-18205.html ](https://www.tomsguide.com/us/ipad-shortcuts,news-18205.html )
* [https://thesweetsetup.com/best-ipad-keyboard-shortcuts/ ](https://thesweetsetup.com/best-ipad-keyboard-shortcuts/ )
* [http://www.iphonehacks.com/2018/03/ipad-keyboard-shortcuts.html ](http://www.iphonehacks.com/2018/03/ipad-keyboard-shortcuts.html )
2022-04-28 16:01:33 +00:00
2022-05-01 16:32:23 +00:00
2024-07-19 09:06:54 +00:00
{% hint style="success" %}
Learn & practice AWS Hacking:< img src = "/.gitbook/assets/arte.png" alt = "" data-size = "line" > [**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)< img src = "/.gitbook/assets/arte.png" alt = "" data-size = "line" > \
Learn & practice GCP Hacking: < img src = "/.gitbook/assets/grte.png" alt = "" data-size = "line" > [**HackTricks Training GCP Red Team Expert (GRTE)**< img src = "/.gitbook/assets/grte.png" alt = "" data-size = "line" > ](https://training.hacktricks.xyz/courses/grte)
2022-04-28 16:01:33 +00:00
2024-07-19 09:06:54 +00:00
< details >
2022-04-28 16:01:33 +00:00
2024-07-19 09:06:54 +00:00
< summary > Support HackTricks< / summary >
2022-04-28 16:01:33 +00:00
2024-07-19 09:06:54 +00:00
* Check the [**subscription plans** ](https://github.com/sponsors/carlospolop )!
* **Join the** 💬 [**Discord group** ](https://discord.gg/hRep4RUj7f ) or the [**telegram group** ](https://t.me/peass ) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live** ](https://twitter.com/hacktricks\_live )**.**
* **Share hacking tricks by submitting PRs to the** [**HackTricks** ](https://github.com/carlospolop/hacktricks ) and [**HackTricks Cloud** ](https://github.com/carlospolop/hacktricks-cloud ) github repos.
2022-04-28 16:01:33 +00:00
< / details >
2024-07-19 09:06:54 +00:00
{% endhint %}
2022-05-01 16:32:23 +00:00