Sunday, December 23, 2018

KVS PGT Computer Science 23 Dec 2018 Answer Key

December 23, 2018 0

Monday, November 19, 2018

.INFOWAIT Files Virus – How to Remove It and Restore Files

November 19, 2018 1
.INFOWAIT Files Virus – How to Remove It and Restore Files

.INFOWAIT Files Virus – How to Remove It and Restore Files



Threat Summary

Name.INFOWAIT Files Virus
TypeRansomware, Cryptovirus
Short DescriptionEncrypts files on your PC and then asks for ransom to be paid to get them to work again.
Symptoms.INFOWAIT ransomware encrypts your files via AES and RSA ciphers and then adds the .INFOWAIT extension and the !readme.txt ransom note.
Distribution MethodSpam Emails, Email Attachments, Executable files
Detection ToolSee If Your System Has Been Affected by .INFOWAIT Files Virus
Download
Malware Removal Tool

User ExperienceJoin Our Forum to Discuss .INFOWAIT Files Virus.
Data Recovery ToolWindows Data Recovery by Stellar Phoenix Notice! This product scans your drive sectors to recover lost files and it may not recover 100% of the encrypted files, but only few of them, depending on the situation and whether or not you have reformatted your drive.

.INFOWAIT Ransomware – Infection Methods

The .INFOWAIT variant of .STOP ransomware may spread via different methods. One of them is via a dropper which executes a malicious script that is spread online and this is how researchers may have discovered it. If this script or file lands on your PC via a web link or a malicious redirect, chances are your PC becomes infected immediately.
In addition to this, the .INFOWAIT version of STOP ransomware may also be spreading via malicious e-mails. These types of e-mails are often sent as e-mails that are from important companies, like PayPal, eBay, Amazon and others. The e-mails contain the virus as a malicious e-mail attachment, the main goal of which is to trick victims that it is an important document, like an invoice or some other type of receipt or a banking letter.

.INFOWAIT Files Virus – More Information

As soon as the .INFOWAIT ransomware virus has infected your computer, the rasnomware immediately may drop it’s payload files. They may be located in the following Windows directories:
  • %AppData%
  • %Local%
  • %LocalLow%
  • %Roaming%
  • %Temp%
In addition to this, the .INFOWAIT files virus may also create various different types of registry entries in Windows, the main idea of which is to run the payload automatically. The targeted keys in the Windows Regstry for this to happen are usually the following:
→ HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization
HKEY_CURRENT_USER\Control Panel\Desktop\ScreenSaveTimeOut
HKEY_CURRENT_USER\Control Panel\Desktop
In addition to this, the .INFOWAIT ransomware also drops the ransom note, called !readme.txt on the victmized comptuers to let victims know what is going on:
Text from Image:
Your databases, files, photos, documents and other important files are encrypted and have the extension: .INFOWAIT
The only method of recovering files is to purchase an decrypt software and unique private key.
After purchase you will start decrypt software, enter your unique private key and it will decrypt all your data.
Only we can give you this key and only we can recover your files.
You need to contact us by e-mail BM-2chnzj9ovn5qu2MnNMK4j3quuXBKo4h©bitmessage.ch send us your personal ID and wait for further instructions.
For you to be sure, that we can decrypt your files – you can send us a 1-3 any not very big encrypted files and we will send you back it in a original form FREE.
Price for decryption $290 if you contact us first 72 hours.
E-mail address to contact us:
BM-2chnzj9ovn5qu2MerK4j3quuXBKo4h©bitmessage.ch
Reserve e-mail address to contact us:
savefiles©india.com
Your personal id: {ID HERE}
But this is not all. The .INFOWAIT files virus may also delete the shadow copies and backed up files on your PC and the outcome of that may be that you could be unable to restore files via Windows Backup. The virus may do this by executing the folliwing commands in Windows Command Prompt:
→ sc stop VVS
sc stop wscsvc
sc stop WinDefend
sc stop wuauserv
sc stop BITS
sc stop ERSvc
sc stop WerSvc
cmd.exe /C bcdedit /set {default} recoveryenabled No
cmd.exe /C bcdedit /set {default} bootstatuspolicy ignoreallfailures
C:\Windows\System32\cmd.exe” /C vssadmin.exe Delete Shadows /All /Quiet

.INFOWAIT Ransomware – Encryption Process

To encrypt files on your computer, the virus uses the AES and RSA 1024-bit encryption algorithms in combination. This process makes decryption very difficult, unless you know the master decryption keys if there are such left behind by the crooks or unless there is a bug in the ransomware virus.
To encrypt files, the .INFOWAIT ransomware virus may first detect the most widely used of them – documents, images, videos, backed up files, banking documents and other types of files.
The .INFOWAIT files virus may scan for the files based on their file extensions, for example:
→ “PNG .PSD .PSPIMAGE .TGA .THM .TIF .TIFF .YUV .AI .EPS .PS .SVG .INDD .PCT .PDF .XLR .XLS .XLSX .ACCDB .DB .DBF .MDB .PDB .SQL .APK .APP .BAT .CGI .COM .EXE .GADGET .JAR .PIF .WSF .DEM .GAM .NES .ROM .SAV CAD Files .DWG .DXF GIS Files .GPX .KML .KMZ .ASP .ASPX .CER .CFM .CSR .CSS .HTM .HTML .JS .JSP .PHP .RSS .XHTML. DOC .DOCX .LOG .MSG .ODT .PAGES .RTF .TEX .TXT .WPD .WPS .CSV .DAT .GED .KEY .KEYCHAIN .PPS .PPT .PPTX ..INI .PRF Encoded Files .HQX .MIM .UUE .7Z .CBR .DEB .GZ .PKG .RAR .RPM .SITX .TAR.GZ .ZIP .ZIPX .BIN .CUE .DMG .ISO .MDF .TOAST .VCD SDF .TAR .TAX2014 .TAX2015 .VCF .XML Audio Files .AIF .IFF .M3U .M4A .MID .MP3 .MPA .WAV .WMA Video Files .3G2 .3GP .ASF .AVI .FLV .M4V .MOV .MP4 .MPG .RM .SRT .SWF .VOB .WMV 3D .3DM .3DS .MAX .OBJ R.BMP .DDS .GIF .JPG ..CRX .PLUGIN .FNT .FON .OTF .TTF .CAB .CPL .CUR .DESKTHEMEPACK .DLL .DMP .DRV .ICNS .ICO .LNK .SYS .CFG”
After this is done, the virus encrypts the files so that they become no longer useful and they begin to appear like the following:

Remove .INFOWAIT STOP Ransomware and Restore Files

Before removing this ransomware virus, we advise you to first backup all your data, even though it is encrypted, since you risk loosing it permanently.
For the manual or automatic removal of .INFOWAIT ransomware, we suggest that you follow the removal instructions underneath this article. They have been made with the main idea to help you remove this virus based on what you know about it and how much experience you have for the removal. Be advised that for maximum effectiveness, security researchers advise removing the .INFOWAIT ransomware virus automatically with the aid of specific anti-malware software. Such tool is fit for the purpose it serves, since it aims to scan your PC and delete all the ransomware’s related files and objects and make sure that the risk of infection on your PC is minimal in the future.
If you want to try and restore files, encrypted by the .INFOWAIT files virus, we strongly suggest that you attempt using the alternative methods for file recovery we have stated below. They have been created with the main idea to best assist you in restoring as many files as possible, but they come with no guarantee to work at a 100%.
Note! Your computer system may be affected by .INFOWAIT Files Virus and other threats.
Scan Your PC with SpyHunter

Friday, August 24, 2018

Mongo DB Comparison Operators

August 24, 2018 2

Mongo DB Comparison Operators

In RDBMS, you can use comparison operators like as >, <, <=, and >= while writing a SQL query. Mongo shell also has the same comparison operators but they are used with a different notation. Here is a comparison list of Mongo shell operators and SQL operators.
Mongo Shell Operators SQL Operators

Mongo Shell Operators
SQL Operators
gt
>
lt
<
gte
>=
lte                                                                                          
<=                   


AND and OR Operators
Like RDBMS, MongoDB also supports OR and AND operators. You can use $or for an OR operator and $and for an AND operator.

db.users.find( { $or : [{lastname :"chauhan",lastname:"kumar"}] })
db.users.find( { $and : [{firstname :"deepak",lastname:"kumar"}] })

MongoDB Installation and Configuration

August 24, 2018 0
MongoDB Installation and Configuration

MongoDB Installation and Configuration

Before going to start Hands-On MongoDB, let's first install and configure it. Here, I am using windows OS to install and configure it. First download the latest release of MongoDB from MogoDB Inc. for windows OS.

Downloading MongoDB

Installing MongoDB
Just do double click on MongoDB setup file and follow the following steps to install it.






MongoDB server is installed at following location in my machine.


Configuring MongoDB and Working with MongoDB Shell
After installing MongoDB on your windows machine, you need to start the MongoDB shell to manage MongoDB Server. To start it follow the following steps.

Configure the MongoDB path using environment variable path for the user.

In this variable value just append your mongodb installation dir path with bin folder using semicolon (;), like in my case it is C:\Program Files\MongoDB\Server\3.0\bin. Refer the screen shot for it. After that, click OK.

Open Command Prompt and go to your mongodb installation dir bin folder

cd C:\Program Files\MongoDB\Server\3.0\bin
Start MongoDB server by typing mongod.exe

If successful, your MongoDB server is started as shown below:


Now open another Command Prompt and run mongo command as:

mongo
If successful, your MongoDB shell is started as shown below:

Run help command to get information about the MongoDB shell.

Now it's ready to manage and query your MongoDB database. That's it for now!

Creating and Querying Mongo Database with Mongo Shell

August 24, 2018 0
Creating and Querying Mongo Database with Mongo Shell

Creating and Querying Mongo Database with Mongo Shell

Create Database
Like RDBMS, there is no command to create a database in MongoDB. MangoDB will create a new database on the fly when you will insert the first record into the defined collection.

use <db_name> command is used to create database and db.<collection_name>.insert() command is used to create a collection and insert a record into it. Also, this collection will be saved to create database.


Show Databases
Now, run show dbs command to see the list of created databases. Refer above fig.

Insert Document
You can add a document item with the help of insert() method. Refer above fig.

Note
Make sure you have started your mongo db server in a separate command prompt by running following commands:

cd C:\Program Files\MongoDB\Server\3.0\bin
C:\Program Files\MongoDB\Server\3.0\bin\mongod.exe
If successful, your MongoDB server is started as shown below:


Update Document
You can modify an existing document item with the help of update() method. You must specify the document item which you want to modify. Refer below fig.


Find Document
You can find an existing document item with the help of find() method. You must specify the document item which you want to find. Refer above fig.

Delete Document
You can delete an existing document item with the help of remove() method. You must specify the document item which you want to delete.


What do you think?
That’s it for now! I hope you get a good idea how to use Mongo shell to query your mongo database. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

Tuesday, August 14, 2018

Mongodb tool expain their work

August 14, 2018 1
Welcome to MongoDB!

COMPONENTS
  mongod - The database server.
  mongos - Sharding router.
  mongo  - The database shell (uses interactive javascript).

UTILITIES

  mongodump         - Create a binary dump of the contents of a database.
  mongorestore      - Restore data from the output created by mongodump.
  mongoexport       - Export the contents of a collection to JSON or CSV.
  mongoimport       - Import data from JSON, CSV or TSV.
  mongofiles        - Put, get and delete files from GridFS.
  mongostat         - Show the status of a running mongod/mongos.
  bsondump          - Convert BSON files into human-readable formats.
  mongoreplay       - Traffic capture and replay tool.
  mongotop          - Track time spent reading and writing data.
  install_compass   - Installs MongoDB Compass for your platform.

Friday, August 10, 2018

Insert Details Into Bson Document Using C# And MongoDB

August 10, 2018 0
Insert Details Into Bson Document Using C# And MongoDB

Insert Details Into Bson Document Using C# And MongoDB


using System;
using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using MongoDB.Bson;
namespace MyAPPConsole{    class Program    {        public static void Main(string[] args)        {            var document = new BsonDocument            {                {"EmpName","EmpAge"} //creating the document structure            };            document.Add("venki", 23); //Adding details into BsonDocument            document["Level"] = "level2"; //Adding additional column
            var arr = new BsonArray();//creating the array            arr.Add(new BsonDocument("RefferedEMP", "James")); //adding data to array            document.Add("Hired", arr); // adding the array to document.
            Console.WriteLine(document);            Console.ReadLine();        }        }}


Creating Nested BSON Documents
Nested BSON documents are created by setting the value of an element to a BSON document. For example:
BsonDocument nested = new BsonDocument {
    { "name", "John Doe" },
    { "address", new BsonDocument {
        { "street", "123 Main St." },
        { "city", "Centerville" },
        { "state", "PA" },
        { "zip", 12345}
    }}
};
                                         OR                                                                                    
        var con = ConfigurationManager.ConnectionStrings["MongoConnectionNew"].ConnectionString;
        MongoClient Client_ = new MongoClient(con);
        MongoServer server = Client_.GetServer();
        MongoDatabase data=server.GetDatabase("CRUD");
        MongoCollection col = data.GetCollection("CRUDCOL");
        var rr = new BsonArray();
        rr.Add(new BsonDocument("Name", "Hariom"));
        rr.Add(new BsonDocument("Name", "Kishor"));
        rr.Add(new BsonDocument("Name", "Naveen"));
        col.InsertBatch(rr);







Wednesday, August 08, 2018

Mongodb 2.4 32 not create collection after filesize 2gb but datasize1mb

August 08, 2018 0
Mongodb 2.4 32 not create collection after filesize 2gb but datasize1mb

MongoDB 2.4 32 not create collection after filesize 2gb but data size 1 MB

I finally found the root cause of this problem where fileSize is ~=2GB and dataSize is few MBs and its solution.
Root cause - If the database uses a capped collection, MongoDB 2.4 MMAP storage engine allocates a fixed amount of disk space for this capped collection. Any attempt to create new collections after the datafile size is reached will cause MongoDB 2.4 to throws error.
cant map file memory-mongo requires 64 bit build for larger datasets
In my case, I was creating capped collections dynamically.
Solution - Any operations using the mongodcommand to repair database will fail as it requires additional memory to perform these operations.
So use mongodump to get the database dump along with --repair which will create a dump without "capped" limit for all capped collections and then mongorestore it
mongodump --username <username> --password <password> --dbpath <path> --db <db> --out <path> --repair
Step 2 - Drop database
db.dropDatabase()
Step 3 - Restore the dump
mongorestore --username <username> --password <password> --dbpath <path> --db <db> <path>
db.runCommand({"convertToCapped": "mycoll", size: 100000});
Hope this helps.

db.stats()


{ 
    "db" : "admin", 
    "collections" : NumberInt(40), 
    "objects" : NumberInt(998), 
    "avgObjSize" : 196.9498997995992, 
    "dataSize" : NumberInt(196556), #~1MB
    "storageSize" : 1478905856.0, 
    "numExtents" : NumberInt(42), 
    "indexes" : NumberInt(50), 
    "indexSize" : NumberInt(433328), 
    "fileSize" : 2197028864.0, #2GB
    "nsSizeMB" : NumberInt(16), 
    "dataFileVersion" : {
    "major" : NumberInt(4), 
    "minor" : NumberInt(5)
    }, 
    "ok" : 1.0
}