Pages

Tuesday, February 23, 2016

How to Hide Files in Windows System Using ADS(Altanate Data Stream)

How to Hide File Using Python 

Alternate Data stream is a substructure of a NTFS file system.Alternate Data Stream(ADS) can not  detect by common software or tools and it is attach with normal file or folder in hidden layer.

File Data and Attributes <--> Default Data Stream <-->Altanate Data Stream

so first create folder and inside that folder create python file name hide.py and also create text file hello.txt and also add image file photo.jpg we are going to hide this photo.jpg file inside the hello.txt file

What things we need to hide file using python
[+]install python 2.7 to your windows computer
[+]install pyADS 
open command prompt and type 
pip install pyADS


then it will install pyADS for you 
ok now open hide.py file in text editor or python IDE.i use pycharm

then type
import argparse
from pyads import ADS
we use argparse to get user input in command prompt

then create our main function
 def Main():
and create variable name parse and then it take input from argparse method
parser=argparse.ArgumentParser()
then we can get user input to scan for ADS files
Add file to ADS
Remove file from ADS
Extract ADS file

parser.add_argument("file",help="Specify File or Directory")
parser.add_argument("-o","--output",help="Print output to terminal",action="store_true")
parser.add_argument("-a","--add",help="Add stream to <file>",type=str)
parser.add_argument("-e","--extract",help="Extract All",action="store_true")
parser.add_argument("-r","--remove",help="Remove All",action="store_true")
 
Whole Program
import argparse
from pyads import ADS


def Main():
    parser=argparse.ArgumentParser()
    parser.add_argument("file",help="Specify File or Directory")
    parser.add_argument("-o","--output",help="Print output to terminal",action="store_true")
    parser.add_argument("-a","--add",help="Add stream to <file>",type=str)
    parser.add_argument("-e","--extract",help="Extract All",action="store_true")
    parser.add_argument("-r","--remove",help="Remove All",action="store_true")

    args=parser.parse_args()
    if args.file:
        handler=ADS(args.file)

        if args.add:
            handler.addStream(args.add)
        if handler.containStreams():
            for stream in handler.getStreams()[:]:
                if args.output:
                    print(args.file+":"+stream)
                if args.extract:
                    fh=open(stream,"wb")
                    fh.write(handler.getStreamContent(stream))
                    fh.close()
                if args.remove:
                    handler.removeStream(stream)
    else:
        print(parser.usage)



Main()
Lets try it
hide file inside
see text file size is 0byte


 open folder and type cmd then it will open Command prompt from there
so type python hide.py hello.txt -a photo.jpg 


now it will combine the photo inside the text file we can check it using python hello.txt -o to scan the ads file see now photo is inside the text file.

now we can check the text file size it is still 0byte

so we can delete the photo.jpg 

now let's recover our hidden photo from text file
python hide.py hello.txt -e


this will extract photo.jpg from hello.txt file 

i hope you would enjoy this tutorial.if you are like this post please share with your friends.

Commands

python hide.py hello.txt -o  To check is there any ADS files
python hide.py hello.txt -a photo.jpg to hide photo inside text file
python hide.py hello.txt -e to extract photo from text file
python hide.py hello.txt -r to remove photo from text file
if you have face error add pyads file to same folder
download






Android Studio not Open After Installing

android studio java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument 


if you are try to install and open android studio for the first time sometimes you may have face to this error .
i also face the same problem .here is the tip for solve the this error and have fun with android app coding

there is two things you can solve the problem
1.disconnect your internet connection and close your android studio and restart android studio.this will help to solve problem
2.Go to android studio Bin folder where you have installed android studio.

and open bin folder there is file name idea.properties 

copy that file to your desktop because that will not edit there and save there.so open copied file in desktop through notepad
then at the end of line add 
disable.android.first.run=true at the last


then save file .make sure save as all files otherwise it will save as text file

then copy and replace the file in bin folder
 then run android studio it will works well now
if you are like this post please comment bellow .and share with your friends

How to install Selenium in python Windows PC

Install Selenium in Python 2.7 For Automation

Selenium is the web driver use for use Test automation.Selenium can use for most of the testing and Automate the software product.and also this can be use for automate the boring stuff with your programming knowledge.in next tutorial im going to teach you a how to automate the LinkedIn Profile views and increase the you are getting job.and expose your LinkedIn profile to others.so before we are going to do that we have to install selenium web driver to your computer.
you will need python 2.7 in your computer
and you need PIP for this python installer package 
open command prompt and type
 pip install selenium
you can activate the pip using add C:\Python27\Scripts line to your environmental variable.see my previous post for how to do this



If you are like to this post Share and comment

How to enable dot net 3.5 (dot net 3.0 or dot net 2.0 ) offline

Install dot net 3.5 framework offline

when you try to install new software in windows 8,or windows 8.1 or windows 10 you will face this problem because windows 8 or 10 does not include the dotnet 3.5 framework.so there is option ,either you have to download dot net 3.5 framework and install it.but do you know if you have windows 8,8.1 or windows 10 DVD or iso file you can easily install dot net 3.5 framework offline
it is simple
 fi you have windows DVD put dvd in to laptop and it will mount .
when the dvd is mounted there is folder called Sources-->SXS
in my laptop it mounted as Drive Letter E so the pasth is
D:\sources\sxs

so open command prompt in administrator mode. you can do this press windows key on keyboard and type CMD. then it will show command prompt then you can right click on common prompt and provide run as administrator

in this command prompt type
Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess,

then it will automatically install dotnet 3.5 framework for you.

I hope this article will help you to solve your problem
if you are like this post please share with your friends.