GROWL 2.4 code (shell script) and pet

For discussions about security.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

GROWL 2.4 code (shell script) and pet

#1 Post by Lobster »

Pet (installer version from musher now available)

... previously (history of program)
http://www.murga-linux.com/puppy/viewto ... 216#335216

Remember the only verified threat to Puppy that I know of is browsers and JavaScrapped ... eh javascript ... and open ports in the kernel

Refuse to use the CIA sponsored/coded TOR or wear a tin hat!

Guard!
Restrict!
Observe!
Watch!
Lookout!

Hi guys am releasing the source code early as I am having problems with
GTK
and gtkdialog (which is no longer gtk4 but possibly gtk+)
and lsof
that maybe because of the newest busybox?

Any help, suggestions welcome 8)

The code in the next post:
1. Save code text as growl24.sh
2. Change permissions to executable (right click on growl24.sh)
3. Click on growl24.sh from Rox file manager (file icon on Puppy Desktop)

:D
Last edited by Lobster on Thu 23 Jan 2020, 09:00, edited 5 times in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

NB - the only difference between this code and the code in the pet is the release date and a credit to musher for creating the pet :D

Code: Select all

#! /bin/bash
#
# GROWL v2.4 - Jan 23 2020  - tested on Puppy 8  (BionicPup 64bit)
# Security enhancements, probes, online services and info for Puppy Linux
# thanks to musher, SFR, Shadow, Linux Kodachi, Liberte Linux, Buddha Vajrasattva and our Puppy yap dogs (security paranoids)

# New and notes for 2.4
# lsof -i not working from probe menu probably because of previous gtkdialog error - works directly from command line
# tor install this action removed but useful link <action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=947972#947972 &</action> 
# edit source code moved to security menu
# Crpt Secure email added
# Ipleak moved to probes
# ecosia search engine added
# changed media player and browser to defaultmediaplayer defaultbrowser
# added https://www.schneier.com/ link under help
# unconventional NSA Hacking info added
# added youtube and open security links

#### SFR Password Generator
PASSGEN ()
{
   # Generates a password with at least:
   # - 1 lowercase letter
   # - 1 uppercase letter
   # - 1 digit
   # - 1 punctuation mark
   
   TITLE="PassGen"
   
   # Min: 8, Max:256, Default: 16
   LENGTH=$(Xdialog --stdout --title "${TITLE}" --spinbox "Password length:" 0 0 8 256 16 "")
   [ $? -ne 0 ] && exit
   
   [ ${LENGTH} -lt 4 ] && LENGTH=4   # must be at least 4, or else the loop below will never end
   
   while true; do
      while true; do
         PASS="$(tr -cd '[[:alnum:]][[:punct:]]' < /dev/urandom 2>/dev/null | head -c ${LENGTH})"
         if [ -z "${PASS##*[[:lower:]]*}" -a -z "${PASS##*[[:upper:]]*}" -a -z "${PASS##*[[:digit:]]*}" -a -z "${PASS##*[[:punct:]]*}" ]; then
            break   # all criteria were met, so break the loop
         fi
      done
     
      echo "${PASS}" | Xdialog --title "${TITLE}" --ok-label="Repeat" --cancel-label="Close" --textbox - 0 0
      [ $? -ne 0 ] && break
   done
}

export -f PASSGEN

#### End of Password Generator code


export Grrr='
<window title="GROWL 2.4" window-position="1">
<vbox>
<menubar>
<menu>
<menuitem>
<label>Quick DISCONNECT eth0</label>      
<action>ifconfig eth0 down &</action>
</menuitem>
<menuitem>
<label>Connect eth0</label>
<action>ifconfig eth0 up &</action>
</menuitem>  
<menuitem>
<label>Password Generator</label>
<action>PASSGEN &</action>
</menuitem>
<menuitem>
<label>Run as spot</label>
<action>`Xdialog --wrap --screencenter --left --title "Run as spot" --msgbox "Run as Super User. \n SPOT" 600x0`</action>
<action>rxvt -e su spot &</action>
<action>exit</action>
</menuitem>
<menuitem>
<label>Install Tor Browser</label>
<action>`Xdialog --wrap --screencenter --left --title "Tor Browser" --msgbox "Install Tor\nfrom Quickpet/Browsers\n\nTor was originally developed by the CIA" 600x0`</action>
<action>quickpet &</action>
</menuitem>
<menuitem>
<label>Browser Paranoid Kit</label>  
<action>`Xdialog --wrap --screencenter --left --title "install Paranoid Kit" --msgbox "Install Paranoid Kit. \n As super user SPOT" 600x0`</action>
<action>rxvt -e su spike &</action>          
<action>rxvt -e defaultbrowser https://addons.mozilla.org/en-GB/firefox/collections/theparadox/paranoia/ &</action>
<action>exit</action>
</menuitem>      
<menuitem>
<label>Run Browser securely</label>
<action>`Xdialog --wrap --screencenter --left --title "Run browser securely" --msgbox "Default browser will look plain whilst running securely. \n as super user SPOT" 600x0`</action>
<action>su spike -c&</action>
<action>rxvt -e defaultbrowser -safe-mode &</action>
</menuitem>
<menuitem>
<label>Encrypt a File: bycrypt</label>
<action>bcrypt_gui &</action>
</menuitem>
<menuitem>
<label>Ccrypt install</label>
<action>rxvt -e defaultbrowser http://puppylinux.org/wikka/ccrypt &</action>
</menuitem>
<menuitem>
<label>Enhanced Lock Screen</label>
<action>rm -f /root/.xlockrc</action>
<action>xmodmap -e "keycode 37="</action>
<action>xmodmap -e "keycode 109="</action>
<action>rxvt -e /usr/local/apps/Xlock/AppRun &</action>
<action>`Xdialog --wrap --screencenter --left --title "reactivating ctrl keys" --msgbox "reactivating ctrl keys. \n deactivated whilst using lockscreen" 600x0`</action>
<action>xmodmap -e "keycode 37=Control_L"</action>
<action>xmodmap -e "keycode 109=Control_R"</action>
</menuitem>
<menuitem>
<label>Remove Flash cookies</label>
<action>rm -rf /root/.macromedia</action>
<action>rm -rf /intrd/pup_rw/root/.macromedia/</action>
<action>`Xdialog --wrap --screencenter --left --title "Remove Flash cookies" --msgbox "Macromedia flash cookies removed" 600x0`</action>        
</menuitem>
<menuitem>
<label>Edit source code</label>
<action>geany growl24.sh &</action>
</menuitem>
<menuitem stock="gtk-quit">
<action>echo You selected the quit menu item</action>
<action type="exit">exit by menu</action>
</menuitem>
<label>Security</label>
</menu>
<menu>        
<menuitem>
<label>lsof process viewer</label>      
<action>rxvt -e lsof -i &</action>
</menuitem>
<menuitem>
<label>Htop process viewer</label>      
<action>rxvt -e htop &</action>
</menuitem>
<menuitem>
<label>Ipinfodb</label>
<action>defaultbrowser ipinfodb.com &</action>              
</menuitem>
<menuitem>          
<label>Webkay</label>
<action>defaultbrowser webkay.robinlinus.com &</action>
</menuitem>
<menuitem>
<label>Shields Up</label>
<action>defaultbrowser https://www.grc.com/x/ne.dll?bh0bkyd2 &</action>
</menuitem>
<menuitem>
<label>DNS leak test</label>
<action>defaultbrowser https://www.dnsleaktest.com &</action>
</menuitem>        
<menuitem>
<label>Hackermode</label>
<action>defaultbrowser https://www.hackerwatch.org/probe/ &</action>              
</menuitem>
<menuitem>
<label>Ipleak</label>
<action>defaultbrowser https://ipleak.net/ &</action>
</menuitem>
<label>Probes</label>
</menu>  
<menu>  
<menuitem>
<label>LastPass Password Manager</label>
<action>`Xdialog --wrap --screencenter --left --title "install LastPass" --msgbox "Install Encrypted Password Manager. \n As super user SPOT" 600x0`</action>
<action>rxvt -e su spike &</action>          
<action>rxvt -e defaultbrowser https://addons.mozilla.org/en-US/seamonkey/addon/lastpass-password-manager/ &</action>
<action>exit</action>
</menuitem>
<menuitem>          
<label>Crpt Secure email</label>
<action>defaultbrowser https://crpt.info/ &</action>
</menuitem>
<menuitem>          
<label>Photonmail</label>
<action>defaultbrowser https://protonmail.com/ &</action>
</menuitem>
<menuitem>          
<label>Curlmyip</label>
<action>defaultbrowser curlmyip.net &</action>
</menuitem>          
<menuitem>
<label>Run IRC Chat securely</label>
<action>`Xdialog --wrap --screencenter --left --title "Run IRC securely" --msgbox "Puppy is on freenode server. \n in #puppylinux Network super user SPOT" 600x0`</action>
<action>su spot -c defaultchat &</action>
</menuitem>
<menuitem>
<label>Last Password</label>
<action>defaultbrowser https://lastpass.com/ &</action>
</menuitem>
<menuitem>
<label>Ecosia Search</label>
<action>defaultbrowser https://www.ecosia.org/ &</action>
</menuitem>
<menuitem>
<label>Startpage Search</label>
<action>defaultbrowser https://www.startpage.com/ &</action>
</menuitem>
<menuitem>          
<label>Filterbypass proxy</label>
<action>defaultbrowser https://www.filterbypass.me &</action>
</menuitem>
<menuitem>
<label>Unblock Proxy</label>
<action>defaultbrowser https://unblockweb.co/ &</action>
</menuitem>
<menuitem>          
<label>Anonymouse proxy</label>
<action>defaultbrowser anonymouse.org &</action>
</menuitem>
<menuitem>
<label>Vpnbook proxy</label>
<action>defaultbrowser http://www.vpnbook.com/webproxy &</action>
</menuitem>
<menuitem>
<label>HideMe Proxy</label>
<action>defaultbrowser https://hide.me/en/proxy &</action>
</menuitem>      
<label>Services</label>
</menu>
<menu>      
<menuitem>          
<label>Puppy Security Discussions</label>
<action>defaultbrowser http://www.murga-linux.com/puppy/index.php?f=47 &</action>
<action>defaultbrowser http://www.murga-linux.com/puppy/index.php?f=56 &</action>
</menuitem>    
<menuitem>
<label>Puppy Wiki Security Tips</label>
<action>defaultbrowser http://puppylinux.org/wikka/security &</action>
</menuitem>
<menuitem>          
<label>About Flash Cookies</label>
<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=340237#340237 &</action>
</menuitem>
<menuitem>
<label>Browser Security Add Ons</label>
<action>defaultbrowser https://addons.mozilla.org/en-GB/firefox/extensions/privacy-security/ &</action>
</menuitem>
<menuitem>
<label>ISP shaping traffic?</label>
<action>defaultbrowser http://br
This would meanoadband.mpi-sws.org/transparency/glasnost.php &</action>
</menuitem>
<menuitem>
<label>Spot, Fido, root</label>
<action>defaultbrowser file:///usr/share/doc/root.htm &</action>
</menuitem>
<menuitem>
<label>Honeynet Open Security info</label>
<action>defaultbrowser http://www.honeynet.org/about &</action>
</menuitem>
<menuitem>
<label>CIA Hacking info</label>
<action>defaultbrowser https://wikileaks.org/ciav7p1/cms/index.html &</action>
</menuitem>
<menuitem>
<label>Unconventional Security info</label>
<action>defaultbrowser https://www.schneier.com/blog/archives/2013/09/how_to_remain_s.html &</action>
</menuitem>
<menuitem>
<label>NCSC UK security guidance</label>
<action>defaultbrowser https://www.ncsc.gov.uk/guidance &</action>
</menuitem>  
<menuitem>
<label>EUFI Secure boot</label>
<action>defaultbrowser http://www.linuxjournal.com/content/take-control-your-pc-uefi-secure-boot &</action>
</menuitem>  
<menuitem>
<label>Latest GROWL updates</label>
<action>defaultbrowser http://murga-linux.com/puppy/viewtopic.php?p=335216#335216http://murga-linux.com/puppy/viewtopic.php?p=335216#335216 &</action>
</menuitem>
<menuitem>
<label>Build a tin hat</label>
<action>defaultbrowser http://zapatopi.net/afdb/ &</action>
</menuitem>
<menuitem>
<label>FAQ</label>
<action>`Xdialog --wrap --screencenter --left --title "FAQ" --msgbox "Lock screen - security protection level = low, suitable for young children, colleagues at work and Window users \n Load firewall - security protection level = high \n Run as spot, run browser as spot, run Puppy browser as spot - security protection level = high \n Encrypt a file bycrypt - security protection level = high \n Tip: Restart x server - flushes memory \n Tip: Use Encrypt save file if saving \n Tip: Make sure adblock is enabled (low) or install noscript (high security)" 600x0`</action>
</menuitem>
<menuitem>
<label>Credits</label>
<action>`Xdialog --wrap --screencenter --left --title "About" --msgbox "Growl v 2.4\nJanuary-February 2018\nUpdated by Lobster. Password Generator Code by SFR" 600x0`</action>
</menuitem>
<menuitem>
<label>Final thoughts ...</label>
<action>defaultmediaplayer −novideo /root/puppy-reference/audio/goodluck.m4a &</action>
</menuitem>
<label>Help</label>
</menu>  
</menubar>
<frame>
<pixmap>
<input file>/usr/share/midi-icons/lock-screen48.png</input>
</pixmap>
<text><label>GROWL 2.4</label></text>
</frame>
<hbox>
<button help>
<action>`Xdialog --wrap --screencenter --left --title "'$(gettext 'GROWL - Quick Start Help')'" --msgbox "'$(gettext 'GROWL is a simple, open, configurable, Puppy Security Tool. \n\n Making Puppy Linux for the desktop more secure than proprietary systems and security ignorance.\n\n GROWL is used for enhancing security, education, online services and probing ones set up. \n\n Lobster, Sat pm April 20 019')'" 600x0`</action>
</button>
<button cancel></button>
</hbox>
</vbox>
</window>'

gtkdialog4 --program Grrr
unset Grrr
Last edited by Lobster on Thu 23 Jan 2020, 09:07, edited 1 time in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#3 Post by Lobster »

Source Code release candidate in previous post

See first post for details
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#4 Post by musher0 »

Hello Lobster and all.

Please find attached a pet archive of your very useful GROWL2-4rc.
One installs it as usual.
A menu entry will show in the Network sub-group with an "Angry Dog" icon.

Works fine in jrb's upupBB32-light. Probably other Pups as well, since this is a script.

If any bizarroid behavior for this pet, please let me know. TIA.

IHTH.
Attachments
Growl-2.4rc_pic1.jpg
(78.6 KiB) Downloaded 257 times
Growl-2.4rc_pic2.jpg
(83.84 KiB) Downloaded 256 times
Growl-2.4rc_pic3.jpg
Initial appearance
(36.89 KiB) Downloaded 257 times
Growl-2.4rc.pet
(6.27 KiB) Downloaded 168 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

GROWL is 'No-Arch' Runs in any Puppy 32 or 64 Bit

#5 Post by mikeslr »

Thanks to musher0's post, yesterday, I took a look at GROWL 2.4. I had assumed it was only for 32-bit Puppies and wondered if their were any binaries which complicate is use under 64-bit Puppies. But Lobster created it using only bash-scripts. So it should run under any Puppy. It does under BionicPup64. Haven't tested all its components.

But thank you, Lobster.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#6 Post by Lobster »

But thank you, Lobster.
You are welcome. :D I was hoping to test it on a Puppi (Puppy on raspberry pi eg. Raspup) but ran into difficulty finding GTK4 and as I barely ever use the GROWL program ... well ... :oops:

The bash code is worth getting to understand because it is so simple but can be easily modified ... We Pups like simple ...

What I do recommend is understanding your browser. Flash (not our beloved moderator) is not as required as some believe and that can be left out/off. Java I don't need but javascript I do.

Puppy Powers On
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply