One might ask "why do you need ssh?" And if you don't know what ssh is, learn it? It's very useful, you'll thank me someday.
The problem I was having is that ssh is shipped with Unix operating systems such as Linux and iOS but not on Windows. What if I need to securely access my files on my Windows computer, what will I do? No worries you can have ssh on on Windows but it takes extra work. You'll need to install cygwin a Unix-like environment and command-line interface for Windows. Click Me for detailed instructions on how to set it up.
Showing posts with label security. Show all posts
Showing posts with label security. Show all posts
Wednesday, April 11, 2012
Thursday, February 9, 2012
Whitelist. A Javascript Object
Blacklisted are those who access were removed and whitelisted are those who are specifically granted access or privilege. Below is a Javascript whitelist object.
//START OBJECT
var white = {
list: new Array(),
request: function(permitted){
for(var value in this.list){
if(permitted == this.list[value]){
return true;
}
}
}
}
white.list = ['jon','max']; //set who has can have access
//END
//Lets test the object
if(white.request('jon')){
//if access granted
alert('welcome VIP')
}else{
//not granted access
alert('Access was never granted to you');
}
Thursday, November 10, 2011
Whitelist. A Javascript Object
Blacklisted are those who access were removed and whitelisted are those who are specifically granted access or privilege. Below is a Javascript whitelist object.
//START OBJECT
var white = {
list: new Array(),
request: function(permitted){
for(var value in this.list){
if(permitted == this.list[value]){
return true;
}
}
}
}
white.list = ['jon','max']; //set who has can have access
//END
//Lets test the object
if(white.request('jon')){
//if access granted
alert('welcome VIP')
}else{
//not granted access
alert('Access was never granted to you');
}
Wednesday, September 28, 2011
Hide a file in Windows
There various ways to make a file hidden in windows but the example below will make it really hidden, it's like magic.
open CMD
To select file:
C:\Users\Fel\Dektop>attrib [filename] +h +s
The file will disappear. You cannot find it in the GUI or the CMD when dir command is used. It also will not show if you have the "show hidden files" selected in the folder options. (make sure you hide it first to make it work)
Now for the prestige (bring it back)
C:\Users\Fel\Dektop>attrib [filename] -h -s
open CMD
To select file:
C:\Users\Fel\Dektop>attrib [filename] +h +s
The file will disappear. You cannot find it in the GUI or the CMD when dir command is used. It also will not show if you have the "show hidden files" selected in the folder options. (make sure you hide it first to make it work)
Now for the prestige (bring it back)
C:\Users\Fel\Dektop>attrib [filename] -h -s
Monday, August 15, 2011
Principle of Least Privilege
The principle of least privilege can be used to improve the security of any computer system. It's a basic but important principle that is often overlooked. The principle is as follows:
A user (or process) should have the lowest level of privilege required to perform his assigned task.
It applies in MySQL as it does elsewhere. For example, to run queries from the Web, a user does not need all the privileges to which "root" has access. You should therefore create another user who has only the necessary privileges to access the database you just created.
Excerpt from PHP and MySQL Web Development page 223
A user (or process) should have the lowest level of privilege required to perform his assigned task.
It applies in MySQL as it does elsewhere. For example, to run queries from the Web, a user does not need all the privileges to which "root" has access. You should therefore create another user who has only the necessary privileges to access the database you just created.
Excerpt from PHP and MySQL Web Development page 223
Subscribe to:
Posts (Atom)