ZSC icon indicating copy to clipboard operation
ZSC copied to clipboard

Pressing TAB at file_to_execute

Open CodeMaxx opened this issue 9 years ago • 14 comments

This happens

https://s32.postimg.org/5nonvgrvp/Screen_Shot_2016_07_13_at_11_21_05_PM.png

CodeMaxx avatar Jul 13 '16 18:07 CodeMaxx

hello, what's your OS ?

Ali-Razmjoo avatar Jul 14 '16 15:07 Ali-Razmjoo

OS X

CodeMaxx avatar Jul 14 '16 15:07 CodeMaxx

I've tested it on osx with python2.7, what version of python and os are you using ?

Ali-Razmjoo avatar Jul 14 '16 22:07 Ali-Razmjoo

python 2.7 and os x 10.11.5

CodeMaxx avatar Jul 15 '16 04:07 CodeMaxx

btw I hope you are pressing TAB multiple times

CodeMaxx avatar Jul 15 '16 04:07 CodeMaxx

okay, i will test it soon.

Ali-Razmjoo avatar Jul 15 '16 18:07 Ali-Razmjoo

The bug I see is that you need to press TAB at least 2 times to get the first menu items. When you are into 'file_to_execute', you press once and the file_to_execute appears

I find more an issue that you need to press twice the tab for the first items to appear (after generate command)

zsc/shellcode/generate> 
linux_x86  osx_x86    windows    
zsc/shellcode/generate> linux_x86
zsc/shellcode/generate/linux_x86> 
chmod             download_execute  script_executor   
dir_create        exec              system            
download          file_create       write             
zsc/shellcode/generate/linux_x86> exec
zsc/shellcode/generate/linux_x86/exec> file_to_execute
file_to_execute:file_to_execute
file_to_execute
file_to_execute:file_to_execute
file_to_execute
file_to_execute:

jowasp avatar Jul 16 '16 23:07 jowasp

double tab in the menu it's because of you have multiples choices, and when you have just one, it works with one tab. but BTW it should not be like this

zsc/shellcode/generate/linux_x86/exec> file_to_execute
file_to_execute:file_to_execute
file_to_execute
file_to_execute:file_to_execute
file_to_execute
file_to_execute:

i will check it once i get osx.

Ali-Razmjoo avatar Jul 17 '16 00:07 Ali-Razmjoo

@CodeMaxx @jowasp please test if it fixed with #66 , I had some changed related to this on this commit, thanks.

Ali-Razmjoo avatar Jul 17 '16 02:07 Ali-Razmjoo

@jowasp Pressing Tab twice (when you have not filled anything) is normal behaviour. If you have more than 1 match to your autocomple query you'll have to press TAB twice to see all matching results. If there is only one match(e.g on starting zsc you write "sh" and press TAB once it would autocomplete) then pressing TAB once would work.

On Sun, 17 Jul 2016 04:35 jowasp, [email protected] wrote:

The bug I see is that you need to press TAB at least 2 times to get the first menu items. When you are into 'file_to_execute', you press once and the file_to_execute appears

I find more an issue that you need to press twice the tab for the first items to appear (after generate command)

zsc/shellcode/generate> linux_x86 osx_x86 windows zsc/shellcode/generate> linux_x86 zsc/shellcode/generate/linux_x86> chmod download_execute script_executor dir_create exec system download file_create write zsc/shellcode/generate/linux_x86> exec zsc/shellcode/generate/linux_x86/exec> file_to_execute file_to_execute:file_to_execute file_to_execute file_to_execute:file_to_execute file_to_execute file_to_execute:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zscproject/OWASP-ZSC/issues/68#issuecomment-233155692, or mute the thread https://github.com/notifications/unsubscribe-auth/ANZOJfu4MCD_EofZ0DjfyZealECKoBY3ks5qWWOYgaJpZM4JLuro .

Second Year Undergraduate, Computer Science, IIT Bombay. https://codemaxx.github.io/

CodeMaxx avatar Jul 17 '16 04:07 CodeMaxx

Ignore the above comment. Ali already explained it

On Sun, 17 Jul 2016 10:05 Akash Trehan, [email protected] wrote:

@jowasp Pressing Tab twice (when you have not filled anything) is normal behaviour. If you have more than 1 match to your autocomple query you'll have to press TAB twice to see all matching results. If there is only one match(e.g on starting zsc you write "sh" and press TAB once it would autocomplete) then pressing TAB once would work.

On Sun, 17 Jul 2016 04:35 jowasp, [email protected] wrote:

The bug I see is that you need to press TAB at least 2 times to get the first menu items. When you are into 'file_to_execute', you press once and the file_to_execute appears

I find more an issue that you need to press twice the tab for the first items to appear (after generate command)

zsc/shellcode/generate> linux_x86 osx_x86 windows zsc/shellcode/generate> linux_x86 zsc/shellcode/generate/linux_x86> chmod download_execute script_executor dir_create exec system download file_create write zsc/shellcode/generate/linux_x86> exec zsc/shellcode/generate/linux_x86/exec> file_to_execute file_to_execute:file_to_execute file_to_execute file_to_execute:file_to_execute file_to_execute file_to_execute:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zscproject/OWASP-ZSC/issues/68#issuecomment-233155692, or mute the thread https://github.com/notifications/unsubscribe-auth/ANZOJfu4MCD_EofZ0DjfyZealECKoBY3ks5qWWOYgaJpZM4JLuro .

Second Year Undergraduate, Computer Science, IIT Bombay. https://codemaxx.github.io/

Second Year Undergraduate, Computer Science, IIT Bombay. https://codemaxx.github.io/

CodeMaxx avatar Jul 17 '16 04:07 CodeMaxx

Not fixed yet. So this is happening everywhere not just file_execute. Also I don't think it should be OS specific but it might be.

https://s32.postimg.org/5ewck5vth/Screen_Shot_2016_07_17_at_10_30_35_AM.png

CodeMaxx avatar Jul 17 '16 05:07 CodeMaxx

In my kali linux after exec command I press 1 tab and get to get file_to_execute. When I press tab second time after it nothing happens. When I press tab again I get the file_to_execute written on next line and not only this but also the next line with the previous option written in the end. Now when I press enter it executes. I get file_to_execute> written I press tab it sets it to file_to_execute again. It loops again and again if you keep pressing tab. Leaves the loop If you press enter. Then the file is set to file_to_execute and the option table appears. screenshot from 2016-12-26 15 22 11

jack17529 avatar Dec 26 '16 09:12 jack17529

And also this image screenshot from 2016-12-26 15 31 18

jack17529 avatar Dec 26 '16 10:12 jack17529