Affichage des articles dont le libellé est Linux. Afficher tous les articles
Affichage des articles dont le libellé est Linux. Afficher tous les articles

4 Best Linux Command Line Books

Almost every geek is fascinated to Linux's complex beauty, security and flexibility but if you are a non-linux user or a beginner it is going to be headache to even extract a zip file and install a program using terminal. So if you want to learn Linux then I would strongly recommend you to read Linux Command Line and Shell Scripting Books, eBooks or PDFs to enhance your skills from scratch.

Linux Command Line

Best Books to learn Linux Command Line

Linux is all about commands and codes without it, its nothing but surely it has been introducing nice looking GUIs since its dawn yet most of the task are done through terminal. And its nothing difficult once you begin doing it yourself, all you need is good resources and Linux PDF eBooks are said to be an excellent sources of learning quickly and easily.


The Linux Command Line: A Complete Introduction

One of the best Linux book featuring complete introduction of command lines from basic file navigation to advance topics such as writing programs in Bash. It feeds you very practical examples and explains everything with in-depth tutorial. The initial part serves as an introduction and teaches fundamental lessons like manipulating files and directories, package installation, keyboard tricks etc and then it takes you to advance level of networking, package management, redirection, editing with Vi and compiling programs. You will also learn to automate boring tasks using Shell Scripting. It is very beginner friendly with easy digestible chapters and lots of illustrations as well.


Learn Linux FAST: Including All Essential Command Lines (Linux for Beginners)

If you are an absolute beginner and want to learn from very basic then this book is for you. It's a very helpful short read for newbies because its primary concern is mastering your base by teaching you important Command Lines and Tools. It teaches with step-by-step tutorials and unfolds some amazing tips and tricks, However it also contains loads of guides on Installation and getting started along with brief introduction of Linux distro, And after that it gives some serious practical lessons on Installing Softwares, Redirection and File Editing commands and wildcards too.


Linux Pocket Guide: Essential Commands

This is the best book for Linux commands because it contains hundreds of commands with clear explanation and tutorials on topics such as Programming with Shell Scripts, Media, Text manipulation and pipelines, User management, controlling process and all other important commands which makes you a power user. Whether you are a novice, expert or a daily user you should always have it in your pocket for a quick reference guide. I personally suggest this book to everyone as it is capable of making you Linux ninja.


Linux Command Line and Shell Scripting Bible

Do you want to become expert at Command Line and Shell Scripting? then is what you need. This is a all in one Linux book covering wide range of lessons on Shell Scripting and Command Line fundamentals. It will actually teach you how to directly communicate with your computer using codes giving you more capability and time. The major part of the book is filled with immense guide on Creating Practical Scripts, Understanding and Creating Shell. You will learn to write simple script utilities to automate task, Dash and Bash Shell and Work with like nano, KDE and GNOME editors. It also features one of the largest list of Linux commands cheat sheet.


~ vendredi 9 septembre 2016 0 commentaires

Linux Weaknesses Making It Easier To Get Exploited

Today we will discuss four weaknesses in current Linux and PaX ASLR design and implementation.

1) Too low entropy.
2) Non-uniform distribution.
3) Correlation between objects.
4) Inheritance.

The new technique for exploiting the correlation and weakness is presented, which can bypass full ASLR Linux in 64-bit architecture system in less then a second. A deep analysis of these weaknesses enabled to propose new ASLR design, a concept named as ASLR-NG. This will overcome all the current ASLR’s weaknesses including PaX solution.  Finally presents ASLRA, a tool to analyze the ASLR entropy of Linux.




~ jeudi 16 juin 2016 0 commentaires

Top 3 Forensic Examination Tools for Linux

Computer forensics and evidence management are the most important topic and very important aspect, when we talk about computer crimes. Ethical hacking and intrusion management used to protect the system, but if the incident happened, then you need to investigate it. Here computer forensic comes. We have also created a free computer forensics training course for everyone to get the basic understanding of the process, methodology and tools used while conducting a digital investigation.

Anyway, in this story, you will find the basic introduction of the top 3 forensic tools.

The Sleuthkit & Autopsy

For detail tutorial, please join the free forensics class here.

www.sleuthkit.org

The Sleuthkit is a free open source suite of forensic utilities that has a GUI called Autopsy. This tool suite has strong support for Linux file systems and can be used to examine the full details of inodes and other data structures. The Sleuthkit has a plugin framework that supports automated processing. The Autopsy GUI for The Sleuthkit is shown here with a Linux file system:


Digital Forensics Framework

For detail tutorial, please join the free forensics class here:

http://www.digital-forensic.org/

DFF (Digital Forensics Framework) is a free and Open Source computer forensics software built on top of a dedicated Application Programming Interface (API).
  •     Preserve digital chain of custody: Software write blocker, cryptographic hash calculation
  •     Access to local and remote devices: Disk drives, removable devices, remote file systems
  •     Read standard digital forensics file formats: Raw, Encase EWF, AFF 3 file formats
  •     Virtual machine disk reconstruction: VmWare (VMDK) compatible
  •     Windows and Linux OS forensics: Registry, Mailboxes, NTFS, EXTFS 2/3/4, FAT 12/16/32 file systems
  •     Quickly triage and search for (meta-)data: Regular expressions, dictionaries, content search, tags, time-line
  •     Recover hidden and deleted artifacts: Deleted files / folders, unallocated spaces, carving
  •     Volatile memory forensics: Processes, local files, binary extraction, network connections


SMART for Linux

http://www.asrdata.com

SMART is a software utility that has been designed and optimized to support data forensic practitioners and Information Security personnel in pursuit of their respective duties and goals.

SMART is more than a stand-alone data forensic program. The features of SMART allow it to be used in many scenarios, including:
  •    “Knock-and-talk” inquiries and investigations
  •     on-site or remote preview of a target system
  •     post mortem analysis of a dead system
  •     testing and verification of other forensic programs
  •     conversion of proprietary “evidence file” formats
  •     baselining of a system

Conclusion:

No matter what tool or set of tools are you using, the approach is very important. Your methodology, process, chain of custody and maintaining the integrity of the data is crucial, otherwise you will have nothing in your hands as an evidence. So training is crucial, you need to develop your profile and you need to work with your master so that you will become the master.

Join the Free Computer Forensics Class started by Ehacking!


~ mardi 15 septembre 2015 0 commentaires

Linux Server Setup Essentials Training

Are you curious to know the process to launch your own server based on Linux OS? Do you really want to know how the engineers setup database, apache and PHP on the web server? Well creating and setup own server is very important for business and even for personal use. Well, if you want to have your pentesting distribution installed on the server for remote attack, then believe me you need to learn the process to setup a server.

This particular course has been designed with the aim to teach you the basic concepts and tools that you will need to build fully functional Linux based web server:

  • Physical dedicated server set up
  • DigitalOcean and Amazon Web Services virtual private server set up
  • Debian Linux operating system installation
  • Apache 2 web server, MySQL database and PHP installation
  • Tuning the web server for low memory systems
  • Setting up a personal web hosting
  • And many important topics
The instructor of the course is, Aleksey Grebeshkov (Ph.D.),and working as a associate professor and researcher at the Kyiv National Economic University (Kyiv City, Ukraine).

Course Overview



Cost:                                         $99
50% OFF coupon:                    LSE50
Discounted price:                $49.5  

Enroll now today to get the limited time discount offer:

http://academy.ehacking.net/courses/linux-server-seup?product_id=25109&coupon_code=LSE50

 

~ samedi 12 septembre 2015 0 commentaires

Layer 2 Security Issues and Their Mitigation

So, I have left Accenture and have joined the red team of a Big 4; & below is my first presentation which I have given there (redacted completely; obviously).

Comments are very much welcome.



~ lundi 6 juillet 2015 0 commentaires

Linux Bash Shell Tutorial :How to use Pipeline and filters . 8 tips and tricks



  In this post, I will share  8 tips that you can use to manage  terminal data using pipeline and filters.

1) less Command

less will allow you to quickly browse any file section by section in the terminal (standard output).


  In above example,when I piped "lshw" command to "less" command, the output is display section by section. you can use space bar or arrow sign to  move to next section of  the file to exit you can press "q"  

2) Sort command 
sort command will sort the output of the first command.


  In above example, "lsusb" command list the usb devices connected to my machine. once I pipe it to sort command ,the usb devices is sorted  accordingly.

3) grep command

grep command will capture certain file pattern and  give the output to the screen


  In above example,i want to search for hardware with the specific word  "Intel" on it.  "lshw" command will list all the hardware on my computer .By pipe it to "grep" command, it will filter the output to only show  the line with Intel specific word in it.

4) wc command

 wc is a short form of "word count" ."wc" command will display the total line, word and byte count of a file .

  
   In above example, I list usb devices on my computer and filter it through "wc" command. The output of this command will give some numbers referring to line,words and bytes . -l will give the total lines , -m will give the total bytes and -w will give the total words in the file.

5) head command

"head" command will print the first few line that we specified in the terminal.

  
   In above example, I want to display first 4 line of "lsusb" result.to do this I pipe "lsusb" command by using head -(dash) n followed with number 4 .

6) tail command

"tail" command will print the last few line that we specified in the terminal.
 


To display few lines from the bottom of standard output,you can use tail command to do so.  pipe  lsusb command  to tail command followed with -n and followed with number of lines that you want to display. in this example, I display 3 bottom lines from lsusb output.


7) tee command

 "tee" program reads standard input and copies it to both standard output (by allowing the data to continue run down in the pipeline) and to one or more files. This is useful for capturing a pipeline’s contents at an intermediate stage of processing


  In above example, I run "lshw" command to list my computer hardware.
tee command  save lshw output to lshw.txt file And at the same time the output is send to "grep" command to look for intel word pattern, this command work as a T junction in our terminal.



8) uniq command

  "uniq" command is often used in conjunction with sort . "uniq" accepts a
sorted list of data from either standard input or a single filename argument and will remove any duplicate information.



   In above example, I list both files in user binary folder and binary folder.
by pipe it through "uniq" command, it will remove all the duplicate files between these two folder.

 If you want to see the list of duplicates file instead, you can  add -d option to "uniq" command




Read Previous : Linux Bash Shell Tutorial : How to shorten command in Linux Terminal


~ mardi 16 juin 2015 0 commentaires

Linux Bash Shell Tutorial :How to shorten command in Linux terminal

  Using long command  can be a pain especially when it requires us to type every single time and do minor change in the terminal.We can shorten our linux command by using a command call "alias" .

This command will let you assign any character combination to a specific command.

orca@Positive-Space:~$ alias chg='cd ..'                                                                   



You can also use numbers to assign the command




Read Next : Linux Bash Shell Tutorial: How to use Pipeline and Filters . 8 Tips and Tricks


~ vendredi 12 juin 2015 0 commentaires

Arch Linux New Version 2015.06.01 Available To Download



Arch Linux New Version 2015.06.01 Available To Download

Light Weight GNU/Linux Operating System. It is intended for new installations only; an existing Arch Linux system can always be updated with `pacman -Syu`. The image can be burned to a CD, mounted as an ISO file, or be directly written to a USB stick using a utility like `dd`.

Development focuses on simplicity, minimalism, and code elegance. Arch is installed as a minimal base system, configured by the user upon which their own ideal environment is assembled by installing only what is required or desired for their unique purposes. GUI configuration utilities are not officially provided, and most system configuration is performed from the shell and a text editor. Based on a rolling-release model, Arch strives to stay bleeding edge, and typically offers the latest stable versions of most software.

If you are an existing Arch user, there is no need to download a new ISO to update your existing system. You may be looking for an updated mirrorlist instead.

Current Release: 2015.06.01
Included Kernel: 4.0.4
ISO Size: 637.0 MB

Magnet link for 2015.06.01
Torrent for 2015.06.01

Installation Guide

~ mardi 2 juin 2015 0 commentaires

How to delete old kernels in Ubuntu using Ubuntu tweak GUI



  Kernel is an important part of Linux system. When you upgrade to new kernel version, the old kernel will be left in your system . As time goes by, this might consume your hard drive and cause  problem to your system.

  One of the examples that old kernel might do to your system is  the system unable to install update from Ubuntu Software updater. When you click "Install Now" button, an error will occur .

"The upgrade needs a total of 79.0M free space on disk '/boot'. Please free at least an additional 7,381k of disk space on '/boot' .Empty your trash and remove temporary packages of former installation using 'sudo apt-get clean' "



  One of the reasons why this problem happens is because the old kernel images are filling up your  /boot drive partition . 

  There are few ways on how to remove old kernel. In this tutorial, I share on how to remove old kernel file images using Ubuntu Tweak program.The guide below will help you to install and delete old kernels using the program

1) Download Ubuntu Tweak program


 1.1)Download Ubuntu Tweak from their website

Downloading Ubuntu Tweak


1.2)Double click the download file and finish the  installation from Ubuntu Software Centre.


Ubuntu Software Centre


2)Run Ubuntu Tweak and delete old kernels

2.1)Search Ubuntu Tweak from Ubuntu dash panel and run the program.



2.2)On the Top side panel click "Janitor" and tick  "Old kernel"  under System.




2.3)Check your latest kernel version from the terminal by typing

orca@Positive-Space:~$ uname -r                                                                          


2.4) Click the  old kernel  that you want to delete and click "clean"  to delete old kernels. It is a good practice to keep  previous latest old kernel version on your system .



Removing unwanted kernel

Remaining kernel


 3)Reboot your system try to update your system again . ;)







~ mardi 5 mai 2015 0 commentaires

Linux Bash Shell Tutorial :How to save terminal session typescript or logfile in Linux




   Sometime as a beginner, intermediate or expert system admin, we need to keep a record on what we did to the system whenever we faced with system problems. One way  we can do this is by recording the Linux terminal session.

 We can save terminal session in Linux by using the built in "script" command.  To record any  terminal session type in script command and followed with the file name that you want.

orca@Positive-Space:~$ script log.01012015                                               

  I make it a habit to include the date in all my logs file name for future reference. Once you entered the command,  the terminal will save everything that you type in the terminal and will save it in current directory location. In this example, "log.01012015" file will be saved in  "user home" directory.

saving terminal session

To stop the terminal saving,you can use exit command .

orca@Positive-Space:~$ exit                                                                     

stopping terminal saving



The saved file can be viewed using any text file editor.

~ jeudi 16 avril 2015 0 commentaires

Malware found in Linux Servers

Linux Australia has requested his registered attendees of the organization conference of the last three years  to change their Passwords, aimed the possible breach of one of its Servers. The possible leaked information may include the First and Last names, Postal addresses, Emails, Paswards,Cell numbers according to the Linux President Joshua Hesketh.


According to the Linux President Joshua Hesketh the breach occurred on the 22nd March, as a large number of error reporting emails were sent by the Conference Management (Zookeepr) hostingserver. This server hosted the conference systems for linux.conf.au 2013, 2014 and 2015, and for PyCon Australia 2013 and 2014.

Although this breach has not deleted the information of these registered people from the Linux servers but because their passwords has been leaked Linux suggested them to change their passwords especially if they are using the same on their other accounts.

Linux Australia identified the breach after 48 hours after the Linux admins noted that Zookeeper (Conference Management Software) started sending large number of errors in reporting emails. After that they discovered that their server was under attack from 22nd march.

Linux Australia released a statement that " Linux Australia do not believe this was a targeted attack against the Zookeepr conference management system, nor an attempt to harvest details from the system, we are taking the necessary precautions to review, remediate and minimize the risk of exposure to attacks similar to this."



~ mardi 7 avril 2015 0 commentaires

Turn Chromebook on Developer Mode

How do I turn on developer mode on a Chromebook?
Warning: Entering developer mode will wipe all data off of the SSD.

on a HP Chromebook  14″ With the machine booted Press ESC+REFRESH BUTTON + POWER at the same time.



The chromebook will reboot and you will be met with a message stating “ChromeOS is missing or not found”. Press CTL+D on the keyboard to skip this message. You will then be prompted by another message stating “To turn OS Verification off press enter”. Press ENTER. Your chromebook will then reboot, and prompt with a screen stating “OS Verification is off”. Press CTL+D to skip this message. You will then be prompted with a message “Your system is transitioning into developer mode. Local data has been cleared. Modifications you make to the system are not supported by Google, may cause hardware damage and may void your warranty. To cancel, turn your computer off now”. A timer is set in the top left hand corner of the screen to 30 seconds. Wait for the timer to reach 0. Once the timer has reached 0 you will be prompted with a new message “Preparing system for developer mode. This may take awhile. Do not turn your computer off until it restarts”. Wait for this process to complete; Once the process has complete the chromebook will reboot and you will be met with the message again “OS Verification is off”. Press CTL+D to skip this screen and boot the machine.


Chromebook OS Verification

Note: If you wish to restore your chromebook back to factory and re-wipe your data, reboot your chromebook and press space bar when the following message appears “OS Verification is off. Press space to re-enable”. Pressing space bar will reset your chromebook back to factory with OS verification back on.

Once the chromebook is in developer mode you will be able to take full advantage of the shell command. The shell command is access from the crosh terminal window.

To access the crosh terminal windows press CTLR+ALT+T on your keyboard.

Once open type shell and press enter. This puts you into a shell capable of some basic linux commands. This mode is also used for loading linux with the crouton script.


~ dimanche 29 mars 2015 0 commentaires

Install Ubuntu on a Chromebook

What is Ubuntu and why do I want it on my Chromebook!

Ubuntu is a linux distribution that is widely accepted as the most commonly installed linux distro. It is used as a alternative, althought not a direct replacement, for windows or Mac. Ubuntu extends the functionality of the chromebook, making the chromebook viable for developers, hackers, techies, and the common user.

Why not just install windows?
The underlying architecture from chrome os is strongly based on linux and Ubuntu. Although Im sure it is possible to install windows on a chromebook you would have the dual boot/chrooted awesomeness of both chromeOS and Ubuntu.

How do I install Ubuntu on a Chromebook?
To install Ubuntu on a chromebook it must be in developer mode. please reference the following page to learn how to enter  developer mode.

Once in developer mode you need to download crouton.

Open the crosh terminal (CTLR+ALT+T).

enter shell mode by typing shell / enter.

from shell type sh ~/Downloads/crouton -t unity

12.04 ubuntu is installed by default. You can switch the release of ubuntu by using the -r command.

-t is the target command that specifies what GUI interface you want installed by default. Unity is recommended by me out of the box for Ubuntu for two reasons.

 it works
 it is the default GUI installed when doing a fresh install of Ubuntu.
as of this article I do not recommend gnome for the target gui on the HP Chromebook 14.

The process will run and install ubuntu on the system.

at some point you will be prompted for a user name and password.

How do I start Ubuntu on a Chromebook?
Once the install is complete from the shell type sudo startunity. (This is also known as chroot)

this will start the unity instance.

To transition seamlessly from chromeos and unity press CTRL+ALT+<=(backward) for chromeos and CTRL+ALT+=>(forward).

if the machine is rebooted you will have to enter shell and type sudo startunity again.

~ 0 commentaires

Crack wifi Password and WPS PIN without Dictionary Attack


What is WPS ?
Wi-Fi Protected Setup is known as WPS. It is a wireless networking standard that tries to make connections between a router and wireless devices faster and easier. Security researcher Stefan Viehböck said, the WPS PIN is highly vulnerable to brute force attacks. The eight-digit PIN is stored by routers in two blocks of four digits each. The router checks the first four digits separately from the last four digits. A hacker can brute-force the first block of four digits and move on to the second block. A smart hacker with the right tools can brute-force the pin within a day.In this tutorial we will learn how to crack wifi WPS PIN and Wifi Password what’s more we will learn how can we crack our same target wifi again and again using WPS PIN within Seconds.

Note - Only for Education Purpose

Requirements:
  • Kali Linux OS
  • External Wifi
  • Target Wifi Router
Note - If you are using Kali Linux in Virtual Machine then you need external wifi but if you are using Kali linux with dual boot or as a host OS then your internal wifi will work fine.

1. Open Terminal
(Click image for large view)

2. Write airmon-ng and Press Enter. You will see your Wifi Interface, Chipset and Driver.

3. Write airmon-ng start wlan0 and Press Enter
          Where wlan0 is my interface. It can be different in your System so write it as per your own Interface.

4. Write wash –i mon0 --ignore-fcs and Press enter. You will see your Target Wifi’s BSSID, Channel, WPS Locked Status and ESSID. Press Ctrl + C to stop this scan.

5.   Write reaver –i mon0 –b E8:94:F6:01:0C:60 –d 40 –S –N –vv and Press Enter
              Where E8:94:F6:01:0C:60 is my target wifi BSSID (write your own target’s BSSID) , 40 is delay for trying per Pin, You can increase or decrease this timer. If you want to know about other terms like –S –N then write reaver and Press Enter in a new terminal.
After running above command (actually reaver is a tool) you will see “Associated with E8:94:F6:01:0C:60 (ESSID: geekyshows.com)”. It is a positive sign of cracking process. Sometime you will see “Failed to associate with E8:94:F6:01:0C:60 (ESSID: geekyshows.com)” which means Your target wifi has no network access right now but it doesn’t mean you can’t crack his wifi. You will have to try after sometime.
Now at the end you will see that you have successfully cracked your target wifi’s WPS PIN and Password.

Note - It takes time to crack but it will provide you positive result. You will have to wait at least 24 hours or less.

6. Now we have our target’s wifi WPS PIN so it doesn’t matter if your target recognizes that someone using his internet and how frequently your target changes wifi password. Just because we have target’s WPS PIN we can crack his wifi password again and again till he doesn’t change his WPS PIN.

7. Now Our target is changing his wifi password his old wifi password was kalilinux which we have cracked previously but now he is changing his password with a new password rajhere192. So let’s see how we will crack his new password once again by using WPS PIN within 5 second.

8. Write reaver –i mon0 –b E8:94:F6:01:0C:60 –p 01140200 –vv and Press Enter
           Where E8:94:F6:01:0C:60 is Target’s BSSID and 01140200 is WPS PIN.
You do not need to wait 24 hours this time because we have attacked him with particular WPS PIN So, Now within 5 Second you will crack his new password.
 (Click image for large view)

Now our Tutorials are available on Youtube. Click Below



Like it ? Share it.

~ lundi 23 mars 2015 0 commentaires