Skip to content

Commit f3dda17

Browse files
author
Muhammad Shafaf
committed
Update: Readme updated, remove unused files
1 parent 5f98a1c commit f3dda17

6 files changed

Lines changed: 29 additions & 156 deletions

File tree

README.md

Lines changed: 29 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,47 @@
11
<div align="center">
2-
<h1><code>Razorpay Python Client </code></h1>
3-
<!-- <p><strong><em>Python bindings for interacting with the Razorpay API This is primarily meant for merchants who wish to perform interactions with the Razorpay API programatically.</em></strong></p> -->
2+
<h1>Flask Razorpay Integration</h1>
43
</div>
5-
6-
---
7-
<!--
8-
## 📖 Table of Contents
9-
10-
- [Introduction](#%E2%84%B9%EF%B8%8F-introduction)
11-
- [Features](#features)
12-
- [Installation](#installation)
13-
- [Usage](#usage)
14-
- [Contribution](#contribution)
15-
- [License](#license)
16-
17-
## ℹ️ Introduction
18-
19-
**moonwalk** is a 400 KB single-binary executable that can clear your traces while penetration testing a **Unix** machine. It saves the state of system logs pre-exploitation and reverts that state including the filesystem timestamps post-exploitation leaving zero traces of a _ghost in the shell_.
20-
21-
⚠️ **NOTE:** This tool is open-sourced to assist solely in [**Red Team**](https://en.wikipedia.org/wiki/Red_team) operations and in no means is the author liable for repercussions caused by any prohibited use of this tool. Only make use of this in a machine you have permission to test.
4+
<p>This is a simple Flask application that demonstrates how to integrate the Razorpay payment gateway, focusing on recurring payments. The backend is developed using Python-Flask and PostgreSQL, utilizing the Razorpay Python module..</p>
225

236
## Features
247

25-
- **Small Executable:** Get started quickly with a `curl` fetch to your target machine.
26-
- **Fast:** Performs all session commands including logging, trace clearing, and filesystem operations in under 5 milliseconds.
27-
- **Reconnaissance:** To save the state of system logs, `moonwalk` finds a world-writable path and saves the session under a dot directory which is removed upon ending the session.
28-
- **Shell History:** Instead of clearing the whole history file, `moonwalk` reverts it back to how it was including the invokation of `moonwalk`.
29-
- **Filesystem Timestamps:** Hide from the Blue Team by reverting the access/modify timestamps of files back to how it was using the [`GET`](#usage) command.
8+
- Integration with Razorpay payment gateway.
9+
- Support for recurring payments.
10+
- API endpoints for handling various payment operations
11+
- Integration with Razorpay payment gateway
12+
- PostgreSQL as the database
3013

3114
## Installation
32-
15+
1. Clone the repository
3316
```
34-
$ curl -L https://github.com/mufeedvh/moonwalk/releases/download/v1.0.0/moonwalk_linux -o moonwalk
17+
https://github.com/Muhammad-Shafaf123/flask.git
3518
```
36-
37-
(`AMD x86-64`)
38-
39-
**OR**
40-
41-
Download the executable from [**Releases**](https://github.com/mufeedvh/moonwalk/releases) OR Install with `cargo`:
42-
43-
$ cargo install --git https://github.com/mufeedvh/moonwalk.git
44-
45-
[Install Rust/Cargo](https://rust-lang.org/tools/install)
46-
47-
## Build From Source
48-
49-
**Prerequisites:**
50-
51-
* [Git](https://git-scm.org/downloads)
52-
* [Rust](https://rust-lang.org/tools/install)
53-
* Cargo (Automatically installed when installing Rust)
54-
* A C linker (Only for Linux, generally comes pre-installed)
55-
19+
2. Install the dependencies
5620
```
57-
$ git clone https://github.com/mufeedvh/moonwalk.git
58-
$ cd moonwalk/
59-
$ cargo build --release
21+
pip install -r requirements.txt
6022
```
23+
3. Set up PostgreSQL database.
24+
25+
Create a new PostgreSQL database and note down the database name, username, and password.
6126

62-
The first command clones this repository into your local machine and the last two commands enters the directory and builds the source in release mode.
63-
64-
## Usage
27+
4. Configure environment variables.
6528

66-
<div align="center">
67-
<table>
68-
<tr>
69-
<td><img height="300" width="400" src="https://user-images.githubusercontent.com/26198477/146672354-9db1e7e5-bb8a-43e5-8b64-b2d1bbea547e.png"></td>
70-
</tr>
71-
</table>
72-
</div>
7329

74-
Once you get a shell into the target Unix machine, start a moonwalk session by running this command:
75-
76-
$ moonwalk start
77-
78-
While you're doing recon/exploitation and messing with any files, get the `touch` timestamp command of a file beforehand to revert it back after you've accessed/modified it:
30+
Copy the `.env.sample` file to create your `.env` file:
31+
```
32+
cp .env.sample .env
33+
```
7934

80-
$ moonwalk get ~/.bash_history
81-
82-
Post-exploitation, clear your traces and close the session with this command:
35+
Edit the .env file with your configuration.
8336

84-
$ moonwalk finish
85-
86-
That's it!
37+
5. Initialize the database
38+
```
39+
flask db upgrade
40+
```
41+
6. Run the application
42+
```
43+
flask --app app.py run
44+
```
8745

8846
## Contribution
8947

@@ -95,7 +53,4 @@ Ways to contribute:
9553
- Help me document the code
9654
- Spread the word
9755
- Find something I missed which leaves any trace!
98-
99-
## License
100-
101-
Licensed under the MIT License, see <a href="https://github.com/mufeedvh/moonwalk/blob/master/LICENSE">LICENSE</a> for more information. -->
56+

docker-compose.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

templates/login.html

Lines changed: 0 additions & 30 deletions
This file was deleted.

templates/register.html

Lines changed: 0 additions & 30 deletions
This file was deleted.

utils/__init__.py

Whitespace-only changes.

utils/database.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)