Fedora support for zenmap GUI script

Varunram Ganesh via dev <[email protected]>
Newsgroups gmane.comp.security.nmap.devel
Message-ID <[email protected]>
Greetings List,

While working on the su-to-zenmap script, I found that a patch had been submitted long ago by Jerry Dimitrov to add fedora support to the script. What are your opinions on this?

Cheers,
Varunram

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/
su-to-zenmap_sh_fedora_support.patch (application/octet-stream, 820 B)
--- su-to-zenmap.sh.old	2012-12-06 20:54:36.000000000 +0200
+++ su-to-zenmap.sh	2015-04-14 16:58:41.985618911 +0300
@@ -28,6 +28,8 @@
         SU_TO_ROOT_X=kde4su
       elif which ktsuss >/dev/null 2>&1 ; then
         SU_TO_ROOT_X=ktsuss
+      elif which beesu >/dev/null 2>&1 ; then
+        SU_TO_ROOT_X=beesu
       elif which xterm>/dev/null 2>&1 ;then
         if which sudo>/dev/null 2>&1 ;then
           SU_TO_ROOT_X=sdterm
@@ -43,6 +45,7 @@
       kdesu) kdesu -u "$PRIV" -c "$COMMAND";;
       kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" -c "$COMMAND";;
       ktsuss) ktsuss -u "$PRIV" "$COMMAND";;
+      beesu) beesu -P -l "$PRIV" -c "$COMMAND";;
   # As a last resort, open a new xterm use sudo/su
       sdterm) xterm -e "sudo -u $PRIV $COMMAND";;
       sterm) xterm -e "su -l $PRIV -c $COMMAND";;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.