Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Sep 2014, 14:09
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Security/Privacy
Vpnbook connect .pet
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
ashes

Joined: 22 Aug 2011
Posts: 46

PostPosted: Thu 28 Nov 2013, 14:29    Post_subject:  Vpnbook connect .pet  

a simple pet to connect to vpnbook, a free openvpn service

openvpn is needed
roxterm can be helpful due to copy/paste capabilities for password
I use lynx as browser to get the password from the web and copy paste it into the openvpn-shell, but the script is set to deaultbrowser

I'm sure there are more sophisticated ways of facilitating the connection process, suggestions are welcome
openvpn-2.3.2-i486.pet
Description 
pet

 Download 
Filename  openvpn-2.3.2-i486.pet 
Filesize  252.3 KB 
Downloaded  280 Time(s) 
vpnbook.pet
Description 
pet

 Download 
Filename  vpnbook.pet 
Filesize  2.96 KB 
Downloaded  262 Time(s) 
Back to top
View user's profile Send_private_message 
chapchap70

Joined: 18 Nov 2010
Posts: 127
Location: The Island Of Long (NY, USA)

PostPosted: Fri 29 Nov 2013, 23:34    Post_subject:  

Scott Jarvis put a little Gui program in his latest Akita Puppy iso called Internet Security Helper. OpenVPN is one of the apps/scripts in it.

When the openvpn button is clicked, a terminal window opens up and a "auth username" and "auth password" prompts. A splash screen pops up with the current vpnbook password that it retrieved from the site.
Back to top
View user's profile Send_private_message 
ashes

Joined: 22 Aug 2011
Posts: 46

PostPosted: Mon 02 Dec 2013, 19:00    Post_subject:  

the Internet Security Helper is a great program.
in the vpn section it unfortunately it doesn't get the actual vpnbook password.
Back to top
View user's profile Send_private_message 
chapchap70

Joined: 18 Nov 2010
Posts: 127
Location: The Island Of Long (NY, USA)

PostPosted: Mon 02 Dec 2013, 19:28    Post_subject:  

The Internet Security Helper program that you can get from the forum (I think a few threads from this one) doesn't download the password; the password listed was the current one at the time he made the script. One would have to go to vpnbook and look for the current password if this version is used. I believe this is version 0.1

The Akita Linux iso has the Internet Security Helper within it that downloads the current password. I think this is version 0.2 I downloaded the iso and took the script from there.

I don't want to presume and paste the script I have without asking. Maybe changing the script you got to download the current password is easy?
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Wed 04 Dec 2013, 03:19    Post_subject:  

chapchap70 wrote:
The Internet Security Helper program that you can get from the forum (I think a few threads from this one) doesn't download the password; the password listed was the current one at the time he made the script. One would have to go to vpnbook and look for the current password if this version is used. I believe this is version 0.1

The Akita Linux iso has the Internet Security Helper within it that downloads the current password. I think this is version 0.2 I downloaded the iso and took the script from there.

I don't want to presume and paste the script I have without asking. Maybe changing the script you got to download the current password is easy?

yeah, post 0.2 thats fine..

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
chapchap70

Joined: 18 Nov 2010
Posts: 127
Location: The Island Of Long (NY, USA)

PostPosted: Thu 05 Dec 2013, 19:34    Post_subject:  

Thanks Scott. Cool

Edit: After looking over what I have in my Fatdog, I realized Internet Security Helper 0.2 has 497 lines of code. Below is the applicable VPN code. I have 3 netsecurity scripts in my /usr/sbin/ directory because I tried a few different things to get it to work in my Fatdog setup.

Code:
#!/bin/sh
#internet security tool for akita linux
#below is URL of settings file for OpenVPN client (.ovpn) [Euro1|Euro2|UK1|US1]:
#http://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-Euro1.zip


run_vpn () {
   VPNLIST="Choose a service
http://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-Euro1.zip
http://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-Euro2.zip
http://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-UK1.zip
http://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-US1.zip
http://www.freevpnsoftware.net/downloads/US.freevpnsoftware.net.ovpn
http://www.freevpnsoftware.net/downloads/UK.freevpnsoftware.net.ovpn"
   echo "$VPNLIST" > /tmp/vpnlist_$(whoami).txt
   while read VPN; do
      NAME="`echo "$VPN" | cut -f5 -d'/'`"
      VPNITEMS="$VPNITEMS<item>$NAME</item>"
   done</tmp/vpnlist_$(whoami).txt
   VPNCHOOSER="<window width-request=\"300\" title=\"Choose your VPN\"><frame><text><label>Choose a VPN setup</label></text><combobox><variable>VPNFILE</variable>$VPNITEMS</combobox><hbox><button ok></button><button cancel></button></hbox></frame></window>"
   export VPNCHOOSER
   RETVAL="`gtkdialog -c -p VPNCHOOSER`"
   eval "$RETVAL"
   mkdir -p ~/Downloads/vpn
   if [ "$EXIT" = "OK" -a "$VPNFILE" != "Choose a service" ]; then
      killall openvpn
      rm ~/Downloads/vpn/* &>/dev/null
      VPNURL="`cat /tmp/vpnlist_$(whoami).txt | grep "/$VPNFILE"`"
      wget  --no-check-certificate --no-clobber -t 5 "$VPNURL" -O ~/Downloads/vpn/$VPNFILE
      cd ~/Downloads/vpn
      if [ "`ls -1 | grep $VPNFILE | grep -i 'vpnbook'`" != "" ];then
         unzip $VPNFILE
         VPNFILE="`find /root/Downloads/vpn/ -iname "*tcp443*.ovpn*"`"
      fi
      #rxvt -e openvpn  --auth-user-pass /tmp/vpnbook_login.txt --config "$VPNFILE" &
      rxvt -e openvpn --auth-nocache --config "$VPNFILE" &
      sleep 0.5
      if [ "`echo $VPNFILE | grep -i vpnbook`" != "" ];then #if vpnbook settings
         vpnbook_pword=$(wget --no-check-certificate vpnbook.com -q -O - | grep 'Password:' | cut -f2 -d':' | head -1 | cut -f1 -d'<')
         #add the pword file into the settings
         #echo "vpnbook\n$vpnbook_pword" > /tmp/vpnbook_login.txt
         #sed -i 's|auth-user-pass|auth-user-pass /tmp/vpnbook_login.txt|' "$VPNFILE"
         Xdialog --title "Login for VPNBook" --msgbox "VPNBook is a free, secure VPN service.
Enter these details in the terminal window, when prompted.

If successful, you should see 'Sequence Completed',
and you can then minimize the terminal window. If
you close the terminal window, the VPN will disconnect.

Login Details (see http://vpnbook.com for latest):

User:      vpnbook
Pass:       $vpnbook_pword
" 0 0
      fi
   fi
}
export -f run_vpn

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Security/Privacy
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0769s ][ Queries: 12 (0.0191s) ][ GZIP on ]