Saravanan666/pypi-org huggingface dataset:
Package: yarabuilder
Python module to create Yara rules.Installationyarabuilder requires Python 3+:pip install yarabuilderUsageCreating and printing a rule>>>importyarabuilder>>>importpprint>>>>>>yara_builder=yarabuilder.YaraBuilder()>>>>>>yara_builder.create_rule("my_rule")>>>yara_builder.add_meta("my_rule","description","Generated by yarabuilder")>>>yara_builder.add_import("my_rule","pe")>>>yara_builder.add_tag("my_rule","yarabuilder")>>>yara_builder.add_text_string("my_rule","Anonymous string")>>>yara_builder.add_text_string("my_rule","Named string",name="str",modifiers=["ascii","wide"])>>>yara_builder.add_string_comment("my_rule","str","example comment")>>>yara_builder.add_hex_string("my_rule","DE AD BE EF")>>>yara_builder.add_regex_string("my_rule","regex[0-9]{2}")>>>yara_builder.add_regex_string("my_rule","/regex_with_flags/i")>>>yara_builder.add_condition("my_rule","any of them")>>>>>>rule=yara_builder.build_rules()>>>print(rule)import"pe"rulemy_rule:yarabuilder{meta:description="Generated by yarabuilder"strings:$="Anonymous string"$str="Named string"asciiwide//examplecomment$={DEADBEEF}$=/regex[0-9]{2}/$=/regex_with_flags/icondition:anyofthem}>>>Converting a YaraBuilder object to lists and dictionaries (and back again)>>>dict_yara_rules=yara_builder.get_yara_rules()>>>pprint.pprint(dict_yara_rules)[{'condition':'any of them','imports':['pe'],'meta':OrderedDict([('description',[{'meta_type':'text','name':'description','position':0,'value':'Generated by yarabuilder'}])]),'rule_name':'my_rule','strings':OrderedDict([('@anon0',{'is_anonymous':True,'name':'@anon0','str_type':'text','value':'Anonymous string'}),('str',{'comment':{'inline':'example comment'},'is_anonymous':False,'modifiers':['ascii','wide'],'name':'str','str_type':'text','value':'Named string'}),('@anon1',{'is_anonymous':True,'name':'@anon1','str_type':'hex','value':'DE AD BE EF'}),('@anon2',{'is_anonymous':True,'name':'@anon2','str_type':'regex','value':'regex[0-9]{2}'}),('@anon3',{'is_anonymous':True,'name':'@anon3','regex_flags':'i','str_type':'regex','value':'regex_with_flags'})]),'tags':['yarabuilder']}]>>>>>>new_builder=yarabuilder.YaraBuilder()>>>new_builder.set_yara_rules(dict_yara_rules)>>>TODOMore logging in the classesAdd optional validation for building YARA rules (e.g. checking imports are valid, and more longer term check the condition is valid)
Package: yara-helper
yara-helperA tool to parse Yara rules and help you edit Yara rules in your programDemoLoad and dump single rule>>>rule_text="""rule person... {...     meta:...         name = "James"...         age = 18...         is_male = true...     strings:...         say1 = "Hi"...         say2 = "Nice"...     condition:...         all of them... }""">>>info=RuleInfo.load(rule_text)>>>info.meta['name']'"James"'>>>info.strings['say1']'"Hi"'>>>info.meta['age']=22>>>info.dump()'rule person\n{\n    meta:\n        name = "James"\n        age = 22\n        is_male = true\n    strings:\n        say1 = "Hi"\n        say2 = "Nice"\n    condition:\n        all of them\n}'Load and dump multiple rules>>>RuleInfo.load_multiple(yara_text)# return List[RuleInfo]>>>RuleInfo.dump_multiple(list_of_ruleinfo)# return List[str]
Package: yara-language-server
An implementation of the Language Server Protocol for the YARA pattern matching languagehttps://microsoft.github.io/language-server-protocol/Home-page:https://ch0mler.github.io/yara-language-server/Author: ch0mler
Author-email:thomas@infosec-intern.comLicense: Apache 2.0
Download-URL:https://github.com/ch0mler/yara-language-serverDescription: # YARA Language Server![build_badge](https://github.com/ch0mler/yara-language-server/workflows/build/badge.svg)An implementation of the Language Server Protocol for the YARA pattern-matching language.## Features### Code CompletionProvides completion suggestions for standard YARA modules, includingpe,elf,math, and all the others available in the official documentation:http://yara.readthedocs.io/en/latest/modules.html### DiagnosticsThe extension will compile workspace rules in the background and return errors and warnings as you type.### Definition Provider and PeekingAllows peeking and Ctrl+clicking to jump to a rule definition. This applies to both rule names and variables.### Formatter ProviderReformats YARA rules using the [plyara](https://github.com/plyara/plyara) library.### Hover ProviderAllows viewing a variable’s value by hovering over it in the condition rule. Does not work for wildcards.### Reference ProviderShows the locations of a given symbol (rule name, variable, constant, etc.).### Rename ProviderAllows user to rename a symbol within a rule without manually changing every instance of that symbol.## Requirements
Python 3.7 or higher is required due to the heavy use of theasynciolibrary and specific APIs available only since v3.7.Ifplyarais installed, documents can be automatically re-formatted according to the package’srebuild_yara_ruleutility.In addition,yara-pythonshould be installed. If it is not installed, Diagnostics and Compile commands will not be available.Note:If you are on Windows, you might have to set the$INCLUDEenvironment variable before building this environment, so that whenyara-pythonis compiled for your local system, Python knows where to find the appropriate DLLs.
On Windows 10, this would probably look like:`sh setINCLUDE="C:\ProgramFiles(x86)\WindowsKits\10\Include" && python3-mpip install-rrequirements.txt `## Problems?
If you encounter an issue, please feel free to create an issue or pull request!## YARA Documentation
* [YARA Documentation](https://yara.readthedocs.io/)## Language Server Protocol
* [JSON RPC Specification](https://www.jsonrpc.org/specification)
* [Language Server Protocol Specification](https://microsoft.github.io/language-server-protocol/specification)
* [VSCode Example Language Server](https://code.visualstudio.com/docs/extensions/example-language-server)Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: Apache Software License
Provides: yarals
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Package: yara-mail
yaramailyaramailis a Python package and command line utility for scanning emails withYARA rules. It is ideal for automated triage of phishing reports.CLI DemoFeaturesScans all parts of an email via API or CLIHeadersRemoves header indents by default for consistent scanningPlain text and HTML body contentConverts body content to Markdown by default for consistent scanningAttachmentsRaw file contentEmails attached to emailsPDF document textZIP file contents, including nested ZIP filesUses message body content as a list of possible ZIP passwordsCustomizable list of passwords to use when attempting to scan encrypted ZIP filesProvides a built-in methodology for categorizing emailsParsesAuthentication-Resultsheaders
Package: yaramod
yaramodyaramodis a library that provides parsing ofYARArules into AST and a C++ programming interface to build new YARA rulesets. This project is not associated with the YARA project.yaramodalso comes with Python bindings and this repository should be fully compatible with installation usingpip.User DocumentationYou can find our documentation onRead the Docs.API DocumentationYou can generate the API documentation by yourself. Pass-DYARAMOD_DOCS=ONtocmakeand runmake doc.LicenseCopyright (c) 2017 Avast Software, licensed under the MIT license. See theLICENSEfile for more details.yaramoduses third-party libraries or other resources listed, along with their licenses, in theLICENSE-THIRD-PARTYfile.ContributingSeeRetDec contribution guidelines.
Package: yaraprocessor
YARAis an awesome tool.
It’s aimed at helping malware researchers to identify and classify malware
samples. With YARA you can create descriptions of malware families based
on textual or binary patterns contained on samples of those families.However, sometimes the data you are analyzing needs some manipulation in
order to achieve the best results. Yaraprocessor allows you to scan data
streams in few unique ways. It supports scanning data streams in discrete
chunks, or buffers. These chunks can overlap or be completely disjoint
depending on the ‘processing_mode’ selected.Yaraprocessor was originally written forChopshop. Combined with Chopshop, it
allows for dynamic scanning of payloads plucked from network packet capture.
Historically, signature based tools operate over the entire PCAP file. With
Chopshop and Yaraprocessor, YARA can be ran against individual packet payloads
as well as a concatenation of some or all of the payloads. Ideally, this makes
writing signatures easier. Check out the Chopshop moduleyarashopto see it in action!DependenciesPython 2.7YARAYARA-python bindingsInstallationSimply clone the repository via git:$gitclonehttps://github.com/MITRECND/yaraprocessor.gitOr download the latest release from ourgithub page.Once you have the code, run the following command inside the
Yaraprocessor directory:$pythonsetup.pyinstallUsing it!While yaraprocessor was built for use withChopshop, it aims for simple
and straightforward usage and integration with other tools. Simply
import yaraprocessor, instantiate a “Processor” object, and start
analyzing data.fromyaraprocessorimportProcessor# Yara rules are passed as a list of filenamesp=Processor(['/full/path/to/rules, relative/path/to/other/rules'])# By default, the processor will operate in 'raw' mode, meaning it# will scan whatever data you give it. Note that in 'raw' mode, you# are required to call 'analyze', which will return yara matches if# found.p.data=dataresults=p.analyze()# 'analyze' returns yara matches and also stores them in 'p.results'# for convenient access.ifp.results:formatchinp.results:printmatch# When operating in other processing modes, data will be continuously# buffered and automatically processed when the buffer fills. In these# modes, you don't have to ever call 'p.analyze'; instead simply check# for results.ifp.results:formatchinp.results:printmatchContributingWe love to hear from people using our tools and code. Feel free to discuss
issues on ourissue trackerand make pull requests!
Package: yara-python
.. image::https://ci.appveyor.com/api/projects/status/gidnb9ulj3rje5s2?svg=true:target:https://ci.appveyor.com/project/plusvic/yara-pythonyara-pythonWith this library you can useYARA <https://github.com/VirusTotal/yara>_ from
your Python programs. It covers all YARA's features, from compiling, saving
and loading rules to scanning files, strings and processes.Here it goes a little example:.. code-block:: python>>> import yara
>>> rule = yara.compile(source='rule foo: bar {strings: $a = "lmn" condition: $a}')
>>> matches = rule.match(data='abcdefgjiklmnoprstuvwxyz')
>>> print(matches)
[foo]
>>> print(matches[0].rule)
foo
>>> print(matches[0].tags)
['bar']
>>> print(matches[0].strings)
[$a]
>>> print(matches[0].strings[0].identifier)
$a
>>> print(matches[0].strings[0].instances)
[lmn]
>>> print(matches[0].strings[0].instances[0].offset)
10
>>> print(matches[0].strings[0].instances[0].matched_length)
3InstallationThe easiest way of installing YARA is by usingpip:.. code-block:: bash$ pip install yara-pythonBut you can also get the source from GitHub and compile it yourself:.. code-block:: bash$ git clone --recursivehttps://github.com/VirusTotal/yara-python$ cd yara-python
$ python setup.py build
$ sudo python setup.py installNotice the--recursiveoption used withgit. This is important because
we need to download theyarasubproject containing the source code forlibyara(the core YARA library). It's also important to note that the two
methods above linklibyarastatically into yara-python. If you want to link
dynamically against a sharedlibyaralibrary use:.. code-block:: bash$ python setup.py build --dynamic-linkingFor this option to work you must build and installYARA <https://github.com/VirusTotal/yara>_ separately before installingyara-python.DocumentationFind more information about how to use yara-python athttps://yara.readthedocs.org/en/latest/yarapython.html.
Package: yara-python-and
yara-pythonWith this library you can useYARAfrom
your Python programs. It covers all YARA’s features, from compiling, saving
and loading rules to scanning files, strings and processes.Here it goes a little example:>>>importyara>>>rule=yara.compile(source='rule foo: bar {strings: $a = "lmn" condition: $a}')>>>matches=rule.match(data='abcdefgjiklmnoprstuvwxyz')>>>print(matches)[foo]>>>print(matches[0].rule)foo>>>print(matches[0].tags)['bar']>>>print(matches[0].strings)[(10L,'$a','lmn')]InstallationThe easiest way of installing YARA is by usingpip:$pipinstallyara-pythonBut you can also get the source from GitHub and compile it yourself:$gitclone--recursivehttps://github.com/VirusTotal/yara-python$cdyara-python$pythonsetup.pybuild$sudopythonsetup.pyinstallNotice the--recursiveoption used withgit. This is important because
we need to download theyarasubproject containing the source code forlibyara(the core YARA library). It’s also important to note that the two
methods above linklibyarastatically into yara-python. If you want to link
dynamically against a sharedlibyaralibrary use:$sudopythonsetup.pyinstall--dynamic-linkingFor this option to work you must build and installYARAseparately before installingyara-python.DocumentationFind more information about how to use yara-python athttps://yara.readthedocs.org/en/latest/yarapython.html.
Package: yara-python-dex
.. image::https://travis-ci.org/VirusTotal/yara-python.svg:target:https://travis-ci.org/VirusTotal/yara-python.. image::https://ci.appveyor.com/api/projects/status/gidnb9ulj3rje5s2?svg=true:target:https://ci.appveyor.com/project/plusvic/yara-pythonyara-pythonWith this library you can useYARA <https://github.com/VirusTotal/yara>_ from
your Python programs. It covers all YARA's features, from compiling, saving
and loading rules to scanning files, strings and processes.Here it goes a little example:.. code-block:: python>>> import yara
>>> rule = yara.compile(source='rule foo: bar {strings: $a = "lmn" condition: $a}')
>>> matches = rule.match(data='abcdefgjiklmnoprstuvwxyz')
>>> print(matches)
[foo]
>>> print(matches[0].rule)
foo
>>> print(matches[0].tags)
['bar']
>>> print(matches[0].strings)
[(10L, '$a', 'lmn')]InstallationThe easiest way of installing YARA is by usingpip:.. code-block:: bash$ pip install yara-pythonBut you can also get the source from GitHub and compile it yourself:.. code-block:: bash$ git clone --recursivehttps://github.com/VirusTotal/yara-python$ cd yara-python
$ python setup.py build
$ sudo python setup.py installNotice the--recursiveoption used withgit. This is important because
we need to download theyarasubproject containing the source code forlibyara(the core YARA library). It's also important to note that the two
methods above linklibyarastatically into yara-python. If you want to link
dynamically against a sharedlibyaralibrary use:.. code-block:: bash$ sudo python setup.py install --dynamic-linkingFor this option to work you must build and installYARA <https://github.com/VirusTotal/yara>_ separately before installingyara-python.DocumentationFind more information about how to use yara-python athttps://yara.readthedocs.org/en/latest/yarapython.html.
Package: yara-python-wheel
This is an alternative installation package foryara-python.
It provides pre-compiled wheels for x86, x86_64 and ARM for Linux, macOS and Windows.This is just some CI pipelines with no source modifications. It can be inspected athttps://github.com/schamper/yara-python-wheel.This package is up to date foryara-pythonversion:v4.4.0.pipinstallyara-python-wheel
Package: yaratool
# OverviewYaraTool was created to normalize yara signatures to format the signatures nicely, detect duplicates, and express a specific signature by hash (similar to how we express malware).  The hashing method in this tool is the same as the Ruby Yara-Normalize module.# Normalizing a signatureThe following snippet takes a signature, normalizes it, prints out the pieces of the rule, and provides the "Yara Normalized" hash.  The YNHash is designed to identify yara signatures.import yaratoolif __name__ == "__main__":ruletext = """rule DebuggerCheck__API : AntiDebug   DebuggerCheck   {meta:author="Some dude or dudette"weight =   1strings:$ ="IsDebuggerPresent"condition:any of them}"""yr = yaratool.YaraRule(ruletext)print yr.normalize()print "Name: %s, Tags: %s, Author: %s" % (yr.name, "&".join(yr.tags), yr.metas['author'])print "Strings: "for string in yr.strings:print "  %s" % (string)print "Condition: "for condition in yr.condition:print "  %s" % (condition)print yr.hash()Outputsrule DebuggerCheck__API : AntiDebug DebuggerCheck {meta:author = "Some dude or dudette"weight = 1strings:$ = "IsDebuggerPresent"condition:any of them}Name: DebuggerCheck__API, Tags: AntiDebug&DebuggerCheck, Author: "Some dude or dudette"Strings:$ = "IsDebuggerPresent"Condition:any of themyn01:d28d649e24c37244:d936fceffe# Detecting Duplicate RulesThe following code iterates through all the files specified on the command line and counts the number of rules and duplicate rules.  It will display the normalized versions of any duplicate rules.import yaratoolimport sysif __name__ == "__main__":count = 0duplicates = 0drf = yaratool.DuplicateDetector()for filename in sys.argv[1:]:fh = open(filename, 'r')sigrules = fh.read()fh.close()rules = yaratool.split(sigrules)for rule in rules:ynhash = rule.hash()res = drf.check(rule)if res:duplicates += 1for r in res:print r.normalize()passprint rule.normalize()printcount += len(rules)print "Count: %d, Duplicates: %d" % (count, duplicates)
Package: yarc
YARC: Yet Another Roomba ControllerThis is a Python library that allows you to control Roomba's and Create's from iRobot using the serial connection. This requires Python 3 and the pyserial library. This can run on many devices such as Raspberry Pis and regular PCs. Tested on the Create 2, some older devices may not support all operations or sensors.This implements the Open Interface specification by iRobot:http://www.irobot.com/~/media/MainSite/PDFs/About/STEM/Create/create_2_Open_Interface_Spec.pdfThis library implements every single opcode in the specification and provides every sensor in an easy-to-use system. All single sensors are available as attributes on ayarc.Roombaobject along withall_sensorswhich is anamedtupleof all of the sensors. Other groups can be obtained with thesensor()method and custom groups can be acquired withquery_list()method. Single values are returned asints orbools, bit fields are returned asIntFlagtypes, and collections of values are returned asnamedtupleinstances.This can be installed from source from the Github source or through pip:pip install yarc.Exampleimportyarc# Make the Roomba objectbot=yarc.Roomba('/dev/ttyUSB0')# Start the OI connection - must be the first callbot.start()# Switch to 'safe' mode# In this mode we can completely control the robot unless it 'senses danger'# in which case it will switch back to 'passive' mode. Danger could be# detection of a cliff, detection of a wheel drop, or charger plugged in.bot.safe()# Commandsbot.drive_distance(100)# drives 100 mm forwardbot.turn_angle(45)# rotates 45 degrees in-place...# more instructionsprint(bot.battery_charge/bot.battery_capacity)# print battery charge percentprint(bot.all_sensors)# print out all sensor data# Stop the OI connection - must be the last callbot.stop()
Package: yarc-server
yarcYet Another Remote ControlControl your desktop / laptop via mobile phone.How to:Running control server and connecting to it is very straightforward. You would
need to do the following:$ [sudo] pip install yarc-server

$ yarc

Starting control server...

Remote server running...
Scan the below code to start using remote control.

*SNIP*

Or alternatively, write the following URL on your mobile browser:
    http://192.168.1.4:xxx?wsport=xxxBasic features:Single remote will have the following features. One can switch between remotes
easily via UI.Streaming modePlay / pause actionsChange volumeChange brightnessSeek forward / backwardsChange window (Alt + Tab) - Also, let user be able to select itQWERTY keyboard to allow writing textTouchpad to control mouseAdvanced features:The remote will automatically be switched depending on the active window. For
example, in case the active window is Netflix and is playing some content,
the remote should automatically switch to movie mode.Screencast from mobile to laptop, so that one can enjoy in a bigger screenAllow adding shortcuts, for example, "Open Netflix" can be a shortcut, to
open Netflix on a single tap. Now, the way people open netflix is different.
Some may have a Netflix app installed on their device, while others may use
browser. Thus, user should be able to create with predefined event blocks, like:press(winleft) -> type("Netflix") -> press(enter)ORpress(winleft) -> type("Chrome") -> type("Netflix") -> press(enter)Gaming modeInformation about all opened windows and ability to jump to a specific
window / switch windows via mobile touch actions (like mobile's default
way to show running apps)Customize theme of the remotes. Plug and play themes from website.Allow user's to create their own themes and use it.Netflix / Prime customization - example: skip intro, etc.The remote should work even when the devices are not in same network.
For that, we need the yarc server to generate a QR code and the client
app should connect to the device over the internet.Listen to the audio from phone itself (Use-case: wired earphones can be
plugged in to mobile but the video would continue to play on the screen)
Package: yarea
YAREAYet Another Radiomic Extraction and Analysis pipelineA package to extract radiomic features from DICOM CT images.Installation$pipinstallyarea(recommended) Create new conda virtual environmentconda create -n yarea python=3.9
conda activate yarea
pip install yareaUsageyareais a tool to perform radiomic feature extraction on DICOM CT images with region of interest (ROI) segmentations as either DICOM SEG or RTSTRUCT.$yarea[INPUTDIRECTORY][OUTPUTDIRECTORY]\--roi_names[str]\--pyradiomics_setting[str]\--negative_controls[str:randomized_full,randomized_roi,randomized_non_roi,shuffled_full,shuffled_roi,shuffled_non_roi]\--parallel[flag]--update[flag]ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licenseyareawas created by Katy Scott. It is licensed under the terms of the MIT license.Creditsyareawas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: yarely
YarelyYarely is a modular, extensible digital signage player currently designed to run only on macOS. The player supports a wide range of content types (e.g. images, videos and web content) that are displayed according to a schedule and set of constraints specified by the user. The player also supports external triggering of content through web sockets to enable applications such as display personalisation.GitHub repo:https://github.com/opendisplays/yarely/Documentation:https://yarely.readthedocs.io.Free software: Apache Software License 2.0Details of design and implementation of Yarely and associated components can be found in the following publications:Yarely: a software player for open pervasive display networksAre You Feeling Lucky?: Lottery-based Scheduling for Public DisplaysSupporting user appropriation of public displaysBuild StatusMac OS X (>=10.6):DependanciesHistory0.1.0 (2018-12-01)First release on PyPI.
Package: yarfox
InstallGetPython3and insallyarfoxwithpip.UsageFirst, runyarfox setupand follow the instructions. This only needs to be done once.Then:Runyarfox fetchto fetch your latest tootsRunyarfox publishto cross post those toots to twitteryarfox publishwill present every toot in order, asking you wether you want to  publish, skip, or edit them.You can also runyarfox publishwith the--batchoption to automate the process (for instance in acronjob  or asystemdtimers).Enjoy!NotesAll the data fetched from Mastodon will be stored as plain JSON files inside~/.local/share/yarfox, so you can
also useyarfoxas some sort of backup.