-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source precheck.sh errors #16
Comments
@kaster-san This must be some issue due to editors or when you were transferring the file. |
python cake_fuzzer.py instrument check how to resolve this error......i had made the setup as mentioned in the readme file |
Can you describe your setup? |
Actually i had used ubuntu for the setup as host and used vmware on the top to launch misp ....and used the step specified in the readme.....intially i faced many errors....i resolved it...but now i am stuck with this error |
If you use python3.6 it might not work because it doesn't have all the modules required (although it would be a different error than the one you see). Try python 3.8 or newer. Check:
I've just setup similar environment using MISP VMWare images, updated it, setup cake_fuzzer with python 3.8 and instrument check works fine:
|
Hey,
Thank you for your quick reply...
I have a concern that, whether it is possible to use Windows as the host,
As when I try to use like that, it is showing OS error while creating then
venv.
Also if it is possible to share a report or final result of the tool, it
will be helpful for me.
Looking forward to hearing from you and contribute to this futuristic
project.
…On Thu, 4 Apr, 2024, 5:07 pm Dawid, ***@***.***> wrote:
If you use python3.6 it might not work because it doesn't have all the
modules required (although it would be a different error than the one you
see). Try python 3.8 or newer. Check:
- if your config points correctly to webroot of MISP (by default:
/var/www/MISP/app/webroot/)
- if you are inside of the virutal environment when you run the command
I've just setup similar environment using MISP VMWare images, updated it,
setup cake_fuzzer with python 3.8 and instrument check works fine:
(venv) ***@***.***:/cake_fuzzer# python3.8 cake_fuzzer.py instrument check
Applied / Unapplied
FunctionCall Renames: x/18
Patches: 0/6
Copies: 0/0
Annotations: x/1
php.ini updates: x/1
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZL5KOKC2QF4SZTMBFLQO6LY3U3PXAVCNFSM6AAAAAA3HJIBEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWHEZTCMJTHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@sreegopcs Yes, it's possible to use windows as the host. If you setup CakeFuzzer on guest linux, it doesn't touch the host at all (unless you setup development environment with file sharing between host&guest). Regarding the output. Here is the example output of different stages of Cake Fuzzer: Here is the instrumentation stripped (It's a long process with a lot of output):
Here is the scheduling process:
Here are the periodic monitors working (constantly until you kill the process):
Here are the iteration monitors working (constantly until you kill the process):
Here is the final scanning/attacking process (once it's finished you need to kill it as well):
The registry creates the
|
(venv) root@misp:/cake_fuzzer# python3.8 cake_fuzzer.py instrument check File "cake_fuzzer.py", line 574, in File "cake_fuzzer.py", line 564, in instrumentation File "/usr/lib/python3.8/asyncio/runners.py", line 43, in run File "/usr/lib/python3.8/asyncio/base_events.py", line 608, in run_until_complete File "cake_fuzzer.py", line 510, in apply_instrumentation File "/cake_fuzzer/cakefuzzer/instrumentation/instrumentator.py", line 165, in apply File "/cake_fuzzer/cakefuzzer/instrumentation/init.py", line 32, in apply File "/cake_fuzzer/cakefuzzer/instrumentation/patch.py", line 45, in apply File "/cake_fuzzer/cakefuzzer/instrumentation/patch.py", line 19, in _run_subprocess cakefuzzer.instrumentation.InstrumentationError: Error: Error while instrumenting, got non-zero response from subprocess (venv) root@misp:/cake_fuzzer# any sugestions |
What version of MISP are you trying to scan? |
MISP_v2.4.146@0c25b72 is version i am using |
You need to set the instrumentation to CAKE version 2 (MISP is built on CAKE 2). INSTRUMENTATION_INI="config/instrumentation_cake2.ini" |
(venv) root@misp:/cake_fuzzer# python3.8 cake_fuzzer.py instrument apply File "cake_fuzzer.py", line 574, in File "cake_fuzzer.py", line 564, in instrumentation File "/usr/lib/python3.8/asyncio/runners.py", line 43, in run File "/usr/lib/python3.8/asyncio/base_events.py", line 608, in run_until_complete File "cake_fuzzer.py", line 510, in apply_instrumentation File "/cake_fuzzer/cakefuzzer/instrumentation/instrumentator.py", line 173, in apply File "/cake_fuzzer/cakefuzzer/instrumentation/init.py", line 32, in apply File "/cake_fuzzer/cakefuzzer/instrumentation/override.py", line 35, in apply cakefuzzer.instrumentation.InstrumentationError: Error: Error while instrumenting, got non-zero response from subprocess PHP Fatal error: Uncaught Error: Call to undefined method PhpParser\ParserFactory::create() in /cake_fuzzer/cakefuzzer/phpfiles/instrumentation/rename_function_call.php:62 i have made the changes in config.ini......but still getting some other error.... Also after successfully completing the execution of all the commands...does the result json contain the vulnerability details pointing towards the exact location of where the error is inside the file? |
That's weird error. Do you have the You don't get the info about the file that contains the vulnerability but the request that will let you to reproduce it. |
I coudn't fix the issue.....PHP parser is their in the repo....and i even
tried using the* install_php_parser.sh* command. Still i got the
same error...
Can u send me the result.json file of MISP and CEREBRATE..if possible both
of them, inorder to examine the result and the way of its analysis
…On Sat, May 4, 2024 at 1:35 PM Dawid ***@***.***> wrote:
That's weird error. Do you have the php-parser cloned repo directory? If
not try to run this script:
cakefuzzer/phpfiles/instrumentation/install_php_parser.sh. If yes than it
needs deeper investigation.
You don't get the info about the file that contains the vulnerability but
the request that will let you to reproduce it.
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZL5KOMNIKHI4P2BLW5RGKTZASJDXAVCNFSM6AAAAAA3HJIBEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGA3TCNJVGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hard to say what's causing the error. [
{
"found_in": {
"strategy_name": "SSRFAttackStrategy",
"payload": "http://4glkaunm0gijcgqvo1tfp5617sdj19py.00017491695907542774.local",
"detection_result": "4glkaunm0gijcgqvo1tfp5617sdj19py.00017491695907542774.local",
"context_location": "",
"vulnerability_location": {
"_POST": {
"baseurl": "http://4glkaunm0gijcgqvo1tfp5617sdj19py.00017491695907542774.local"
}
},
"vulnerability_id": 0,
"path": "/TaxiiServers/getRoot/",
"method": "POST",
"superglobal": {
"_GET": {},
"_POST": {
"baseurl": "http://4glkaunm0gijcgqvo1tfp5617sdj19py.00017491695907542774.local",
"uri": "/taxii2/"
},
"_REQUEST": {},
"_COOKIE": {
"CAKEPHP": "http://4glkaunm0gijcgqvo1tfp5617sdj19py.01588384992370180046.local"
},
"_FILES": {},
"_SERVER": {
"HTTP_USER_AGENT": "http://4glkaunm0gijcgqvo1tfp5617sdj19py.01197202265851745442.local",
"HTTP_IF_NONE_MATCH": "http://4glkaunm0gijcgqvo1tfp5617sdj19py.03222932666639621773.local",
"HTTP_IF_MODIFIED_SINCE": "http://4glkaunm0gijcgqvo1tfp5617sdj19py.01544122491512797937.local",
"HTTP_HOST": "127.0.0.1",
"HTTP_SEC_FETCH_SITE": "same-origin",
"HTTP_ACCEPT": "application/xml"
}
}
}
}
] |
when i reached
source precheck.sh
i got these errors :here is the content of precheck.sh
can anyone point the reason ?
update : here is the fix :
The text was updated successfully, but these errors were encountered: