Jump to content

Recommended Posts

Posted (edited)

My script works perfect if I execute it from ssh, but when I try to execute it via wps button everything works except using screen command so I can run tcpdump in the background and use screen to view progress later.

I have tried different methods, from executing the script on ssh from the wps button to putting the actual code in the wps button textfield (in the gui)

I have tried these different combination of switches

screen

screen -d -m

screen -d -m -S

screen -S

screen -dm

screen -dmS

and still will not start screen windows if I do it via WPS buttong. Like I mentioned before if i do it within ssh, whether its bash ./script.sh or sh ./script.sh it runs just fine, and I don't know what to do. I want to make it independent so I don't have to have a tablet/laptop attached to it at all time. or briefly.

if anybody has any recommendations I would greatly appreciate it.

BTW I have been using this wifi connect script inside my script (it was a last minute type thing) http://forums.hak5.org/index.php?/topic/29487-wifi-connect-script-updated-v12/

Edited by demonjester
Posted

Not sure how to do it via screen, but have you thought about taking the command you're using in the WPS button script and having it redirect the output to a file you can then tail later?

Posted

Not sure how to do it via screen, but have you thought about taking the command you're using in the WPS button script and having it redirect the output to a file you can then tail later?

you mean tcpdump -i wlan0 -w sniffing.cap?

Posted

why don't you just send the command to the background using the & and record the pid in a temp file somewhere

I tried & but it still did not work. I am still experimenting though.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...