├── cmd ├── mpd │ └── main.go └── mpconsole │ └── main.go ├── .travis.yml ├── AUTHORS ├── .github ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── subcmd └── banner.go ├── CONTRIBUTORS ├── CONTRIBUTING.md ├── README.md ├── .gitignore ├── CONDUCT.md └── LICENSE /cmd/mpd/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/propervillain/moistpetal/subcmd" 7 | "github.com/ttacon/chalk" 8 | ) 9 | 10 | func main() { 11 | 12 | // display banner 13 | fmt.Printf(subcmd.Banner() + "\n") 14 | b := chalk.Magenta.NewStyle().WithTextStyle(chalk.Bold) 15 | fmt.Printf(b.Style(" + -- --={ mpd }\n\n")) 16 | } 17 | -------------------------------------------------------------------------------- /cmd/mpconsole/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/propervillain/moistpetal/subcmd" 7 | "github.com/ttacon/chalk" 8 | ) 9 | 10 | func main() { 11 | 12 | // display banner 13 | fmt.Printf(subcmd.Banner() + "\n") 14 | b := chalk.White.NewStyle().WithTextStyle(chalk.Bold) 15 | fmt.Printf(b.Style(" + -- --={ mpconsole }\n\n")) 16 | 17 | // display farewell 18 | fmt.Printf(subcmd.Farewell() + "\n") 19 | } 20 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | os: 2 | - linux 3 | - osx 4 | language: go 5 | go: 6 | - 1.8.x 7 | install: 8 | - go get -u github.com/go-playground/overalls 9 | - go get -u github.com/mattn/goveralls 10 | - go get -u ./... 11 | script: 12 | - $GOPATH/bin/overalls -project=github.com/propervillain/moistpetal -covermode=atomic -ignore=.git,.github,vendor -debug -- -short -race -v 13 | - $GOPATH/bin/goveralls -coverprofile=overalls.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN 14 | notifications: 15 | email: 16 | - dev@moistpetal.io 17 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Moistpetal Authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as one of 6 | # Organization's name 7 | # Individual's name 8 | # Individual's name 9 | # See CONTRIBUTORS for the meaning of multiple email addresses. 10 | 11 | # Please keep the list sorted. 12 | 13 | John Cramb 14 | Josh Schwartz 15 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### What version of Moistpetal are you using? 2 | 3 | x.x.x (?), Jan 1 00:00:00 UTC 4 | 5 | 6 | ## What operating system and processor architecture are you using? 7 | 8 | OS/ARCH 9 | 10 | 11 | ## What did you do? 12 | 13 | 1. ... 14 | 2. ... 15 | 16 | Please include any relevant information in the context of encountering this issue. 17 | 18 | 19 | ## What did you expect to see? 20 | 21 | What should happen? 22 | 23 | 24 | ## What did you see instead? 25 | 26 | What actually happened? 27 | 28 | 29 | ## Supporting Info 30 | 31 | Provide additional information (e.g. logs), if you believe it to be helpful. 32 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | * **Please check if the PR fulfills these requirements** 2 | - [ ] The commit message follows our guidelines 3 | - [ ] Tests for the changes have been added (for bug fixes / features) 4 | - [ ] Docs have been added / updated (for bug fixes / features) 5 | 6 | 7 | * **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...) 8 | 9 | 10 | 11 | * **What is the current behavior?** (You can also link to an open issue here) 12 | 13 | 14 | 15 | * **What is the new behavior (if this is a feature change)?** 16 | 17 | 18 | 19 | * **Does this PR introduce a breaking change?** (What changes might users need to make in their application due to this PR?) 20 | 21 | 22 | 23 | * **Other information**:- 24 | -------------------------------------------------------------------------------- /subcmd/banner.go: -------------------------------------------------------------------------------- 1 | package subcmd 2 | 3 | import ( 4 | "github.com/ttacon/chalk" 5 | ) 6 | 7 | // Standard welcome banner. 8 | func Banner() string { 9 | s := "\n" + 10 | " o o o 8\n" + 11 | " 8 8 8\n" + 12 | " ooYoYo. .oPYo. o8 .oPYo. o8P .oPYo. .oPYo. o8P .oPYo. 8\n" + 13 | " 8' 8 8 8 8 8 Yb.. 8 8 8 8oooo8 8 .oooo8 8\n" + 14 | " 8 8 8 8. 8 8 'Yb. 8 8 8 8. 8 8 8 8\n" + 15 | " 8 8 8 `Yooo' 8 `YooP' 8 8YooP' `Yooo' 8 `YooP8 8\n" + 16 | " 8 \n" + 17 | " 8 \n" 18 | s = chalk.Green.NewStyle().Style(s) 19 | return s 20 | } 21 | 22 | // Standard exit banner. 23 | func Farewell() string { 24 | r := chalk.Red.NewStyle() 25 | s := "" + 26 | " _ _ __ __ _ _ \n" + 27 | " ( | )/_/ \\_\\( | ) \n" + 28 | " __( >O< ) " + r.Style(".Goodbye.") + " ( >O< )__\n" + 29 | " \\_\\(_|_) (_|_)/_/\n" 30 | return s 31 | } 32 | -------------------------------------------------------------------------------- /CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This is the official list of people who can contribute (and 2 | # typically have contributed) code to the Moistpetal repository. 3 | # The AUTHORS file lists the copyright holders; this file 4 | # lists people. 5 | # 6 | # Names should be added to this file only after verifying that 7 | # the individual or the individual's organization has agreed to 8 | # the appropriate Contributor License Agreement, found here: 9 | # 10 | # https://cla.github.com/ 11 | # 12 | # The agreement for individuals can be filled out on the web. 13 | # 14 | # When adding J Random Contributor's name to this file, 15 | # either J's name or J's organization's name should be 16 | # added to the AUTHORS file, depending on whether the 17 | # individual or corporate CLA was used. 18 | 19 | # Names should be added to this file like so: 20 | # Individual's name 21 | # Individual's name 22 | # 23 | # An entry with multiple email addresses specifies that the 24 | # first address should be used in the submit logs and 25 | # that the other addresses should be recognized as the 26 | # same person. 27 | 28 | # Please keep the list sorted. 29 | 30 | John Cramb 31 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Moistpetal 2 | 3 | Moistpetal is an open source project. 4 | 5 | Current moistpetal status is **Pre-Alpha(AF)** but we're committed to continued and active development. It is the work of many contributors. We appreciate your help! 6 | 7 | 8 | ## Before filing an issue 9 | 10 | Feel free to ask about any issues in the [moistpetal mailing list](https://groups.google.com/forum/#!forum/moistpetal). If you've discovered something not already raised then please submit a new issue to track progress. 11 | 12 | 13 | ## Filing issues 14 | 15 | When filing an issue, make sure to answer these five questions: 16 | 17 | 1. What version of Moistpetal are you using? 18 | 2. What operating system and processor architecture are you using? 19 | 3. What did you do? 20 | 4. What did you expect to see? 21 | 5. What did you see instead? 22 | 23 | Sensitive security-related issues should be reported to 24 | [security@moistpetal.io](mailto:security@moistpetal.io). 25 | 26 | 27 | ## Getting Started 28 | 29 | * Make sure you have a [GitHub account](https://github.com/signup/free). 30 | * File an issue, assuming one does not already exist. 31 | * Clearly describe the issue including steps to reproduce when it is a bug. 32 | * Fork the repository on GitHub. 33 | 34 | 35 | ## Making Changes 36 | 37 | * Create a topic branch from where you want to base your work. 38 | * This is usually the master branch. 39 | * To quickly create a topic branch based on master; `git checkout -b 40 | fix/master/my_contribution master`. Please avoid working directly on the 41 | `master` branch. 42 | * Make commits of logical units. 43 | * Check for unnecessary whitespace with `git diff --check` before committing. 44 | * Make sure your commit messages are accurate and meaningful. 45 | * Make sure you have added the necessary tests for your changes. 46 | * Run _all_ the tests to assure nothing else was accidentally broken. 47 | 48 | 49 | ## Submitting Changes 50 | 51 | * Sign the [Contributor License Agreement](https://cla.github.com/). 52 | * Push your changes to a topic branch in your fork of the repository. 53 | * Submit a pull request to the official repository. 54 | * The authors look at pull requests on a regular weekly basis. 55 | * After feedback is given we expect responses within two weeks. After two 56 | weeks we may close the pull request if it isn't showing any activity. 57 | 58 | 59 | ## Code of Conduct 60 | 61 | Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). 62 | By participating in this project you agree to abide by its terms. 63 | 64 | 65 | ## LICENSE 66 | 67 | Unless otherwise noted, all source files are distributed under 68 | the Apache-2.0 license found in the LICENSE file. 69 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MoistPetal 2 | 3 | [![Build Status](https://travis-ci.org/propervillain/moistpetal.svg?branch=master)](https://travis-ci.org/propervillain/moistpetal) 4 | [![Coveralls](https://coveralls.io/repos/github/propervillain/moistpetal/badge.svg)](https://coveralls.io/github/propervillain/moistpetal) 5 | [![Go Report Card](https://goreportcard.com/badge/github.com/propervillain/moistpetal)](https://goreportcard.com/report/github.com/propervillain/moistpetal) 6 | [![GoDoc](https://godoc.org/github.com/propervillain/moistpetal?status.svg)](https://godoc.org/github.com/propervillain/moistpetal) 7 | [![License](https://img.shields.io/badge/license-Apache%202-blue.svg?style=flat)](LICENSE) 8 | 9 | 10 | _Moistpetal_ is a modular malware framework for modern red teams. 11 | 12 | Some of it's features include: 13 | - Design, build and deploy cross-platform modular malware. 14 | - Automated C2 infrastructure spinup, administration and termination. 15 | - Integration with external services (storage, compute, chat etc.) 16 | - Supports collaboration for geographically distributed operators. 17 | - Collection and analysis of high fidelity attack intelligence. 18 | 19 | It is under active community development for red team, by red team. 20 | 21 | 22 | ## Status 23 | 24 | **Pre-Alpha(AF)**. Functionality is known to be broken, missing or incomplete. 25 | Command and file format changes are still planned. 26 | We welcome feedback and contributions from the community. 27 | Please see below for feedback and contribution guidelines. 28 | 29 | 30 | ## Contributing 31 | 32 | Contributions are greatly appreciated. 33 | The project follows the typical GitHub pull request model. 34 | 35 | See the [Contribution Guidelines](CONTRIBUTING.md) 36 | for more information on contributing to the project. 37 | 38 | 39 | ### Reporting issues 40 | 41 | Please report issues through 42 | [our issue tracker](https://github.com/propervillain/moistpetal/issues). 43 | 44 | 45 | ## Community 46 | 47 | Use the [moistpetal mailing list](https://groups.google.com/forum/#!forum/moistpetal) 48 | for discussion about _Moistpetal_ use and development. 49 | 50 | 51 | ### Code of Conduct 52 | 53 | Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). 54 | By participating in this project you agree to abide by its terms. 55 | 56 | 57 | ## LICENSE 58 | 59 | Copyright 2017 The Moistpetal Authors 60 | 61 | Licensed under the Apache License, Version 2.0 (the "License"); 62 | you may not use this file except in compliance with the License. 63 | You may obtain a copy of the License at 64 | 65 | 66 | 67 | Unless required by applicable law or agreed to in writing, software 68 | distributed under the License is distributed on an "AS IS" BASIS, 69 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 70 | See the License for the specific language governing permissions and 71 | limitations under the License. 72 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.gitignore.io 2 | 3 | ### Moistpetal ### 4 | cmd/mpconsole/mpconsole 5 | cmd/mpd/mpd 6 | 7 | ### Go ### 8 | # Binaries for programs and plugins 9 | *.exe 10 | *.dll 11 | *.so 12 | *.dylib 13 | 14 | # Test binary, build with `go test -c` 15 | *.test 16 | 17 | # Output of the go coverage tool, specifically when used with LiteIDE 18 | *.coverprofile 19 | *.out 20 | 21 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 22 | .glide/ 23 | 24 | # Golang project vendor packages which should be ignored 25 | vendor/ 26 | 27 | ### Vim ### 28 | # swap 29 | [._]*.s[a-v][a-z] 30 | [._]*.sw[a-p] 31 | [._]s[a-v][a-z] 32 | [._]sw[a-p] 33 | # session 34 | Session.vim 35 | # temporary 36 | .netrwhist 37 | *~ 38 | # auto-generated tag files 39 | tags 40 | 41 | ### SublimeText ### 42 | # cache files for sublime text 43 | *.tmlanguage.cache 44 | *.tmPreferences.cache 45 | *.stTheme.cache 46 | 47 | # workspace files are user-specific 48 | *.sublime-workspace 49 | 50 | # project files should be checked into the repository, unless a significant 51 | # proportion of contributors will probably not be using SublimeText 52 | # *.sublime-project 53 | 54 | # sftp configuration file 55 | sftp-config.json 56 | 57 | # Package control specific files 58 | Package Control.last-run 59 | Package Control.ca-list 60 | Package Control.ca-bundle 61 | Package Control.system-ca-bundle 62 | Package Control.cache/ 63 | Package Control.ca-certs/ 64 | Package Control.merged-ca-bundle 65 | Package Control.user-ca-bundle 66 | oscrypto-ca-bundle.crt 67 | bh_unicode_properties.cache 68 | 69 | # Sublime-github package stores a github token in this file 70 | # https://packagecontrol.io/packages/sublime-github 71 | GitHub.sublime-settings 72 | 73 | ### Hugo ### 74 | hugo.exe 75 | /public/ 76 | 77 | ### Linux ### 78 | *~ 79 | 80 | # temporary files which can be created if a process still has a handle open of a deleted file 81 | .fuse_hidden* 82 | 83 | # KDE directory preferences 84 | .directory 85 | 86 | # Linux trash folder which might appear on any partition or disk 87 | .Trash-* 88 | 89 | # .nfs files are created when an open file is removed but is still being accessed 90 | .nfs* 91 | 92 | ### OSX ### 93 | *.DS_Store 94 | .AppleDouble 95 | .LSOverride 96 | 97 | # Icon must end with two \r 98 | Icon 99 | 100 | # Thumbnails 101 | ._* 102 | 103 | # Files that might appear in the root of a volume 104 | .DocumentRevisions-V100 105 | .fseventsd 106 | .Spotlight-V100 107 | .TemporaryItems 108 | .Trashes 109 | .VolumeIcon.icns 110 | .com.apple.timemachine.donotpresent 111 | 112 | # Directories potentially created on remote AFP share 113 | .AppleDB 114 | .AppleDesktop 115 | Network Trash Folder 116 | Temporary Items 117 | .apdisk 118 | 119 | ### Windows ### 120 | # Windows thumbnail cache files 121 | Thumbs.db 122 | ehthumbs.db 123 | ehthumbs_vista.db 124 | 125 | # Folder config file 126 | Desktop.ini 127 | 128 | # Recycle Bin used on file shares 129 | $RECYCLE.BIN/ 130 | 131 | # Windows Installer files 132 | *.cab 133 | *.msi 134 | *.msm 135 | *.msp 136 | 137 | # Windows shortcuts 138 | *.lnk 139 | 140 | # End of https://www.gitignore.io 141 | -------------------------------------------------------------------------------- /CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, gender identity and expression, level of experience, 9 | nationality, personal appearance, race, religion, or sexual identity and 10 | orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by privately contacting the project team at 59 | [conduct@moistpetal.io](mailto:conduct@moistpetal.io). 60 | All complaints will be reviewed and investigated and will result in a response 61 | that is deemed necessary and appropriate to the circumstances. The project team 62 | is obligated to maintain confidentiality with regard to the reporter of an 63 | incident. Further details of specific enforcement policies may be posted 64 | separately. 65 | 66 | Project maintainers who do not follow or enforce the Code of Conduct in good 67 | faith may face temporary or permanent repercussions as determined by other 68 | members of the project's leadership. 69 | 70 | ## Attribution 71 | 72 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 73 | available at [http://contributor-covenant.org/version/1/4][version] 74 | 75 | [homepage]: http://contributor-covenant.org 76 | [version]: http://contributor-covenant.org/version/1/4/ 77 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2017, The Moistpetal Authors. All rights reserved. 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | --------------------------------------------------------------------------------