glitchedgitz / cook

A wordlist framework to fullfill your kinks with your wordlists. For security researchers, bug bounty and hackers.
https://twitter.com/glitchedgitz
MIT License
1.01k stars 104 forks source link

[Bug] Space/Tab in cook.exe #10

Closed RomelSan closed 3 years ago

RomelSan commented 3 years ago

Command:
cook.exe -start first,second -end 2020,2021 start:end
or cook.exe first,second:2020,2021

Outputs:

error: yaml: line 4: found character that cannot start any tokenfirst2020
first2021
second2020
second2021
alanEG commented 3 years ago

Did you set the environment variable COOK

RomelSan commented 3 years ago

test

Also by setting the variable directly to the .exe file. test2

RomelSan commented 3 years ago

I am not doing custom settings... Should this work out of the box like version 1.0? test3 v1.0 screenshot

alanEG commented 3 years ago

If you set the environment variable and do not restart the device, the variables will not be applied. You must restart the device This worked for me

reference

https://stackoverflow.com/questions/48131439/unable-to-receive-environment-variables-in-golang-and-windows-10
RomelSan commented 3 years ago

Pointed the COOK var to the folder (restarted and try), then to the exe file (restart and try), finally to the .yaml file and it never worked as intended... Will test on another computer, but for now had to add 2 lines of code (i am not a Go programmer so did the best i could). Added to the code something like this "If there isn't a COOK env var then set the binary path as the variable". solution

RomelSan commented 3 years ago

@giteshnxtlvl Hi, can you add that behavior to the code? "If there isn't a COOK env var then set the running binary path as the variable" so it can run right out of the box too. Thanks.

glitchedgitz commented 3 years ago

Hi @RomelSan Just delete the env varibale COOK, after that cook.exe will work fine, without need of cook.yaml file.

I mentioned this in Readme before but rn it isn't there, so I will add this again.

@alanEG You can just restart the terminal instead of PC to get modified env variables. Use cmder terminal it is better.

For customization

  1. Create empty file cook.yaml
  2. Set env variable COOK=pathofthisfile
  3. Restart terminal and run cook -config
RomelSan commented 3 years ago

@giteshnxtlvl I think i found the bug. cook.exe alone won't work error

You have a tab in line 49, it should be spaces. Compiled and tested like that and it worked. linebug

glitchedgitz commented 3 years ago

Yes, I checked it, it's a bug. Thanks for reporting @RomelSan. Will fix this in a minute.

glitchedgitz commented 3 years ago

Bug Fixed