-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add getting started documentation
- Loading branch information
Showing
7 changed files
with
95 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
sphinx==7.2.6 | ||
sphinx_rtd_theme==1.3.0 | ||
sphinx_rtd_theme==2.0.0 | ||
readthedocs-sphinx-search==0.3.2 | ||
jinja2==3.1.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
================================================ | ||
Getting started with Facedancer | ||
================================================ | ||
|
||
|
||
Install the Facedancer library | ||
------------------------------ | ||
|
||
You can install the Facedancer library from the `Python Package Index (PyPI) <https://pypi.org/project/facedancer/>`__, a `release archive <https://github.com/greatscottgadgets/Facedancer/releases>`__ or directly from `source <https://github.com/greatscottgadgets/Facedancer/>`__. | ||
|
||
|
||
Install From PyPI | ||
^^^^^^^^^^^^^^^^^ | ||
|
||
You can use the `pip <https://pypi.org/project/pip/>`__ tool to install the Facedancer library from PyPI using the following command: | ||
|
||
.. code-block :: sh | ||
pip install facedancer | ||
For more information on installing Python packages from PyPI please refer to the `"Installing Packages" <https://packaging.python.org/en/latest/tutorials/installing-packages/>`__ section of the Python Packaging User Guide. | ||
|
||
|
||
Install From Source | ||
^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. code-block :: sh | ||
git clone https://github.com/greatscottgadgets/facedancer.git | ||
cd facedancer/ | ||
Once you have the source code downloaded you can install the Facedancer library with: | ||
|
||
.. code-block :: sh | ||
pip install . | ||
Run a Facedancer example | ||
------------------------ | ||
|
||
Create a new Python file called `rubber-ducky.py` with the following content: | ||
|
||
.. code-block :: python | ||
import asyncio | ||
import logging | ||
from facedancer import main | ||
from facedancer.devices.keyboard import USBKeyboardDevice | ||
from facedancer.classes.hid.keyboard import KeyboardModifiers | ||
device = USBKeyboardDevice() | ||
async def type_letters(): | ||
await asyncio.sleep(2) | ||
await device.type_string("echo hello, facedancer\n") | ||
main(device, type_letters()) | ||
Open a terminal and run: | ||
|
||
.. code-block :: sh | ||
python ./rubber-ducky.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
================================================ | ||
How to write a new Facedancer backend | ||
================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
====================== | ||
Documentation | ||
====================== | ||
======================== | ||
Facedancer Documentation | ||
======================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: User Documentation | ||
|
||
documentation_intro | ||
getting_started | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Library Documentation | ||
|
||
library_overview | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Developer Documentation | ||
|
||
howto_facedancer_backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
================================================ | ||
Facedancer Library Overview | ||
================================================ |