Saravanan666/pypi-org huggingface dataset:
Package: reverseshellclient
Reverse shell client for unbureaucratic server/client connections with file transfer / screenshotspip install reverseshellclientTested against Windows 10 / Python 3.10 / AnacondaConnect to the server at the specified IP address and port, and perform a reverse shell client-server communication.
To install the server:https://pypi.org/project/reverseshellserver/Parameters:
ipaddress (str): The IP address of the server to connect to.
port (int): The port number of the server to connect to.
byte_len (int, optional): The maximum size of each data chunk (in bytes) used for communication with the server.
command_putfile (str, optional): The command prefix used to indicate a request from the server to send a file to the client.
command_getfile (str, optional): The command prefix used to indicate a request from the server to receive a file from the client.
command_screenshot (str, optional): The command that, when sent by the server, requests the client to take a screenshot and send it back as an image file.
command_getcwd (str, optional): The command that, when sent by the server, requests the client to send the current working directory path.
command_putfile_sep (bytes, optional): The separator used to split the 'putfile' command and the filename along with the file content.
command_start (bytes, optional): The marker used to indicate the start of a command transmission.
command_end (bytes, optional): The marker used to indicate the end of a command transmission.
before_stdout (bytes, optional): Bytes to prepend before the standard output of the executed command in the response to the server.
before_stderr (bytes, optional): Bytes to prepend before the standard error of the executed command in the response to the server.Note:
- This function connects to the server specified by 'ipaddress' and 'port'.
- It performs a continuous loop of client-server communication until interrupted.
- The 'before_stdout' and 'before_stderr' parameters are used to format the response to the server when executing shell commands.
- The 'command_putfile', 'command_getfile', 'command_screenshot', and 'command_getcwd' prefixes are used to indicate specific actions from the server.
- The 'command_putfile_sep' is used to split the 'putfile' command and the filename along with the file content.
- 'command_start' and 'command_end' are used to wrap the encoded command for large data transmissions.r"""from reverseshellclient import connect_to_serverconnect_to_server(ipaddress="171.181.217.19",port=12345,byte_len=32768,command_putfile="putfile",command_getfile="getfile",command_screenshot="screenshot",command_getcwd="getcwd",command_putfile_sep=b"FILESEP",command_start=b"START_START_START",command_end=b"END_END_END",before_stdout=b"stdout:\nxxxxxxxxxxxxxxxxxx\n",before_stderr=b"\nxxxxxxxxxxxxxxxxxx\nstderr:\n",)
Package: reverseshellserver
Reverse shell server for unbureaucratic server/client connections with file transfer / screenshotspip install reverseshellserverTested against Windows 10 / Python 3.10 / AnacondaShell Server: A simple server-side application that allows multiple clients to connect, execute shell-like commands,
taking screenshots, and exchange files over a network using sockets.To install the client:https://pypi.org/project/reverseshellclient/This server application implements a basic command shell that listens for client connections, executes user commands,
and responds to the client with appropriate outputs or actions.
Clients can connect to the server using a TCP/IP socketThe server and client communicate using a custom command encoding format to handle large data transmissions.
The server can send data to the client, and the client can send data to the server.Usage:Instantiate the ShellServer class with desired configurations (port, buffer size, commands, etc.).Start the server using thedo_actions()method, which listens for incoming client connections and allows communication with clients.Clients can connect to the server using a TCP/IP socket.Note:The server can handle multiple clients simultaneously through multi-threading.When a client sends the 'quit' command, the client remains connected.When a client sends the 'exit' command, the client is disconnected from the server.The server supports the 'putfile' and 'getfile' commands to send and receive files between the server and clients.Screenshots can be taken using command_screenshotfromreverseshellserverimportShellServerse=ShellServer(port=12345,listen=5,byte_len=32768,command_quit="quit",command_disconnect="disconnect",command_exit="exit",command_putfile="putfile",command_getfile="getfile",command_screenshot="screenshot",command_getcwd="getcwd",command_putfile_sep=b"FILESEP",command_start=b"START_START_START",command_end=b"END_END_END",)se.do_actions()
Package: reverse-shell-tool
RST | Reverse Shell ToolDescriptionReverse Shell Tool by Mustansir Godhrawala. I created this tool to make the reverse shell process easier, rather than having to open pentest monkey's reverse shell cheatsheet and editing out the IP and PORT, the script will choose a random port and grab your IP and put it into your clipboard.Heck we're even giving you options for listeners, you can use netcat or pwncat by Caleb Stewart and John Hammond for better post exploitation.We'll create the payload and put it in your clipboard, and start the listener on our own too. All so you can spend your time pentesting rather than having to type quad 4 or 1234 again and again.Run as sudo only.Why use RST?Dudemaking reverse shells is easy as  f**k I mean I could go wherever I want copy the reverse shell..... aaahahahahaDon't you see you have to go somewhere and copy shit and check the ip and what if you aren't pentesting with a vpn aaaaaaaaahLet's take a look at a few scenarios and exactly how powerful reverse-shell-tool is....Install rst on my linux box?pip3installreverse-shell-toolVerify installation.rst-vScenarios:Python reverse shell with pwncat listener using vpn ip?rst -i v --lang py -l pwnBreakdown:'-i' Specifies vpn ip'--lang' Specifies the language as py for valid shortforms see full documentation.'-l' Specifies the listener as pwncatNetcat reverse shell for an openbsd box with netcat listener using local ip?rst -i l --lang ncBreakdown:'-i' Specifies the local ip, valid shortforms as l,v,n for local, vpn and ngrok respectively.'--lang' Specifies the language as netcat, for valid shortforms see full documentation.'-l' Specifies the default as netcat so need to specify.Wanna do use case no 2 but have no vpn or local ip use? Use ngrok with the pyngrok library automate it with rst.rst -i n --lang nc -nBreakdown:'-i' Specifies the ngrok ip, valid shortforms as l,v,n for local, vpn and ngrok respectively.'--lang' Specifies the language as netcat, for valid shortforms see full documentation.'-l' Specifies the default as netcat so need to specify.'-n' Activates the ngrok library and does a one time installation of the binary.Source installClone the repo.gitclonehttps://github.com/mustansirgodhrawala/rst.gitChange directory into repocdrstRun setup.py installpython3setup.pyinstall(Running rst in a python virtual env is recommended)DocumentationFor in-depth documentation on how the tool works and advanced usage you can find information atDocumentation.
Package: reverse-ssh-manager
Reverse-ssh-manager==================Reverse-ssh-manager allows to manage reverse ssh connections through a webapplication.It also provide a Dockerfile to easily run Reverse-ssh-manager in a dockercontainer.Install-------You can install `reverse-ssh-manager` in a virtualenv (with `virtualenvwrapper`and `pip`)::$ mkvirtualenv reverse-ssh-manager(reverse-ssh-manager) $ pip install reverse-ssh-managerOr if you want to contribute some patches to `reverse-ssh-manager`::$ git clone git@github.com:bbinet/reverse-ssh-manager.git$ cd reverse-ssh-manager/$ mkvirtualenv reverse-ssh-manager(reverse-ssh-manager) $ python setup.py developThen, do the following steps::(reverse-ssh-manager) $ pip install nodeenv(reverse-ssh-manager) $ nodeenv -p --prebuilt(reverse-ssh-manager) $ npm install -g bower gulp(reverse-ssh-manager) $ npm install(reverse-ssh-manager) $ bower install(reverse-ssh-manager) $ gulpConfigure---------Create a configuration file that looks like::$ cat path/to/config.cfg[bottle]host = 0.0.0.0port = 8080debug = trueNote that the `[bottle]` section is optional, the defaults are::[bottle]host = localhostport = 8888server = wsgirefdebug = falseRun---Run the reverse-ssh-manager server by running the following command::(reverse-ssh-manager) $ reverse-ssh-manager path/to/config.cfgThen visit http://localhost:8888/, it should display a web interface to managereverse ssh tunnels.Release-------To make a new release, do the following steps::(reverse-ssh-manager) $ npm install(reverse-ssh-manager) $ bower install(reverse-ssh-manager) $ gulp(reverse-ssh-manager) $ deactivate$ vi setup.py  # bump version$ git add setup.py$ git commit -m "bump version to X.X.X"$ git tag vX.X.X$ python setup.py sdist bdist_wheel upload$ git push --tagsDocker------Build~~~~~To create the image `bbinet/rsm`, execute the following command::docker build -t bbinet/rsm .You can now push the new image to the public registry::docker push bbinet/rsmRun~~~Then, when starting your rsm container, you will want to bind ports `22` and`80` from the rsm container to a host external port.You also need to provide a read-only `authorized_keys` file that will be use toallow some users to create ssh tunnels using their public ssh key.Note that psutil won't be able to get pids of running ssh connection unless youspecify option `--cap-add SYS_PTRACE` with docker run.For example:$ docker pull bbinet/rsm$ docker run --name rsm \-v authorized_keys:/config/authorized_keys:ro \-p 22:22 \--cap-add SYS_PTRACE \bbinet/rsm
Package: reversestem
Reverse Stemming (reversestem)Stemming is the technique or method of reducing words with similar meaning into their “stem” or “root” form.Reverse stemming takes a “stem” or “root” form and returns all the words that have this root as a basis.Usagefromreversestemimportunstemunstem('aggreg')outputs the stems grouped by lemma{"aggregability":[],"aggregable":[],"aggregant":["aggregants"],"aggregate":["aggregated","aggregately","aggregateness"],"aggregating":[],"aggregation":["aggregational"],"aggregative":["aggregatives","aggregatively","aggregativeness"],"aggregativity":[],"aggregator":[]}Or a flat list can be produced like thisunstem('aggreg',flatten=True)and this outputs a simple list["aggregativeness","aggregational","aggregability","aggregateness","aggregativity","aggregatively","aggregatives","aggregating","aggregation","aggregately","aggregative","aggregated","aggregable","aggregants","aggregator","aggregate","aggregant"]
Package: reverse-tb
reverse_tbreverse_tb is a jupyter notebook magic that reverses the order of the
traceback, making it easier to see the most relevant information at
the top of the cell output.Installpipinstallreverse_tbHow to usefromreverse_tb.coreimportreverse_tbdeffoo():returnbar()defbar():returnbaz()defbaz():try:qux()exceptKeyErrorase:raiseExceptionreturnqux()defqux():d={}returnd['key']foo()---------------------------------------------------------------------------KeyErrorTraceback(mostrecentcalllast)CellIn[2],line9,inbaz()8try:---->9qux()10exceptKeyErrorase:CellIn[2],line16,inqux()15d={}--->16returnd['key']KeyError:'key'Duringhandlingoftheaboveexception,anotherexceptionoccurred:ExceptionTraceback(mostrecentcalllast)CellIn[3],line1---->1foo()CellIn[2],line2,infoo()1deffoo():---->2returnbar()CellIn[2],line5,inbar()4defbar():---->5returnbaz()CellIn[2],line11,inbaz()9qux()10exceptKeyErrorase:--->11raiseException12returnqux()Exception:%%reverse_tbfoo()---------------------------------------------------------------------------KeyErrorTraceback(lastcallfirst)KeyError:'key'CellIn[2],line16,inqux()15d={}--->16returnd['key']d={}CellIn[2],line9,inbaz()8try:---->9qux()10exceptKeyErrorase:Duringhandlingoftheaboveexception,anotherexceptionoccurred:ExceptionTraceback(lastcallfirst)Exception:CellIn[2],line11,inbaz()9qux()10exceptKeyErrorase:--->11raiseException12returnqux()CellIn[2],line5,inbar()4defbar():---->5returnbaz()CellIn[2],line2,infoo()1deffoo():---->2returnbar()CellIn[4],line1---->1foo()fromreverse_tb.onimport*foo()---------------------------------------------------------------------------KeyErrorTraceback(lastcallfirst)KeyError:'key'CellIn[2],line16,inqux()15d={}--->16returnd['key']d={}CellIn[2],line9,inbaz()8try:---->9qux()10exceptKeyErrorase:Duringhandlingoftheaboveexception,anotherexceptionoccurred:ExceptionTraceback(lastcallfirst)Exception:CellIn[2],line11,inbaz()9qux()10exceptKeyErrorase:--->11raiseException12returnqux()CellIn[2],line5,inbar()4defbar():---->5returnbaz()CellIn[2],line2,infoo()1deffoo():---->2returnbar()CellIn[4],line1---->1foo()reverse_tb_off()foo()---------------------------------------------------------------------------KeyErrorTraceback(mostrecentcalllast)CellIn[2],line9,inbaz()8try:---->9qux()10exceptKeyErrorase:CellIn[2],line16,inqux()15d={}--->16returnd['key']KeyError:'key'Duringhandlingoftheaboveexception,anotherexceptionoccurred:ExceptionTraceback(mostrecentcalllast)CellIn[3],line1---->1foo()CellIn[2],line2,infoo()1deffoo():---->2returnbar()CellIn[2],line5,inbar()4defbar():---->5returnbaz()CellIn[2],line11,inbaz()9qux()10exceptKeyErrorase:--->11raiseException12returnqux()Exception:
Package: reverse-whois
OverviewThe client library forReverse Whois APIin Python language.The minimum Python version is 3.6.Installationpipinstallreverse-whoisExamplesFull API documentation availablehereCreate a new clientfromreversewhoisimport*client=Client('Your API key')Make basic requests# Get the number of domains.terms={'include':['blog']}result=client.preview(basic_terms=terms)print(result.domains_count)# Get raw API responseraw_result=client.raw_data(basic_terms=terms,response_format=Client.XML_FORMAT,mode=Client.PREVIEW_MODE)# Get list of registered/dropped domains (up to 10,000)result=client.purchase(basic_terms=terms)Advanced usageExtra request parametersadvanced_terms=[{'field':Fields.domain_name,'term':"whoisxmlapi.*"}]updated_date=datetime.date(2020,1,1)result=client.purchase(advanced_terms=advanced_terms,updated_date_from=updated_date,include_audit_dates=True,punycode=False)#Next pageresponse=client.purchase(basic_terms=terms)ifresponse.has_next():next_page=client.next_page(current_page=response,basic_terms=terms)#Iteratingforpageinclient.iterate_pages(basic_terms=terms):print(page)Changelog1.0.0 (2021-05-25)First release
Package: reversibledict
ReversibleDict*~~~ A dictionary being able to perform a reverse lookup ~~~*How does it work?I calculate a hash of the value (or a hash of the value's__str__representation for unhashable types - i.e.lists) and internally store the reverse mapping, so no linear search through the values if you thought about that.What if there is more than 1 value for a key?I simply return alistof all keys that matched.Usage>>> from reversibledict import ReversibleDict
>>> r = ReversibleDict()
>>> r['a'] = 1
>>> r['b'] = 2
>>> r['c'] = 1
>>> r
{'a': 1, 'c': 1, 'b': 2}
>>> r.key_for_value(2)
'b'
>>> r.key_for_value(1)
['a', 'c']
>>> r.key_for_value(666) == None
TrueIt can also deal with unhashable types such aslists:>>> from reversibledict import ReversibleDict
>>> r = ReversibleDict()
>>> r['a'] = [1,2,3]
>>> r['b'] = [3,2,1]
>>> r['c'] = [1]
>>> r['d'] = [1,2,3]
>>> r
{'a': [1, 2, 3], 'c': [1], 'b': [3, 2, 1], 'd': [1, 2, 3]}
>>> r.key_for_value([1,2,3])
['a', 'd']
>>> r.key_for_value([3,2,1])
'b'
>>> r.key_for_value([]) == None
TrueIf you don't like the inconsistency that it is returning alistif there is more than 1 matching value,Noneif there is no matching value and a scalar if there is exactly 1 matching value then you can do the following:>>> from reversibledict import ReversibleDict
>>> r = ReversibleDict(reverse_as_list=True)
>>> r['a'] = 1
>>> r['b'] = 2
>>> r['c'] = 1
>>> r
{'a': 1, 'c': 1, 'b': 2}
>>> r.key_for_value(2)
['b']
>>> r.key_for_value(1)
['a', 'c']
>>> r.key_for_value(666)
[]
Package: reversion
Reversion is a command line tool to easily update version numbers in project
files.To install it:pip install reversionPython 3 is required.To use it, create a config filereversion.tomlin the root directory of your
project. It should look like this:currentversion = "0.1"

[[place]]
file = "reversion/__init__.py"
# linematch is a regex; use single quotes so you don't have to escape backslash
line-regex = '__version__'

[[place]]
file = "docs/conf.py"
line-regex = 'release'Each[[place]]table indicates where a copy of the version number is found.Then run:reversion +0.1To check the config file and version number places without changing anything, run:reversion --check
Package: reversion2
UNSTABLE: We have tested this project locally but by now never used it in production.FeaturesThese are the core features of Django-CMS Reversion2Create versions of pagesCreate PageVersion: Revisions for page drafts in given language (only if changes were made seedirtyflag)View differences between versions of a pageCompare the current page with back-up versions.Revert a page to a versionRevert to PageVersion: Reverting to any previous revision of pageCreate a version for all ‘unversioned’ pagesTrash bin: Moves deleted pages to a hidden PageRoot before really deleting itMultiple editorsExperimental feature.All page version can be edited.
Work on the hidden drafts of PageVersion in order to realize multi-editor workflow??Trash bin for pagesTrash bin: Moves deleted pages to a hidden PageRoot before really deleting itPermission systemThis plugin integrates with the django-cms permissions.ToDosTo be implemented (see Issues on Githubhttps://github.com/Blueshoe/djangocms-reversion2/issues)Auto-Revisions when reverting from unsaved draftsIntegration withdivio/djangocms_moderationonce they publish a stable releaseBuild a multi-editor djangocms_toolbar and disable buttons that make unwanted changesDisclaimerThis is an experimental plugin.No software is perfect, everyone’s code sucks. Feel free to suggest, criticize and/or contribute.
Package: revers.py
Extract DB structure intoStormclasses set.Usage$ mkdir models
$ revers.py postgres://user:password@host/database
$ ls models
__db__.py  __init__.py  public.py  <schemes>.pyLegalRevERS distributed under terms ofGNU GPL v.3.
Copyright 2008 - presentVsevolod Balashov.LinksSource code ofrevers.py.
Arch LinuxPKGBUILD.
Package: revert-api
Revert Python LibraryThe Revert Python Library provides convenient access to the Revert API from applications written in Python.Installationpipinstall--upgraderevert-apiUsagefromrevert.clientimportRevertclient=Revert()Async Clientfromrevert.clientimportAsyncRevertclient=AsyncRevert()Beta StatusThis SDK is in beta, and there may be breaking changes between versions without a major
version update. Therefore, we recommend pinning the package version to a specific version.
This way, you can install the same version each time without breaking changes.ContributingWhile we value open-source contributions to this SDK, this library is generated programmatically.
Additions made directly to this library would have to be moved over to our generation code,
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
an issue first to discuss with us!On the other hand, contributions to the README are always very welcome!
Package: review
Usage:python -m review [options]Changes:1510:a0a624f - 2015-10-14Rietveld moved to GitHub, syncing to a0a624fRietveld Home Page:http://codereview.appspot.com/Rietveld Development:https://github.com/rietveld-codereview/rietveldThis script:http://bitbucket.org/techtonik/python-review/Discussions:http://groups.google.com/group/codereview-discuss/
Package: reviewboard-ipynb
Reviewboard Extension for review jupyter notebookThis extension renders jupyter notebook so that it is easier to code review jupyter notebook.The extension use nbconvert locally for render, there's no need to convert the notebook to different format by yourself.The template kept the javascript definition, namely, if your jupyter notebook is using external library (plotly, MathJax), it will still show it for you.Limitiation:Due to the limitation of reviewboard plugin, this only render the file attachementTODO:Add testsBetter support for diff (probably use nbdime) instead of the current built-in differ.Screenshot:render ipynbcommentdiff
Package: reviewbot-extension
Review Botis a tool for automating tasks on code uploaded toReview
Board, and posting the results as a code review. Review Bot was built to
automate the execution of static analysis tools.The Review Bot extension integrates Review Board with one or moreReview Bot workers. It manages the configuration rules which tell Review
Bot when and how to review code, and schedules new review requests for review.Supported Code Checking ToolsThe Review Bot extension can perform automated code reviews using any of the
following tools:checkstyle- A static analysis tool that provides a variety of checkers for Java codeCppcheck- A static analysis tool for C/C++ codeCppLint- Checks C++ code against Google’s style guideflake8- A wrapper around several Python code quality toolsPMD- A static analysis tool that provides checkers for many languagespycodestyle- A code style checker for Python codepydocstyle- A static analysis tool for Python docstring conventionspyflakes- A static analysis tool for Python codeSee the links above for installation and usage instructions.Installing the Review Bot ExtensionThe extension is provided through thereviewbot-extensionPython package.See thedocumentationto learn how to install and configure the worker and
the rest of Review Bot.Getting SupportWe can help you get going with Review Bot, and diagnose any issues that may
come up. There are three levels of support: Public Community Support, Private
Basic Support, and Private Premium Support.The public community support is available on our maindiscussion list. We
generally respond to requests within a couple of days. This support works well
for general, non-urgent questions that don’t need to expose confidential
information.Private Support plans are available through support contracts. We offer
same-day support options, handled confidentially over e-mail or our support
tracker, and can assist with a wide range of requests.See yoursupport optionsfor more information.Our Happy UsersThere are thousands of companies and organizations using Review Board today.
We respect the privacy of our users, but some of them have asked to feature them
on theHappy Users page.If you’re using Review Board, and you’re a happy user,let us know!Reporting BugsHit a bug? Let us know byfiling a bug report.You can also look through theexisting bug reportsto see if anyone
else has already filed the bug.ContributingAre you a developer? Do you want to help build new tools or features for
Review Bot? Great! Let’s help you get started.First off, read through ourContributor Guide.We accept patches to Review Bot, Review Board, RBTools, and other related
projects onreviews.reviewboard.org.
(Please note that wedo notaccept pull requests.)Got any questions about anything related to Review Board and development? Head
on over to ourdevelopment discussion list.Related ProjectsReview Board-
Our extensible, open source code review tool.RBTools-
The RBTools command line suite.RB Gateway-
Manages Git repositories, providing a full API enabling all of Review Board’s
feaures.