Showing posts with label Backtrack. Show all posts
Showing posts with label Backtrack. Show all posts

Thursday, 22 January 2015

UserAgent Tweaking And Fingerprinting


Wednesday, 13 August 2014

[ERROR] no such file to load -- bundler/setup [Wpscan]

Hello Mindbenders,
I am here back to write a Rescue Step while installing and using Wpscan on Backtrack 5 <3.
So The Error i got is pretty sweet.

This how the installation steps goes forward on the terminal when you install Wpscan tool from git scratch.

Commands Used:-

sudo apt-get install libcurl4-gnutls-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential
git clone https://github.com/wpscanteam/wpscan.git
cd wpscan
sudo gem install bundler && bundle install --without test


Then after doing all these stuffs i started loading this ruby script.
I was amazed by reading these lines of error.
[ERROR] no such file to load -- bundler/setup


Now Final Words [The Fix]
Follow screenshot


Wednesday, 30 April 2014

Format Devices Or Drives From Linux Terminal

Hello Mindbenders, How you doing ...
Aim:- We will Format A device From Cli or Terminal Of Linux
Steps:-
1. open Terminal
2. login as root User #su root
3.Enter password for root
4. if you are next to a hash(#) prompt then you are now logged in as a root user.
5. type
# fdisk -l
6. it will show you the detailed information about your connected devices along with their size
7. i assumed that my USB/Flash Drive is mounted as /dev/sdb so i will format my /dev/sdb device to ntfs/fat32 etc..
8. type command just after the hash :
# sudo mkfs -t fat32 /dev /sdb


                                                   hope you enjoyed this

Tuesday, 30 July 2013

How To Convert Video To Audio/Mp3 In Linux Or Backtrack Os From Terminal

Hi To All The Mindbenders,
Today i Will Show you How to use ffmpeg to convert a video (an AVI or MP4 video, for example) to an MP3 that you can load on your MP3 player:
* FOR MP4 to MP3-use below command and learn from my results shown in Demo Section    ffmpeg -i video.mp4 -f mp3 -ab 192000 -vn music.mp3
DEMO

root@bt:~/Desktop# ffmpeg -i video2.mp4 filename.mp3
FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jun 12 2012 16:27:34, gcc: 4.4.3

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video2.mp4':
  Duration: 00:04:14.90, start: 0.000000, bitrate: 1645 kb/s
    Stream #0.0(und): Video: h264, yuv420p, 1280x720, 29.97 tbr, 29.97 tbn, 59.94 tbc
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16
Output #0, mp3, to 'filename.mp3':
    Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
size=    1992kB time=254.93 bitrate=  64.0kbits/s    
video:0kB audio:1992kB global headers:0kB muxing overhead 0.001569%
root@bt:~/Desktop#

* FOR AVI to MP3-use below command and learn from my results shown in Demo Section    ffmpeg -i video.flv devendermahto.mp3
DEMO
root@bt:~/Desktop# ffmpeg -i video.flv devendermahto.mp3
FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jun 12 2012 16:27:34, gcc: 4.4.3

Seems stream 0 codec frame rate differs from container frame rate: 60.00 (60/1) -> 29.97 (30000/1001)
Input #0, flv, from 'video.flv':
  Duration: 00:04:14.33, start: 0.000000, bitrate: 235 kb/s
    Stream #0.0: Video: h264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 235 kb/s, 29.97 tbr, 1k tbn, 60 tbc
    Stream #0.1: Audio: aac, 44100 Hz, stereo, s16
Output #0, mp3, to 'devendermahto.mp3':
    Stream #0.0: Audio: libmp3lame, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
size=    1991kB time=254.90 bitrate=  64.0kbits/s    
video:0kB audio:1991kB global headers:0kB muxing overhead 0.001569%
root@bt:~/Desktop# 

But there's a catch: You have to have ffmpeg and the libavcode-unstripped-52 packages installed on your computer. The problem is that second package is available in the multiverse respository only. To enable the multiverse repository, select Administration from the System menu, then Software Sources. In the Ubuntu Software tab of the Software Sources dialog box, select the check box that reads Software Restricted By Copyright Or Legal Issues (Multiverse). Click the Close button when you're done.
After you've enabled the multiverse repository, you can install the ffmpeg and libavcodec-unstripped-52 packages from a Terminal window with the following command:

    sudo apt-get install ffmpeg libavcodec-unstripped-52

Now, let's go back to the options that I used with the ffmpeg command at the beginning of the article. The -i video.mp4 option is easy: it identifies the path to the input file. The -f mp3 option tells ffmpeg that we want the output format to be MP3. The -ab 192000 bit tells ffmpeg that we want our MP3 encoded at 192Kbps. The -vn option means "No video in the output". Finally, "music.mp3" is just the name we want to give to the output file.
That's it! Now, if you could just figure out how to download video from popular sites on the Internet, you could extract MP3 audio from your downloads!
SCREENSHOTS
1.installing ffmpeg codecs

2.FLV-2-MP3

2.MP4-2-MP3

===(Next Is What...?)==

Friday, 19 July 2013

cracking wep with innobuzz knowledge solutions

Wednesday, 22 May 2013

How To Make your Viruses, Payloads, Rat, Key-logger, fully Undetectable From Anti-viruses

Hi To All The Mindbenders,

Requirements:-
1. Backtrack 5 or any Linux Distro Having msfencoders
2. your own virus/rat/keylogger engine mine is test1.exe
follow The commands shown in figure:-
 perform all steps having root permission
Note:- click on image to see a bigger image

if You Have Any Query Write in Below Comments...
We Will Try To Figure out for All The Mindbenders



Monday, 20 May 2013

Troubleshooting Social Engineering Toolkit With Devender Mahto

Hello To The Mindbenders,
The Tutorial i Am Sharing Is Due to My Own Bad Luck, And you will hardly find this on any where in the web.
today i was very tensed so can't handle any more errors regarding my main os, i was in great trouble when i found that my set toolkit shows error like metasploit not found and then i tried to resolve this by removing all contents of set directory but mah bad luck by mistake i used accidently rm -rf *   in a new terminal of backtrack and that affected my home folder and i lost almost valuable 5gb data.

then i used testdisk but still not fetched my data. after that i decided to reinstall my set toolkit 


steps:-
Step 1.

 Install Synaptic package manager(skip this step if you have already installed synaptic package manager)
  • apt-get install synaptic


Step 2.
 remove set toolkit from synaptic package manager
  • open synaptic package manager and search for set then right click on set and mark for complete removal

Step 3.
then manually remove all 
Dependency of social engineering toolkit

so i again cd to set directory which is show in figure



Step 4. After removing all Dependency of set i planned to re-install The Latest Version Of Social Engineering Toolkit open a terminal and type
sudo bash
and then type exactly the same command as i did in figures




Step 5.

 Now run The Set toolkit use below commands in figures


Step 6.
Accept The EULA(End User Licence Agreement)




Step 7.
Then You Can See This Screen That Proves That Set is installed Correctly
 


Step 8.
Then Open A New Terminal And Do What i did This Will Install Set-toolkit universal means no matter where you are just type se-toolkit and you will get into social engineering toolkit



Step 9.
Starting The Se-Toolkit refer to below image
click image to see a bigger image

Step 10.
then from set menu choose 6th option To update Set Configuration

Now You Will no Longer Face Error Like Metasploit Not Found.

===(Next Is What...?)===

Monday, 13 May 2013

Installing Google Talk In backtrack Linux Distros

Welcome Back To The Mindbenders,


Aim:- To Install Google talk(Gtalk) application In Linux

Steps:-


Step 1
open Terminal And Type The Following commands (Text In Red)

root@bt:~# apt-get install prism-google-talk

Step 2

Now Go to Applications>Internet>Google Talk
Step 3

Google Down About Prism

===(Next Is What...?)===

Friday, 3 May 2013

Download Videos From Any Site In Linux or Backtrack


Hi To All The Mindbenders,
Today i am going to show off a simple tool required to download videos from the web, and The Tool is compatible  with any linux distro.

Steps To follow:
step 1
add repository of clipgrab (text in red)
root@bt:~# sudo add-apt-repository ppa:clipgrab-team/ppa
step 2
Update the added repository
root@bt:~# sudo apt-get update
step 3
install the clipgrab
root@bt:~# sudo apt-get install clipgrab

Now Enjoy with clipgrab just put the url of video you want to download

Friday, 19 April 2013

Building Webservers In Backtrack | The Mindbenders

Hi To All The Mindbenders,

Aim:- To Build A Server in Backtrack

Open Up Your terminal and use below commands(text in red)


root@bt:~# mkdir /var/www/themindbenders.tk

root@bt:~# chmod -R 775 /var/www/themindbenders.tk

root@bt:~# chown -R www-data:www-data /var/www/themindbenders.tk/

root@bt:~# service apache2 start2
 * Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status}

root@bt:~# service apache2 start2 start
 * Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status}

root@bt:~# service apache2 start
 * Starting web server apache2                                           [ OK ] 
root@bt:~# cowsay "now put some files in your website"
 ____________________________________
< now put some files in your website >
 ------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

root@bt:~# cp '/var/www/index.php' /var/www/themindbenders.tk/

root@bt:~# cp '/var/www/image.png' /var/www/themindbenders.tk/ 

root@bt:~# ifconfig

now after knowing your ip address give it your friends on the network
eg:- http://192.168.1.3/themindbenders.tk

===(Next Is What...?)===

Tuesday, 5 March 2013

Rooting Sony ericsson Xperia X8 E15i From Backtrack 5 | Android



Hi To All The Mindbenders,


Story:-   
15 days Ago, My Friend Shiva {vicky} suffered from a problem. and the 
Problem Against Him is Root Access On Applications He Newly Installed From Web and Warning Him That they Needs Root Access.
And He Was Unable To Run Some Cool And Best App on His Xperia X8 e15i.
Shiva Told All His Problems To me And I Said, You Have To Pay For It :P
He Ignored at The Moment By Answering that in market it will cost me less than you.
Then I Replied: Its All Upto you bro.
After 8 days he requested me to Root, Now Here I'm.

Now What Is root?
Root is Administrator {superuser}, and have all system access he can read/write system files.
Root Access means you can change the Permissions According to you for example, if you want to use live wallpaper for your android but your Vendor Blocked This Service, then you can run these kind of apps By Rooting your android.

Requirements:-
1. Sony Ericsson Xperia X8 E15i
2. Backtrack 5 r3 Because In This Os Android-sdk Comes Pre-installed
3. SuperOneClick For Rooting Through Its Exploits. {insrt captcha to go to download page on the next screen}
4. A Data Cable {Usb Connector} For Your Sony Ericsson Xperia X8 E15i. 

Steps:-

Step 1.
Turn usb Debugging On by Going Through Below Path
Settings --> Applications --> Development --> USB Debugging

Check in the Box Of Usb Debugging Option to Enable.


Step 2.
Connect Your Phone Using Data Cable {Usb Connector}

Step 3. 
After Attaching data Cable Your Xperia X8 Device will Popup A Menu With Two Options,
1. Connect Phone
2. Charge Phone

Step 4. 
Click on Charge Phone.

Step 5. 
Look On Your xperia X8 Notification Panel There Is A Notification {Usb Connection} Click On It Then It Will Ask you to Mount And Unmount SdCard,  Simply Click On Mount.
Note:- There is Another Notification about Usb Debugging but Don't Try To Touch It.

Step 6.
Then Download SuperOneClick And Paste Into Root {home} Folder Of Your Backtrack 5 R3.
Note:- Before Going To Further Steps Insure That You Are Logged In As Root In backtrack 5

Step 7.
now Unzip The Downloaded SuperOneClick Archive, Open Your Terminal of Backtrack 5 R3 and paste following text in red to unzip.

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~# unzip SuperOneClickv1.9.1-DevenderMahto[TheMindbenders].zip
--------------------------------------------------------------------------------------------------------------------------------- 
In Action you can skip this
--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~# unzip SuperOneClickv1.9.1-DevenderMahto[TheMindbenders].zip
Archive:  SuperOneClickv1.9.1-DevenderMahto[TheMindbenders].zip
Visit   http://www.mindbendersorg.blogspot.com
Like    https://www.facebook.com/themindbenders
Add    https://www.facebook.com/devendermahto

SuperOneClick Is Made For Rooting Xperia X8 E15i And Some Samsung Sets Having Android 2.1

   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/adblinux  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/AdbWinUsbApi.dll  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/automate.sh  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Root/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Root/su-v3  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Root/su-v2  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Root/su-v1  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Root/superuser.apk  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/psneuter  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/adb.exe  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/adbmac  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/AdbWinApi.dll  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Exploits/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Exploits/psneuter  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Exploits/GingerBreak  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/.zip  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/automate.sh  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Root/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Root/su-v3  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Root/Superuser.apk  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Root/su-v2  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Root/su-v1  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/SuperOneClick.exe  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x86/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x86/Samsung/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x86/Motorola/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x64/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x64/Samsung/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x64/Motorola/
 extracting: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/vendors.txt  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Dependencies/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Dependencies/sqlite3  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Dependencies/busybox  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Exploits/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Exploits/psneuter  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Exploits/GingerBreak  
--------------------------------------------------------------------------------------------------------------------------------- 

Note:-  i Assumed That My File SuperOneClickv1.9.1-DevenderMahto[TheMindbenders].zip Is in Home (root) folder.

Step 5. 
change Current Working Directory using cd command below Text in red.

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~# cd SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]# 
--------------------------------------------------------------------------------------------------------------------------------- 

Step 6.
now again change working directory to your ADB folder

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]# cd ADB
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# 
--------------------------------------------------------------------------------------------------------------------------------- 

Step 7.
Now Change Permission of your adblinux tool in ADB folder run Below Command in same Terminal.

--------------------------------------------------------------------------------------------------------------------------------- root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# chmod 775 adblinux
--------------------------------------------------------------------------------------------------------------------------------- 

step 8.
start the adblinux for test purpose only you can skip this step

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# ./adblinux
Android Debug Bridge version 1.0.26

 -d                            - directs command to the only connected USB device
                                 returns an error if more than one USB device is present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is running.
 -s <serial number>            - directs command to the USB device or emulator with
                                 the given serial number. Overrides ANDROID_SERIAL
                                 environment variable.
 -p <product name or path>     - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.
                                 If -p is not specified, the ANDROID_PRODUCT_OUT
                                 environment variable is used, which must
                                 be an absolute path.
 devices                       - list all connected devices
 connect <host>[:<port>]       - connect to a device via TCP/IP
                                 Port 5555 is used by default if no port number is specified.
 disconnect [<host>[:<port>]]  - disconnect from a TCP/IP device.
                                 Port 5555 is used by default if no port number is specified.
                                 Using this ocmmand with no additional arguments
                                 will disconnect from all connected TCP/IP devices.

device commands:
  adb push <local> <remote>    - copy file/dir to device
  adb pull <remote> [<local>]  - copy file/dir from device
  adb sync [ <directory> ]     - copy host->device only if changed
                                 (-l means list but don't copy)
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell <command>          - run remote shell command
  adb emu <command>            - run emulator console command
  adb logcat [ <filter-spec> ] - View device log
  adb forward <local> <remote> - forward socket connections
                                 forward specs are one of: 
                                   tcp:<port>
                                   localabstract:<unix domain socket name>
                                   localreserved:<unix domain socket name>
                                   localfilesystem:<unix domain socket name>
                                   dev:<character device name>
                                   jdwp:<process pid> (remote only)
  adb jdwp                     - list PIDs of processes hosting a JDWP transport
  adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
                                 ('-l' means forward-lock the app)
                                 ('-r' means reinstall the app, keeping its data)
                                 ('-s' means install on SD card instead of internal storage)
  adb uninstall [-k] <package> - remove this app package from the device
                                 ('-k' means keep the data and cache directories)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.

  adb help                     - show this help message
  adb version                  - show version num

DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition

scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb status-window            - continuously print device status for a specified device
  adb remount                  - remounts the /system partition on the device read-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
  adb reboot-bootloader        - reboots the device into the bootloader
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB
  adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
networking:
  adb ppp <tty> [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
 <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
  <localdir> can be interpreted in several ways:

  - If <directory> is not specified, both /system and /data partitions will be updated.

  - If it is "system" or "data", only the corresponding partition
    is updated.

environmental variables:
  ADB_TRACE                    - Print debug information. A comma separated list of the following values
                                 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
  ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
  ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.

--------------------------------------------------------------------------------------------------------------------------------- 

Step 9.
serially run commands text in red

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# ./adblinux push Exploits/psneuter /data/local/tmp/psneuter
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
671 KB/s (585731 bytes in 0.851s)
--------------------------------------------------------------------------------------------------------------------------------- 

Note:-   your device must be connected at this moment and mounted your memory card.

Step 10.
copy su-v2 {exploit} into your android by below command text in red

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# ./adblinux push Root/su-v2 /data/local/tmp/su 
614 KB/s (26264 bytes in 0.041s)
--------------------------------------------------------------------------------------------------------------------------------- 

Step 11.
--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# ./adblinux push Root/superuser.apk /data/local/tmp/superuser.apk
2308 KB/s (196521 bytes in 0.083s)
--------------------------------------------------------------------------------------------------------------------------------- 

Step 12.
Run These Commands Serially only text in  red are commands
Each Commands Would be Typed after $ (and commands are text in red)
--------------------------------------------------------------------------------
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# ./adblinux shell
$ cd /data/local/tmp
$ chmod 755 psneuter
$ ./psneuter
--------------------------------------------------------------------------------

Step 13. 
your will disconnect by itself or disconnect manually after running ./psneuter

Step 14. 
Again Connect it and Choose Charge Phone From Popup menu Containing two Options, and mount

Step 15. 
Run All COmmand As Same As In Below Manner To Avoid Bricking. 
Each Commands Would be Typed after # (and commands are text in red)

---------------------------------------------------------------------------------------------------------------------------------
root@bt:~/SuperOneClickv1.9.1-ShortFuse[1]/ADB# ./adblinux shell
# 
# cd /data/local/tmp
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
# cat su > /system/bin/su
# cat superuser.apk > /system/app/superuser.apk
# chmod 06777 /system/bin/su
# chmod 777 /system/app/superuser.apk
# reboot
--------------------------------------------------------------------------------------------------------------------------------- 

Step 16.
Your Phone Will Restart And just wait untill it boot up
then go to home there you will find superuser app that's it all done
Try To Run App Like Busybox and others in root mode by granting permissions from superuser.


Feel Free To Ask ANy Query About This Post...



-:Warning:-
Do Not Install Application Like Clean Master Or Any SYs Cache Remover, If you do Your Phone Will Brick.
===(Next Is What?...)===

Tuesday, 4 December 2012

Recovering The GRUB 2 Boot Loader To Protect Your Previously Installed Operating Systems

Hi To All The Mindbenders,
As Like My Earlier Tutorials i'm not Going To Consume your important time. I am Always here to provide all The Mindbenders readers a Quick and Easy Solutions.
i already posted a tutorial about Recovering Grub2 but That Was Too Advance To Learn Recovering Grub2.
Grub is similar to boot-manager(Bootmgr) of windows.

But i'm a Linux Lover And Proudly Help Someone Who wants To Stay With Linux Distros.

Now We Are Looking Forward To This Post.

Note:- 1. only commands(text) in red must be typed in your terminal.
           2. Text in green after ===> sign indicates the uses of commands you are using at that  
               instant.
           3. sda5 is my partition having Linux OS, so Don't Behave Like Monkeys Use step 1 to  
               identify your Linux Partition Generally it is In Form Of Ext4 or Ext3 or something like 
               these Formats and for your Convenience Command will show you Linux in front of   
               your Partition.
          4. Refer To My Video For Better Results.

Steps To Follow:-

Step 0.
Boot from live Linux or backtrack 5 flash drive or any boot-able media of your choice, it could be your Dvd.

Step1.
Figure out where you need to install grub 2 means we need to identify our Partition having Linux.

root@bt:~# sudo fdisk -l               =================> List All Partition
root@bt:~# ls                                 =================> List All the Files/folders of your  
                                                                                                  current mounted partition having root  
                                                                                                  Privellages                                         

Step2.
Mount the Partition where you need to install the grub2

root@bt:~# sudo mount /dev/sda5 /mnt          ========> here sda5 is the partition where linux  
                                                                                                  is and we mounted in mnt folder

root@bt:~# mount                          ================> List all the mounted partitions

Step3.
Mount the Partition to an alternate location

root@bt:~# sudo mount /dev/sda5 /mnt/boot

Step4.
Create an unbreakable link from /dev folder on the live image you booted from to the /dev folder on the partition you mounted to /mnt

root@bt:~# sudo mount --bind /dev /mnt/dev/

Step 5.
CHROOT from the live image's root to the mounted partition's root
chroot temporarly changes the root of the filesystem directory.

root@bt:~# pwd                             ================> Print Working Directory To Check  
                                                                                                The Current Root Privellages 
root@bt:~# sudo chroot /mnt

root@bt:~# sudo mount               ================> List All The Mounted Partitions 

root@bt:~# pwd

root@bt:~# ls                                 =================> List All the Files/folders of your  
                                                                                                  current mounted partition having root  
                                                                                                  Privellages                                      

if yoou found your linux hard drive content then you are almost on track 

Step 6. 
Now Reinstall the grub2 loader to the drive on which exists the partition you mounted previously.

root@bt:~# sudo grub-install /dev/sda      ==========> Install Grub In Your Hard Drive 
                                                                                                Which is sda your primary hard drive.

root@bt:~# pwd

now exit your chroot shell

root@bt:~# exit

Step7.

cleanly unmount all the partitions you previously mounted

root@bt:~# sudo umount /mnt/dev
root@bt:~# sudo umount /mnt/boot
root@bt:~# sudo umount /mnt


now reboot...

root@bt:~# sudo reboot

pull out your live flash disk

when Linux or backtrack says to login simply login and do not try to type startx in case of backtrack Use below Command Before typing startx.
And for other linux, Login To System and then open terminal then use commands.

root@bt:~# os-prober

root@bt:~# update-grub

root@bt:~# startx                =================> Only For Backtrack Linux                                         

Story Behind The Tutorial:-
I know how much it hurts when you Wants to upgrade but instead of that You Got Problems Like Previously installed linux or any other os is missing from your boot and i got the same situations when i was upgraded to Windows 7 to windows 8 Rtm. i was shocked when i rebooted my Laptop and didn't find my previously installed backtrack 5 grub menu, i can't tell you how much sad i was at that time then i asked everyone But i had a Huge List Of No Hahah. And Finally Referred to some Linux Forums And Found the Fix... Then I Recorded a video of fixing the same in ubuntu...


Tuesday, 27 November 2012

Making BackTrack5 look like XP | Social Engineering

Hello to All The Mindbenders,
Okay, so the first thing you’re wondering is 
“Why the hell would you want to do this?”

Well the answer becomes more obvious when the scenario is set:
You’re on a social engineering job and you’ve managed to gain access to the target building, you walk around for a bit to see if any of the desks look free. After a while you decide to sit down at what seems like an unoccupied desk. You calmly pull out your laptop and turn it on. As the laptop is booting you start looking for an Ethernet cable to plug into your laptop, you find one and plug it in. Social engineering phase complete, pentest about to start. The hard work is over and the fun is about to begin…. until, someone walks past your laptop and sees you’re bright red coloured BackTrack wall paper.
this one is nice trick just keep it low. you know what i mean.
you dont want to have that Big red dragon logon on your screen. let them tought it was a noob OS lol :P

 
 
You’re no longer being stealthy, the wallpaper looks aggressive and the nature of your visit is becoming a concern to the other workers who realise they’ve never seen you before. Next thing you know you’ve been collared by security and before you know it you’ve kicked out of the building, all because of the wallpaper on your laptop!
This script originally came from here but I have neatened it up and got it working with BackTrack. So the idea of this script is to make it quick to turn your BackTrack5 gnome build into something that resembles Windows XP to help you blend in with the crowd.
The package can be downloaded from here (please don’t hotlink as I might move the file to a different server to cope with all the downloads….):

 


 

Sunday, 25 November 2012

Showing posts with label Backtrack. Show all posts
Showing posts with label Backtrack. Show all posts

Wednesday, 13 August 2014

[ERROR] no such file to load -- bundler/setup [Wpscan]

Hello Mindbenders,
I am here back to write a Rescue Step while installing and using Wpscan on Backtrack 5 <3.
So The Error i got is pretty sweet.

This how the installation steps goes forward on the terminal when you install Wpscan tool from git scratch.

Commands Used:-

sudo apt-get install libcurl4-gnutls-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential
git clone https://github.com/wpscanteam/wpscan.git
cd wpscan
sudo gem install bundler && bundle install --without test


Then after doing all these stuffs i started loading this ruby script.
I was amazed by reading these lines of error.
[ERROR] no such file to load -- bundler/setup


Now Final Words [The Fix]
Follow screenshot


Wednesday, 30 April 2014

Format Devices Or Drives From Linux Terminal

Hello Mindbenders, How you doing ...
Aim:- We will Format A device From Cli or Terminal Of Linux
Steps:-
1. open Terminal
2. login as root User #su root
3.Enter password for root
4. if you are next to a hash(#) prompt then you are now logged in as a root user.
5. type
# fdisk -l
6. it will show you the detailed information about your connected devices along with their size
7. i assumed that my USB/Flash Drive is mounted as /dev/sdb so i will format my /dev/sdb device to ntfs/fat32 etc..
8. type command just after the hash :
# sudo mkfs -t fat32 /dev /sdb


                                                   hope you enjoyed this

Tuesday, 30 July 2013

How To Convert Video To Audio/Mp3 In Linux Or Backtrack Os From Terminal

Hi To All The Mindbenders,
Today i Will Show you How to use ffmpeg to convert a video (an AVI or MP4 video, for example) to an MP3 that you can load on your MP3 player:
* FOR MP4 to MP3-use below command and learn from my results shown in Demo Section    ffmpeg -i video.mp4 -f mp3 -ab 192000 -vn music.mp3
DEMO

root@bt:~/Desktop# ffmpeg -i video2.mp4 filename.mp3
FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jun 12 2012 16:27:34, gcc: 4.4.3

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video2.mp4':
  Duration: 00:04:14.90, start: 0.000000, bitrate: 1645 kb/s
    Stream #0.0(und): Video: h264, yuv420p, 1280x720, 29.97 tbr, 29.97 tbn, 59.94 tbc
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16
Output #0, mp3, to 'filename.mp3':
    Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
size=    1992kB time=254.93 bitrate=  64.0kbits/s    
video:0kB audio:1992kB global headers:0kB muxing overhead 0.001569%
root@bt:~/Desktop#

* FOR AVI to MP3-use below command and learn from my results shown in Demo Section    ffmpeg -i video.flv devendermahto.mp3
DEMO
root@bt:~/Desktop# ffmpeg -i video.flv devendermahto.mp3
FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jun 12 2012 16:27:34, gcc: 4.4.3

Seems stream 0 codec frame rate differs from container frame rate: 60.00 (60/1) -> 29.97 (30000/1001)
Input #0, flv, from 'video.flv':
  Duration: 00:04:14.33, start: 0.000000, bitrate: 235 kb/s
    Stream #0.0: Video: h264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 235 kb/s, 29.97 tbr, 1k tbn, 60 tbc
    Stream #0.1: Audio: aac, 44100 Hz, stereo, s16
Output #0, mp3, to 'devendermahto.mp3':
    Stream #0.0: Audio: libmp3lame, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
size=    1991kB time=254.90 bitrate=  64.0kbits/s    
video:0kB audio:1991kB global headers:0kB muxing overhead 0.001569%
root@bt:~/Desktop# 

But there's a catch: You have to have ffmpeg and the libavcode-unstripped-52 packages installed on your computer. The problem is that second package is available in the multiverse respository only. To enable the multiverse repository, select Administration from the System menu, then Software Sources. In the Ubuntu Software tab of the Software Sources dialog box, select the check box that reads Software Restricted By Copyright Or Legal Issues (Multiverse). Click the Close button when you're done.
After you've enabled the multiverse repository, you can install the ffmpeg and libavcodec-unstripped-52 packages from a Terminal window with the following command:

    sudo apt-get install ffmpeg libavcodec-unstripped-52

Now, let's go back to the options that I used with the ffmpeg command at the beginning of the article. The -i video.mp4 option is easy: it identifies the path to the input file. The -f mp3 option tells ffmpeg that we want the output format to be MP3. The -ab 192000 bit tells ffmpeg that we want our MP3 encoded at 192Kbps. The -vn option means "No video in the output". Finally, "music.mp3" is just the name we want to give to the output file.
That's it! Now, if you could just figure out how to download video from popular sites on the Internet, you could extract MP3 audio from your downloads!
SCREENSHOTS
1.installing ffmpeg codecs

2.FLV-2-MP3

2.MP4-2-MP3

===(Next Is What...?)==

Friday, 19 July 2013

cracking wep with innobuzz knowledge solutions

Wednesday, 22 May 2013

How To Make your Viruses, Payloads, Rat, Key-logger, fully Undetectable From Anti-viruses

Hi To All The Mindbenders,

Requirements:-
1. Backtrack 5 or any Linux Distro Having msfencoders
2. your own virus/rat/keylogger engine mine is test1.exe
follow The commands shown in figure:-
 perform all steps having root permission
Note:- click on image to see a bigger image

if You Have Any Query Write in Below Comments...
We Will Try To Figure out for All The Mindbenders



Monday, 20 May 2013

Troubleshooting Social Engineering Toolkit With Devender Mahto

Hello To The Mindbenders,
The Tutorial i Am Sharing Is Due to My Own Bad Luck, And you will hardly find this on any where in the web.
today i was very tensed so can't handle any more errors regarding my main os, i was in great trouble when i found that my set toolkit shows error like metasploit not found and then i tried to resolve this by removing all contents of set directory but mah bad luck by mistake i used accidently rm -rf *   in a new terminal of backtrack and that affected my home folder and i lost almost valuable 5gb data.

then i used testdisk but still not fetched my data. after that i decided to reinstall my set toolkit 


steps:-
Step 1.

 Install Synaptic package manager(skip this step if you have already installed synaptic package manager)
  • apt-get install synaptic


Step 2.
 remove set toolkit from synaptic package manager
  • open synaptic package manager and search for set then right click on set and mark for complete removal

Step 3.
then manually remove all 
Dependency of social engineering toolkit

so i again cd to set directory which is show in figure



Step 4. After removing all Dependency of set i planned to re-install The Latest Version Of Social Engineering Toolkit open a terminal and type
sudo bash
and then type exactly the same command as i did in figures




Step 5.

 Now run The Set toolkit use below commands in figures


Step 6.
Accept The EULA(End User Licence Agreement)




Step 7.
Then You Can See This Screen That Proves That Set is installed Correctly
 


Step 8.
Then Open A New Terminal And Do What i did This Will Install Set-toolkit universal means no matter where you are just type se-toolkit and you will get into social engineering toolkit



Step 9.
Starting The Se-Toolkit refer to below image
click image to see a bigger image

Step 10.
then from set menu choose 6th option To update Set Configuration

Now You Will no Longer Face Error Like Metasploit Not Found.

===(Next Is What...?)===

Monday, 13 May 2013

Installing Google Talk In backtrack Linux Distros

Welcome Back To The Mindbenders,


Aim:- To Install Google talk(Gtalk) application In Linux

Steps:-


Step 1
open Terminal And Type The Following commands (Text In Red)

root@bt:~# apt-get install prism-google-talk

Step 2

Now Go to Applications>Internet>Google Talk
Step 3

Google Down About Prism

===(Next Is What...?)===

Friday, 3 May 2013

Download Videos From Any Site In Linux or Backtrack


Hi To All The Mindbenders,
Today i am going to show off a simple tool required to download videos from the web, and The Tool is compatible  with any linux distro.

Steps To follow:
step 1
add repository of clipgrab (text in red)
root@bt:~# sudo add-apt-repository ppa:clipgrab-team/ppa
step 2
Update the added repository
root@bt:~# sudo apt-get update
step 3
install the clipgrab
root@bt:~# sudo apt-get install clipgrab

Now Enjoy with clipgrab just put the url of video you want to download

Friday, 19 April 2013

Building Webservers In Backtrack | The Mindbenders

Hi To All The Mindbenders,

Aim:- To Build A Server in Backtrack

Open Up Your terminal and use below commands(text in red)


root@bt:~# mkdir /var/www/themindbenders.tk

root@bt:~# chmod -R 775 /var/www/themindbenders.tk

root@bt:~# chown -R www-data:www-data /var/www/themindbenders.tk/

root@bt:~# service apache2 start2
 * Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status}

root@bt:~# service apache2 start2 start
 * Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status}

root@bt:~# service apache2 start
 * Starting web server apache2                                           [ OK ] 
root@bt:~# cowsay "now put some files in your website"
 ____________________________________
< now put some files in your website >
 ------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

root@bt:~# cp '/var/www/index.php' /var/www/themindbenders.tk/

root@bt:~# cp '/var/www/image.png' /var/www/themindbenders.tk/ 

root@bt:~# ifconfig

now after knowing your ip address give it your friends on the network
eg:- http://192.168.1.3/themindbenders.tk

===(Next Is What...?)===

Tuesday, 5 March 2013

Rooting Sony ericsson Xperia X8 E15i From Backtrack 5 | Android



Hi To All The Mindbenders,


Story:-   
15 days Ago, My Friend Shiva {vicky} suffered from a problem. and the 
Problem Against Him is Root Access On Applications He Newly Installed From Web and Warning Him That they Needs Root Access.
And He Was Unable To Run Some Cool And Best App on His Xperia X8 e15i.
Shiva Told All His Problems To me And I Said, You Have To Pay For It :P
He Ignored at The Moment By Answering that in market it will cost me less than you.
Then I Replied: Its All Upto you bro.
After 8 days he requested me to Root, Now Here I'm.

Now What Is root?
Root is Administrator {superuser}, and have all system access he can read/write system files.
Root Access means you can change the Permissions According to you for example, if you want to use live wallpaper for your android but your Vendor Blocked This Service, then you can run these kind of apps By Rooting your android.

Requirements:-
1. Sony Ericsson Xperia X8 E15i
2. Backtrack 5 r3 Because In This Os Android-sdk Comes Pre-installed
3. SuperOneClick For Rooting Through Its Exploits. {insrt captcha to go to download page on the next screen}
4. A Data Cable {Usb Connector} For Your Sony Ericsson Xperia X8 E15i. 

Steps:-

Step 1.
Turn usb Debugging On by Going Through Below Path
Settings --> Applications --> Development --> USB Debugging

Check in the Box Of Usb Debugging Option to Enable.


Step 2.
Connect Your Phone Using Data Cable {Usb Connector}

Step 3. 
After Attaching data Cable Your Xperia X8 Device will Popup A Menu With Two Options,
1. Connect Phone
2. Charge Phone

Step 4. 
Click on Charge Phone.

Step 5. 
Look On Your xperia X8 Notification Panel There Is A Notification {Usb Connection} Click On It Then It Will Ask you to Mount And Unmount SdCard,  Simply Click On Mount.
Note:- There is Another Notification about Usb Debugging but Don't Try To Touch It.

Step 6.
Then Download SuperOneClick And Paste Into Root {home} Folder Of Your Backtrack 5 R3.
Note:- Before Going To Further Steps Insure That You Are Logged In As Root In backtrack 5

Step 7.
now Unzip The Downloaded SuperOneClick Archive, Open Your Terminal of Backtrack 5 R3 and paste following text in red to unzip.

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~# unzip SuperOneClickv1.9.1-DevenderMahto[TheMindbenders].zip
--------------------------------------------------------------------------------------------------------------------------------- 
In Action you can skip this
--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~# unzip SuperOneClickv1.9.1-DevenderMahto[TheMindbenders].zip
Archive:  SuperOneClickv1.9.1-DevenderMahto[TheMindbenders].zip
Visit   http://www.mindbendersorg.blogspot.com
Like    https://www.facebook.com/themindbenders
Add    https://www.facebook.com/devendermahto

SuperOneClick Is Made For Rooting Xperia X8 E15i And Some Samsung Sets Having Android 2.1

   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/adblinux  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/AdbWinUsbApi.dll  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/automate.sh  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Root/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Root/su-v3  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Root/su-v2  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Root/su-v1  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Root/superuser.apk  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/psneuter  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/adb.exe  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/adbmac  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/AdbWinApi.dll  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Exploits/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Exploits/psneuter  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB/Exploits/GingerBreak  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/.zip  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/automate.sh  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Root/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Root/su-v3  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Root/Superuser.apk  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Root/su-v2  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Root/su-v1  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/SuperOneClick.exe  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x86/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x86/Samsung/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x86/Motorola/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x64/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x64/Samsung/
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/x64/Motorola/
 extracting: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Drivers/vendors.txt  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Dependencies/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Dependencies/sqlite3  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Dependencies/busybox  
   creating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Exploits/
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Exploits/psneuter  
  inflating: SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/Exploits/GingerBreak  
--------------------------------------------------------------------------------------------------------------------------------- 

Note:-  i Assumed That My File SuperOneClickv1.9.1-DevenderMahto[TheMindbenders].zip Is in Home (root) folder.

Step 5. 
change Current Working Directory using cd command below Text in red.

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~# cd SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]# 
--------------------------------------------------------------------------------------------------------------------------------- 

Step 6.
now again change working directory to your ADB folder

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]# cd ADB
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# 
--------------------------------------------------------------------------------------------------------------------------------- 

Step 7.
Now Change Permission of your adblinux tool in ADB folder run Below Command in same Terminal.

--------------------------------------------------------------------------------------------------------------------------------- root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# chmod 775 adblinux
--------------------------------------------------------------------------------------------------------------------------------- 

step 8.
start the adblinux for test purpose only you can skip this step

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# ./adblinux
Android Debug Bridge version 1.0.26

 -d                            - directs command to the only connected USB device
                                 returns an error if more than one USB device is present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is running.
 -s <serial number>            - directs command to the USB device or emulator with
                                 the given serial number. Overrides ANDROID_SERIAL
                                 environment variable.
 -p <product name or path>     - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.
                                 If -p is not specified, the ANDROID_PRODUCT_OUT
                                 environment variable is used, which must
                                 be an absolute path.
 devices                       - list all connected devices
 connect <host>[:<port>]       - connect to a device via TCP/IP
                                 Port 5555 is used by default if no port number is specified.
 disconnect [<host>[:<port>]]  - disconnect from a TCP/IP device.
                                 Port 5555 is used by default if no port number is specified.
                                 Using this ocmmand with no additional arguments
                                 will disconnect from all connected TCP/IP devices.

device commands:
  adb push <local> <remote>    - copy file/dir to device
  adb pull <remote> [<local>]  - copy file/dir from device
  adb sync [ <directory> ]     - copy host->device only if changed
                                 (-l means list but don't copy)
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell <command>          - run remote shell command
  adb emu <command>            - run emulator console command
  adb logcat [ <filter-spec> ] - View device log
  adb forward <local> <remote> - forward socket connections
                                 forward specs are one of: 
                                   tcp:<port>
                                   localabstract:<unix domain socket name>
                                   localreserved:<unix domain socket name>
                                   localfilesystem:<unix domain socket name>
                                   dev:<character device name>
                                   jdwp:<process pid> (remote only)
  adb jdwp                     - list PIDs of processes hosting a JDWP transport
  adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
                                 ('-l' means forward-lock the app)
                                 ('-r' means reinstall the app, keeping its data)
                                 ('-s' means install on SD card instead of internal storage)
  adb uninstall [-k] <package> - remove this app package from the device
                                 ('-k' means keep the data and cache directories)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.

  adb help                     - show this help message
  adb version                  - show version num

DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition

scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb status-window            - continuously print device status for a specified device
  adb remount                  - remounts the /system partition on the device read-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
  adb reboot-bootloader        - reboots the device into the bootloader
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB
  adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
networking:
  adb ppp <tty> [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
 <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
  <localdir> can be interpreted in several ways:

  - If <directory> is not specified, both /system and /data partitions will be updated.

  - If it is "system" or "data", only the corresponding partition
    is updated.

environmental variables:
  ADB_TRACE                    - Print debug information. A comma separated list of the following values
                                 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
  ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
  ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.

--------------------------------------------------------------------------------------------------------------------------------- 

Step 9.
serially run commands text in red

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# ./adblinux push Exploits/psneuter /data/local/tmp/psneuter
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
671 KB/s (585731 bytes in 0.851s)
--------------------------------------------------------------------------------------------------------------------------------- 

Note:-   your device must be connected at this moment and mounted your memory card.

Step 10.
copy su-v2 {exploit} into your android by below command text in red

--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# ./adblinux push Root/su-v2 /data/local/tmp/su 
614 KB/s (26264 bytes in 0.041s)
--------------------------------------------------------------------------------------------------------------------------------- 

Step 11.
--------------------------------------------------------------------------------------------------------------------------------- 
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# ./adblinux push Root/superuser.apk /data/local/tmp/superuser.apk
2308 KB/s (196521 bytes in 0.083s)
--------------------------------------------------------------------------------------------------------------------------------- 

Step 12.
Run These Commands Serially only text in  red are commands
Each Commands Would be Typed after $ (and commands are text in red)
--------------------------------------------------------------------------------
root@bt:~/SuperOneClickv1.9.1-DevenderMahto[TheMindbenders]/ADB# ./adblinux shell
$ cd /data/local/tmp
$ chmod 755 psneuter
$ ./psneuter
--------------------------------------------------------------------------------

Step 13. 
your will disconnect by itself or disconnect manually after running ./psneuter

Step 14. 
Again Connect it and Choose Charge Phone From Popup menu Containing two Options, and mount

Step 15. 
Run All COmmand As Same As In Below Manner To Avoid Bricking. 
Each Commands Would be Typed after # (and commands are text in red)

---------------------------------------------------------------------------------------------------------------------------------
root@bt:~/SuperOneClickv1.9.1-ShortFuse[1]/ADB# ./adblinux shell
# 
# cd /data/local/tmp
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
# cat su > /system/bin/su
# cat superuser.apk > /system/app/superuser.apk
# chmod 06777 /system/bin/su
# chmod 777 /system/app/superuser.apk
# reboot
--------------------------------------------------------------------------------------------------------------------------------- 

Step 16.
Your Phone Will Restart And just wait untill it boot up
then go to home there you will find superuser app that's it all done
Try To Run App Like Busybox and others in root mode by granting permissions from superuser.


Feel Free To Ask ANy Query About This Post...



-:Warning:-
Do Not Install Application Like Clean Master Or Any SYs Cache Remover, If you do Your Phone Will Brick.
===(Next Is What?...)===

Tuesday, 4 December 2012

Recovering The GRUB 2 Boot Loader To Protect Your Previously Installed Operating Systems

Hi To All The Mindbenders,
As Like My Earlier Tutorials i'm not Going To Consume your important time. I am Always here to provide all The Mindbenders readers a Quick and Easy Solutions.
i already posted a tutorial about Recovering Grub2 but That Was Too Advance To Learn Recovering Grub2.
Grub is similar to boot-manager(Bootmgr) of windows.

But i'm a Linux Lover And Proudly Help Someone Who wants To Stay With Linux Distros.

Now We Are Looking Forward To This Post.

Note:- 1. only commands(text) in red must be typed in your terminal.
           2. Text in green after ===> sign indicates the uses of commands you are using at that  
               instant.
           3. sda5 is my partition having Linux OS, so Don't Behave Like Monkeys Use step 1 to  
               identify your Linux Partition Generally it is In Form Of Ext4 or Ext3 or something like 
               these Formats and for your Convenience Command will show you Linux in front of   
               your Partition.
          4. Refer To My Video For Better Results.

Steps To Follow:-

Step 0.
Boot from live Linux or backtrack 5 flash drive or any boot-able media of your choice, it could be your Dvd.

Step1.
Figure out where you need to install grub 2 means we need to identify our Partition having Linux.

root@bt:~# sudo fdisk -l               =================> List All Partition
root@bt:~# ls                                 =================> List All the Files/folders of your  
                                                                                                  current mounted partition having root  
                                                                                                  Privellages                                         

Step2.
Mount the Partition where you need to install the grub2

root@bt:~# sudo mount /dev/sda5 /mnt          ========> here sda5 is the partition where linux  
                                                                                                  is and we mounted in mnt folder

root@bt:~# mount                          ================> List all the mounted partitions

Step3.
Mount the Partition to an alternate location

root@bt:~# sudo mount /dev/sda5 /mnt/boot

Step4.
Create an unbreakable link from /dev folder on the live image you booted from to the /dev folder on the partition you mounted to /mnt

root@bt:~# sudo mount --bind /dev /mnt/dev/

Step 5.
CHROOT from the live image's root to the mounted partition's root
chroot temporarly changes the root of the filesystem directory.

root@bt:~# pwd                             ================> Print Working Directory To Check  
                                                                                                The Current Root Privellages 
root@bt:~# sudo chroot /mnt

root@bt:~# sudo mount               ================> List All The Mounted Partitions 

root@bt:~# pwd

root@bt:~# ls                                 =================> List All the Files/folders of your  
                                                                                                  current mounted partition having root  
                                                                                                  Privellages                                      

if yoou found your linux hard drive content then you are almost on track 

Step 6. 
Now Reinstall the grub2 loader to the drive on which exists the partition you mounted previously.

root@bt:~# sudo grub-install /dev/sda      ==========> Install Grub In Your Hard Drive 
                                                                                                Which is sda your primary hard drive.

root@bt:~# pwd

now exit your chroot shell

root@bt:~# exit

Step7.

cleanly unmount all the partitions you previously mounted

root@bt:~# sudo umount /mnt/dev
root@bt:~# sudo umount /mnt/boot
root@bt:~# sudo umount /mnt


now reboot...

root@bt:~# sudo reboot

pull out your live flash disk

when Linux or backtrack says to login simply login and do not try to type startx in case of backtrack Use below Command Before typing startx.
And for other linux, Login To System and then open terminal then use commands.

root@bt:~# os-prober

root@bt:~# update-grub

root@bt:~# startx                =================> Only For Backtrack Linux                                         

Story Behind The Tutorial:-
I know how much it hurts when you Wants to upgrade but instead of that You Got Problems Like Previously installed linux or any other os is missing from your boot and i got the same situations when i was upgraded to Windows 7 to windows 8 Rtm. i was shocked when i rebooted my Laptop and didn't find my previously installed backtrack 5 grub menu, i can't tell you how much sad i was at that time then i asked everyone But i had a Huge List Of No Hahah. And Finally Referred to some Linux Forums And Found the Fix... Then I Recorded a video of fixing the same in ubuntu...


Tuesday, 27 November 2012

Making BackTrack5 look like XP | Social Engineering

Hello to All The Mindbenders,
Okay, so the first thing you’re wondering is 
“Why the hell would you want to do this?”

Well the answer becomes more obvious when the scenario is set:
You’re on a social engineering job and you’ve managed to gain access to the target building, you walk around for a bit to see if any of the desks look free. After a while you decide to sit down at what seems like an unoccupied desk. You calmly pull out your laptop and turn it on. As the laptop is booting you start looking for an Ethernet cable to plug into your laptop, you find one and plug it in. Social engineering phase complete, pentest about to start. The hard work is over and the fun is about to begin…. until, someone walks past your laptop and sees you’re bright red coloured BackTrack wall paper.
this one is nice trick just keep it low. you know what i mean.
you dont want to have that Big red dragon logon on your screen. let them tought it was a noob OS lol :P

 
 
You’re no longer being stealthy, the wallpaper looks aggressive and the nature of your visit is becoming a concern to the other workers who realise they’ve never seen you before. Next thing you know you’ve been collared by security and before you know it you’ve kicked out of the building, all because of the wallpaper on your laptop!
This script originally came from here but I have neatened it up and got it working with BackTrack. So the idea of this script is to make it quick to turn your BackTrack5 gnome build into something that resembles Windows XP to help you blend in with the crowd.
The package can be downloaded from here (please don’t hotlink as I might move the file to a different server to cope with all the downloads….):

 


 

Sunday, 25 November 2012

Customizing Backtrack 5 by Devender Mahto


Like
https://www.facebook.com/themindbenders

Ask
https://www.facebook.com/devendermahto