Like Us

Web Developpement & SharePoint Tricks

Fiks IT

Everything began from nothing.

Google+ Badge

Theme images by MichaelJay. Powered by Blogger.

Google+ Followers

Total Pageviews

Blog Archive

we are social

recent posts

latest tweets

flickr photos

random posts

About us

Pages

recent posts

random posts

three columns

Contact Form

Name

Email *

Message *

Translate

grids

like us on facebook

Popular

Ads

Saturday, 15 April 2017

How to create a folder with Password ? in windows

How to create a folder with Password ?



1.Open your notepad application and write this Bat code:


cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Hide your folder Y=yes N=No(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo your password Please
set/p "pass=>"
if NOT %pass%== Password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Bien Bloquer GG
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
2. replace your "Password" with your own password that you want to use.

3. save the file with ".bat" extension.

don't forget to add ".bat"

4.Double-click on the bat script.
Voici à quoi ressemble le fichier enregistré
5. a new folder called "Private" will be created , put all your files and documents to be hided.




6.When you finish , reexecte the script to hide the private folder, you will get a message , yes or now to hide files 

7.If you click yes , folder will be hided

8.s to review your files , reexecute the script and put the password,  your private folder will be displayed. 


Thanks
Read More

Thursday, 6 April 2017

Configure Pfsense Firewall

In this article our focus is Pfsense setup, basic configuration and overview of features available in the security distribution of FreeBSD. In this tutorial we will run network wizard for basic setting of firewall and detailed overview of services. After the installation process following snapshot shows the IP addresses of WAN/LAN and different options for the management of Pfsense firewall.
options
After setup , following window appear which shows the url for configuration of Pfsense.
URL for gui
Open above given URL in the browser and login with username admin and password pfsense
login_username_password
After successful login, following wizard appears for the basic setting of Pfsense firewall.  However setup wizard option can be bypassed and user can run it from the System menu from the web interface.
Click on the Next button to start basic configuration process on Pfsense firewall.
wizard_start
Setting hostname, domain and DNS addresses is shown in the following figure.
basic_setting_wizard
Setting time zone is shown in the below given snapshot.
time_setting
Next window shows setting for the WAN interface. By defaults Pfsense firewall block bogus and private networks.
wan setting
Setting LAN IP address which is used to access the Pfsense web interface for further configuration.
lan setting
By default password for web interface is "pfsense". Enter new password for admin user  on the following window to access the web interface for further configuration.passwordClick on the "reload" button which is shown below. It applies the setting and redirect firewall user to main dashboard of Pfsense.reload
As shown in the following snapshot, Pfsense dashboard shows system information (such as cpu details, os version, dns detail, memory consumption) and status of ethernet/wireless interfaces etc.

dashboard

Menu detail

PFsense consist of System, interfaces, firewall,services,vpn,status,diagnostics and help menus.
all menu

System Menu

Sub menus of System is given below.system menuIn the Advanced sub menu user can perform following operations.
  1. Configuration of web interface
  2. Firewall/Nat setting
  3. Networking setting
  4. System tuneables setting
  5. Notification setting
advanced-systemmenu
In the Cert manager sub menu, firewall administrator generates certificates for CA and users.
cert-manager-systemmenu
In the Firmware sub menu, user can update Pfsense firmware manually/automatically. User can take full backup of Pfsense configurations.
firmware-systemmenu
In the General Setup sub menu, user can change basic setting such as hostname and domain etc.
general setup-systemmenu
As menu title indicates, user can enable/disable high availability feature from this sub menu.
highavail-systemmenu
Packages sub menu provides package manager facility in the web interface for Pfsense .
packages-system menu
User can perform gateway and route management using Routing sub menu.
routing-system menu
Setup Wizard sub menu opens following window which start basic configuration of Pfsense.
wizard_start
Management of user can be done from the User manager sub menu.
usermanager-system

Interfaces Menu

This menu is used for the assignment of interfaces (LAN/WAN), VLAN setting,wireless and GRE configuration etc.
Interfaces setting

Firewall Menu

Firewall is the main and core part of  Pfsense distribution  and it provides following features.

firewall-menuAliases

Aliases are defined for real hosts, networks or ports and they can be used to minimize the number of changes.
firewall-aliases

NAT (Network Address Translation)

NAT binds a specific internal address to a specific external address. Incoming traffic from the Internet to the specified IP will be directed toward the associated internal IP.
firewall-nat

Firewall Rules

Firewall rules control what traffic is allowed to enter an interface on the firewall. After traffic is passed on the interface, it enters an entry in the state table is created.
firewall-rules

Schedules

Firewall rules can be scheduled so that they are only active at certain times of day or on certain specific days or days of the week.

firewall-schedulesTraffic Shaper

Traffic shaping is the control of computer network traffic in order to optimize performance and lower latency.

firewall-traffic shapper

Virtual IPs

Virtual IPs add knowledge of additional IP addresses to the firewall that are different from the firewall's real interface addresses.
firewall-virtualipaddresses

Services Menu

Services menu shows  services which are provided by the Pfsense distribution along firewall.
services-menuNew program/software installed for some specific service is also shown in this menu such as snort. By default following services are listed in services menu.

Captive portal

The captive portal functionality in Pfsense allows securing a network by requiring a username and password entered on a portal page.
services-captive portal

DHCP Relay

The DHCP Relay daemon will relay DHCP requests between broadcast domains for IPv4 DHCP.

services-dhcp relay

DHCP Server

User can run DHCP service on the firewall for the network devices.

services-dhcp server

DNS Forwarder/Resolver/Dynamic DNS

DNS different services can be configured on the Pfsense firewall.

services-dynamic dns client

services-dns resolver

services-dns forwarder

IGMP Proxy

User can configure IGMP  on the  Pfsense firewall from services menu.
services igmp

Load Balancer

Load Balancing is one of the important feature which is also supported by the Pfsense firewall.
services load balancer

SNMP (Simple Network Management Protocol)

Pfsense supports all versions of snmp for remote management of firewall.
services snmp

Wake on Lan

Using this feature packet  sent to a workstation on a locally connected network which will power on a workstation.
services-wake on lan

VPN Menu

It is one of the most important feature of Pfsense. Its supports following types of vpn configuration.

VPN IPsec

IPsec is a standard for providing security to IP protocols via encryption and/or authentication.
vpn-ipsec

L2TP IPsec

L2TP/IPsec is a common VPN type that wraps L2TP, an insecure tunneling protocol, inside a secure channel built using transport mode IPsec.
vpn- l2tp

OpenVPN

OpenVPN is an Open Source VPN server and client that is supported on pfSense.

vpn openvpn

Status Menu

It shows the status of services provided by Pfsense such as dhcp server, ipsec and load balancer etc.
status-menu

Diagnostic Menu

This menu helps administrator/user for the rectification of  Pfsense issues or problems.
diagnosics menu

Help Menu

This menu provides links for different useful resources such as  FreeBSD handbook,developer wiki, paid support and pfsense book.
help menu

Conclusion

In this article our focus was on the basic configuration and  features set of Pfsense distribution.  It is based on FreeBSD  distribution and widely used due to security and stability features. In our future articles on Pfsense, our focus will be on the basic firewall rules  setting, snort (IDS/IPS) and IPSEC VPN configuration.
Read More

Friday, 31 March 2017

Semaphore exemple

this is an exemple in C, to use thread:

//progamme prod_cons.c
#include <semaphore.h>
#include <unistd.h> //pour sleep
#include <pthread.h>
#include <stdio.h>
#define N 3
sem_t occupe, libre ;
int tampon[N];
void* consommateur(void *);
void* producteur(void *);
int main() 
{ pthread_t th1,th2;
sem_init(&occupe,0,0); // initialiser les sémphores
sem_init(&libre,0,N);
pthread_create(&th1, NULL,consommateur ,NULL); //cree les threads
pthread_create(&th2,NULL,producteur,NULL);
pthread_join(th1,NULL); // attendre la fin des threads
pthread_join(th2,NULL);
      printf("ici main, fin des threads \n");
return 0;
}
void* producteur(void *depot)
{ int ip=0, nbprod=0, objet=0;
do {
        sem_wait(&libre);
// produire
        tampon[ip]=objet;
        sem_post(&occupe);
    printf("\n ici prod. : tampon[%d]= %d\n", ip,objet);
        objet++;        nbprod++;
        ip=(ip+1)%N;
        }  while ( nbprod<=30 );
        pthread_exit(NULL);
}
void* consommateur(void *retrait)
{
  int ic=0, nbcons = 0, objet;
do { sem_wait(&occupe);
// consommer
        objet = tampon[ic];
        sem_post(&libre);
        printf("\n ici cons. :tampon[%d]= %d\n", ic, objet);
        ic=(ic+1)%N;
        nbcons++;
        sleep(2);
}  while ( nbcons<=30 );
pthread_exit(NULL);}
Read More

Monday, 27 March 2017

Progest System

Try our new application version Béta:

Progest 
it's a Simple application to manage a project , 
create modules, Tasks, affect ressources.. 




Login : user
Password: user


there is some functionnlity not available. 

it's will be available in the next version soon 

Thanks for your comments. 

Read More

Wednesday, 22 March 2017

PropretyBag with JavaScript in SharePoint 2013




Hello,
as we know, Property bag are very important in SharePoint development, and to get it with JavaScript is very simple :



//wait until client object model dependencies are loaded before executing our code
ExecuteOrDelayUntilScriptLoaded(getWebProperties, "sp.js");
var webProperties;
function getWebProperties() {
    var clientContext = new SP.ClientContext.get_current();
    webProperties = clientContext.get_web().get_allProperties();
    clientContext.load(webProperties);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.getWebPropertiesSucceeded), Function.createDelegate(this, this.onQueryFailed));
}
function getWebPropertiesSucceeded() {
          //debugger; //use this to force a break here
    //returns an object with all properties. 
          //Use the quick watch to expand this out to see all of them.
    var allProps = webProperties.get_fieldValues();
    var customProp = "";
         //make sure the property is there before using it.
    if(webProperties.get_fieldValues().CustomSite_Version != undefined)
    {
        var customProp = webProperties.get_fieldValues().CustomSite_Version;
    }
    alert(customProp);
}
function onQueryFailed(args, sender)
{
     //handle errors here
}



-----------
var customProp = webProperties.get_fieldValues().CustomSite_Version;
Read More
© 2014 Fiks IT. Designed by Bloggertheme9
Powered by Blogger.