semvec/pypi-packages huggingface dataset:
strudra 0.1.2
Craft Ghidra structs in python

# Strudra

Welcome to Strudra, a way to craft Ghidra structs in python, using `ghidra_bridge`.

## How Studra Works

Strudra loads all structs from the Ghidra 
For this to work, you have to setup `ghidra_bridge` in Ghidra: https://github.com/justfoxing/ghidra_bridge/

Then, you can create instances of these structs, set values in these structs, and edit them.
Good if you want to interact with your target.


## How to Strud
First, install using `pip install --user strudra`.
Afterwards, you can init a Strudra object.
For this, you first have to [setup and start `ghidra_bridge`](https://github.com/justfoxing/ghidra_bridge#install-the-ghidra-bridge-package-and-server-scripts) in Ghidra.

Then, you can create a new strudra object.

```python
from strudra import strudra

sd = strudra.Strudra()
```

You can pass in a custom Ghidra Bridge here, if you like.
By default, it will serialize all data received from ghidra to `struds.json`, and reload from there, if Ghidra bridge is not available.
You can pass in a different `filename` to cache to, or `None` to disable caching.
You can even `force_from_file=True`, if you don't want any Ghdira interaction in subsequent runs.

We can now use _all_ structs from Ghidra, but let's add one just for this example.

```python
sd.add_struct("struct test{ int test1; char test2[2]; };")
```
### Creating a Strud
Now, we can access the new `test` struct from ghidra.
We can alread set values in the constructor
```python
test_struct = sd.test(test1=0x1337)
```
We can use struct members by name or by offset
```python
assert (test_struct.test == test_struct[0x0])
```
Arrays work, too!
```python
test_struct.test2 = [0x42, 0x42]
```

Oh, and nested structs are fine as well, just try it! ;)

### Reload
After having reversed new Structs in Ghidra, call `reload` on the `Strudra` object to get the latest updates.

### Serialize
At the end, we can get the serialized bytes back, all members the correct byte order, and use it for example in pwntools.
```
bytes(test_struct)
```

Enjoy a new reverse engineering experience.
flowdo 0.0.13
A small example package
Requires Python: >=3.6

#Installation



##Install from PyPI
<br>
`GR_F4C` is available on PyPI. To install `GR_F4C`, run this command in your terminal:

```sh
pip install GR_F4C
```
##Install from conda-forge

<br>
`GR_F4C` is also available on conda-forge. If you have Anaconda or Miniconda installed on your computer, you can create a conda Python environment to install `GR_F4C`:

```sh
conda install -c defaults -c conda-forge GR_F4C
```
##Install from GitHub

<br>
To install the development version from GitHub using Git, run the following command in your terminal:
```sh
```
##Colaboratory 

<br>
Colaboratory lets you connect to a local runtime using Jupyter. This allows you to execute code on your local hardware and have access to your local file system.

**Step 1: Install Jupyter**<br>
Install [Jupyter](https://jupyter.org/install) on your local machine.

**Step 2: Install and enable the jupyter_http_over_ws jupyter extension (one-off)** <br>
The ```jupyter_http_over_ws``` extension is authored by the Colaboratory team and available on [GitHub](https://github.com/googlecolab/jupyter_http_over_ws).

```sh
pip install jupyter_http_over_ws
jupyter serverextension enable --py jupyter_http_over_ws
```
**Step 3: Start server and authenticate**<br>
New notebook servers are started normally, though you will need to set a flag to explicitly trust WebSocket connections from the Colaboratory frontend.

```sh
jupyter notebook \
  --NotebookApp.allow_origin='https://colab.research.google.com' \
  --port=8888 \
  --NotebookApp.port_retries=0
```   
Once the server has started, it will print a message with the initial backend URL used for authentication. Make a copy of this URL as you'll need to provide this in the next step.

**Step 4: Connect to the local runtime**<br>
In Colaboratory, click the 'Connect' button and select 'Connect to local runtime…'. Enter the URL from the previous step in the dialogue that appears and click the 'Connect' button. After this, you should now be connected to your local runtime.

##Upgrade GR_F4C
<br>
If you have installed `GR_F4C` before and want to upgrade to the latest version, you can run the following command in your terminal:

```sh
pip install -U GR_F4C
```
If you use conda, you can update `GR_F4C` to the latest version by running the following command in your terminal:

```sh
conda update GR_F4C
```
floodtest 0.0.1
A small example package
Requires Python: >=3.6

#Installation



##Install from PyPI
<br>
`GR_F4C` is available on PyPI. To install `GR_F4C`, run this command in your terminal:

```sh
pip install GR_F4C
```
##Install from conda-forge

<br>
`GR_F4C` is also available on conda-forge. If you have Anaconda or Miniconda installed on your computer, you can create a conda Python environment to install `GR_F4C`:

```sh
conda install -c defaults -c conda-forge GR_F4C
```
##Install from GitHub

<br>
To install the development version from GitHub using Git, run the following command in your terminal:
```sh
```
##Colaboratory 

<br>
Colaboratory lets you connect to a local runtime using Jupyter. This allows you to execute code on your local hardware and have access to your local file system.

**Step 1: Install Jupyter**<br>
Install [Jupyter](https://jupyter.org/install) on your local machine.

**Step 2: Install and enable the jupyter_http_over_ws jupyter extension (one-off)** <br>
The ```jupyter_http_over_ws``` extension is authored by the Colaboratory team and available on [GitHub](https://github.com/googlecolab/jupyter_http_over_ws).

```sh
pip install jupyter_http_over_ws
jupyter serverextension enable --py jupyter_http_over_ws
```
**Step 3: Start server and authenticate**<br>
New notebook servers are started normally, though you will need to set a flag to explicitly trust WebSocket connections from the Colaboratory frontend.

```sh
jupyter notebook \
  --NotebookApp.allow_origin='https://colab.research.google.com' \
  --port=8888 \
  --NotebookApp.port_retries=0
```   
Once the server has started, it will print a message with the initial backend URL used for authentication. Make a copy of this URL as you'll need to provide this in the next step.

**Step 4: Connect to the local runtime**<br>
In Colaboratory, click the 'Connect' button and select 'Connect to local runtime…'. Enter the URL from the previous step in the dialogue that appears and click the 'Connect' button. After this, you should now be connected to your local runtime.

##Upgrade GR_F4C
<br>
If you have installed `GR_F4C` before and want to upgrade to the latest version, you can run the following command in your terminal:

```sh
pip install -U GR_F4C
```
If you use conda, you can update `GR_F4C` to the latest version by running the following command in your terminal:

```sh
conda update GR_F4C
```