-
-
Connect to SSH from Terminal
When on a UNIX based computer you can connect to another terminal via SSH using this command The -p defines the port, while 22 is the default port for SSH some servers change their port to ward off potential hackers. Make sure you know what the port number is before trying to connect.
-
PHP CLI – Restrict to CLI Only
Sometimes it’s easier to run a PHP script than to run a UNIX bash/shell script, this code below will require the use of PHP CLI and prevent it from running in a web browser. Typically a good idea to place the PHP file out of the web directory as well. This code will not really…
-
PHP WordPress – Use Radius Server Login
Securing WordPress with Radius Server login. This project was created in mind to help secure WordPress but allow users an easier way to securely login without having to have a really long password to remember. While I do not go into creating the Radius server you can go to http://www.radiusdesk.com/getting_started/install_ubuntu_nginx to get help setting one…
-
PHP – Secure Data Transmission with AES-256-CBC in PHP (OpenSSL AES Encryption)
This is currently setup as a three file setup, I can not remember where I originally found the code so I can not take full credit for this post. I use the code below to send a username and date\time to another page. If the date\time is within 2 minutes display decrypted information, but if…
-
OpenSSL Generate Salt, Key and IV
The above code will generate this result (Make sure you set your MySuperSecretPassPhrase to something unique)
-
Chocolatey | Code | PowerShell
PowerShell / Chocolatey Install WAMP
Following the Chocolatey post we now install WAMP (Windows, Apache, MySQL, and PHP). Open PowerShell as administrator Configure WAMP for port 8080
-
Chocolatey
What is Chocolatey Chocolatey NuGet is a Machine Package Manager, somewhat like apt-get (UNIX), but built with Windows in mind. How to Install Open PowerShell ISE as admin (typical 64-bit path %windir%\sysWOW64\WindowsPowerShell\v1.0\PowerShell_ISE.exe) Set Execution Policy Permissions Run the installation script from https://chocolatey.org/install.ps1
-
Unix Shell – Set/Change IP
By default UNIX computers/servers are setup with a DHCP/Dynamic IP address, below is how to change the IP to static Before you do either process understand what these settings should be: Network Interace you plan to modify (eth0, eth1, etc.) IP Address (address) Subnet Mask (netmask) Default Gateway (gateway) Whether you choose the manual or…
-
Acrylic Proxy DNS Setup
While still configuring my changes to Raspberry Pi Setup Proxy Server this works on an individual computer. NOTE: I have this setup mainly for the Wi-Fi, if you want it for wired connections you will need to change Wi-Fi to “Ethernet” or “Ethernet 2” Step 1: Download and Setup Acrylic Acrylic was created and is…