pastepwn icon indicating copy to clipboard operation
pastepwn copied to clipboard

Implement multiple example files

Open d-Rickyy-b opened this issue 5 years ago • 11 comments

Currently there is only one example file. Users might not fully understand the capability of the tool and might get scared, because it involves setting up a database.

At least one other example file without the need of a database and maybe one with the usage of sqlite could help them.

d-Rickyy-b avatar Feb 12 '20 20:02 d-Rickyy-b

Hi, I'm interested in contributing. Could I help to solver this?

AR4Z avatar Mar 13 '20 13:03 AR4Z

Hi @AR4Z - I'd be very happy about any help. Feel free to provide some different example files using different analyzers/actions, maybe also explaining the feature of combining analyzers:

https://github.com/d-Rickyy-b/pastepwn/blob/master/pastepwn/analyzers/basicanalyzer.py#L56-L65

One can use (analyzer1 or analyzer2) to get a new analyzer object that matches when any of both analyzers match.

You can also show how a few of the more useful actions can be used.

If you have any questions, feel free to contact me.

d-Rickyy-b avatar Mar 15 '20 12:03 d-Rickyy-b

Hi, is it still open?

Ni3dzwi3dz avatar Apr 07 '21 13:04 Ni3dzwi3dz

Hi @Ni3dzwi3dz and sorry. I totally missed your message. Yes it's still open. We currently have only a single example file and we could use a few others as well.

d-Rickyy-b avatar Apr 12 '21 07:04 d-Rickyy-b

Hi, i am interested in this project. I have started working on it. I will try to implement new examples.

AnudeepGunukula avatar Jul 19 '21 19:07 AnudeepGunukula

Hi, is it still open?

franknkurunziza avatar Oct 29 '21 15:10 franknkurunziza

Can an example file be similar to the existing one, but instead provides a pre-existing database file with the code? This way, the user doesn't have to create/setup a db.

dishb-old avatar Apr 14 '23 18:04 dishb-old

Hey, I am interested to contribute for this project, please guide me as I am new to this

Zhreyu avatar Apr 20 '23 17:04 Zhreyu

Hi @dishb, @Zhreyu,

thank you for your interest. There are no real requirements to this issue besides creativity. The tool is built in a very simple way.

You instantiate the Pastepwn class, you create some analyzers, which scan the pastes. Then you create some actions which are supplied to the analyzers so they will be executed when a paste matches the analyzer's "requirements".

The current example file does a good job of detailing this. Now a few simpler ones would be appreciated. Maybe something like: log_example.py which only logs each paste to the console stdout. Or a json_example.py which stores every paste as json on the disk. Then maybe some more interesting combinations of e.g. storing pastes containing credit card data on disk etc.

Feel free to check the list of implemented analyzers and actions.

d-Rickyy-b avatar Apr 24 '23 16:04 d-Rickyy-b