GithubHelp home page GithubHelp logo

hulloitskai / veritaserum Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 2.0 45 KB

Recover unsends (deleted messages) in Messenger conversations.

License: MIT License

Dockerfile 2.84% Python 97.16%
python messenger unsend bot

veritaserum's Introduction

veritaserum

The truth, and nothing but the truth.

veritaserum recover unsends (deleted messages) in Messenger conversations, and sends them to your private Messenger inbox, so that you can catch the sus takebacks in your groupchats. Text, image, and video unsends are all recoverable.



Usage

Running locally, with Python 3.7 (and Pipenv):

$ git clone [email protected]:stevenxie/veritaserum
$ cd veritaserum

$ cat <<EOF > .env
MESSENGER_USERNAME=...
MESSENGER_PASSWORD=...
VERITASERUM_DEBUG=1
EOF

$ pipenv run python veritaserum

Or, in a container with Docker:

$ docker run -it --rm \
    -e MESSENGER_USERNAME=... \
    -e MESSENGER_PASSWORD=... \
    -e VERITASERUM_DEBUG=1 \
    stevenxie/veritaserum

Sessions

If you're running veritaserum as a daemon (a long-running process) on a remote server, consider using a stored session. This will allow you to bypass having to enter 2FA information whenever veritaserum starts.

To create a session dump, use the tool ./util/dumpsesh.py:

$ pipenv run python ./util/dumpsesh.py
# enter 2FA details when prompted

Then, encode the outputed JSON to base64:

$ echo '{ ... }' | base64

eyJoZXkiLCAidGhpcyBpcyBhIGR1bW15IGZpbGUgbG1hbyJ9...

And set it as the value for the environment variable MESSENGER_SESSION.

veritaserum's People

Contributors

hulloitskai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

bahmike fbs11k

veritaserum's Issues

Does veritaserum mark messages as seen?

Messages seen by ******** in ***************** (GROUP)

I know that this is probably just fbchat logging a seen event by some person in a group, but wanted to make sure that veritaserum doesn't mark messages as seen while operating.

Unsupported operand type(s) for +

File "veritaserum/reporter.py", line 60, in __clean if now > (timestamp + self.maxage): TypeError: unsupported operand type(s) for +: 'datetime.datetime' and 'NoneType'

This occurs in the clean section of the code which prevents cached messages from being deleted. The rest of the script works as intended.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.