Maxteroit: Windows
Linux pada Windows adalah kenyataan, berkat kemitraan antara Canonical (perusahaan induk Ubuntu) dan Microsoft. Ketika CEO Microsoft mengumumkan bahwa Bash shell akan datang ke Windows, sejumlah orang tidak percaya. #BashOnWindows cenderung di Twitter selama berhari-hari, seperti itulah dampak dari berita ini.

Linux di Windows 10


Tapi Bash pada Windows tidak tersedia untuk semua orang dengan segera. Orang-orang harus menginstal Windows 10 technical preview untuk menginstal Linux pada Windows 10. Tetapi ini bukan masalahnya lagi. Upgrade Windows 10 anniversary ada di sini dan sekarang Anda dapat dengan mudah mendapatkan bash di Windows. Tapi sebelum kita menginstal bash di Windows, izinkan saya memberi tahu Anda lebih banyak tentangnya.


Apa itu Bash di Windows?

Bash pada Windows menyediakan subsistem Windows dan Ubuntu Linux berjalan di atasnya. Ini bukan mesin virtual atau aplikasi seperti Cygwin. Ini adalah sistem Linux yang lengkap di dalam Windows 10.

Pada dasarnya, ini memungkinkan Anda untuk menjalankan Bash shell yang sama yang Anda temukan di Linux. Dengan cara ini Anda dapat menjalankan perintah Linux di dalam Windows tanpa perlu menginstal mesin virtual atau dual boot Linux dan Windows. Anda menginstal Linux di dalam Windows seperti aplikasi biasa. Ini adalah opsi yang baik jika tujuan utama Anda adalah mempelajari perintah Linux / Unix.

Saya sarankan membaca artikel ini untuk mengetahui lebih banyak tentang Bash di Windows.


Metode 1: Instal Linux Bash Shell di Windows 10 Fall's Creator Update

Hal baiknya adalah bahwa Fall's Creator Update membuatnya lebih mudah untuk menginstal Bash di Windows 10. Anda bisa mendapatkannya dalam satu klik dari Windows Store. Masih ada beberapa hal yang harus dilakukan.

Saya menginstal Ubuntu menggunakan subsistem Windows 10 Linux. Anda juga dapat menggunakan SUSE Linux. Prosedurnya sama untuk kedua distribusi.

Langkah 1: Aktifkan fitur "Windows Subsystem untuk Linux"

Hal pertama yang perlu Anda lakukan adalah mengaktifkan fitur Windows Subsyetm untuk Linux dari PowerShell.

Buka menu Start dan cari PowerShell. Jalankan sebagai administrator:

Powershell Ubuntu 1

Setelah menjalankan PowerShell, gunakan perintah di bawah ini untuk mengaktifkan Bash di Windows 10.

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Anda akan diminta untuk mengonfirmasi pilihan Anda. Gunakan Y atau tekan enter:

Powershell Ubuntu 2

Sekarang Anda harus diminta untuk reboot. Bahkan jika Anda tidak diminta, Anda harus reboot sistem Anda.


Langkah 2: Unduh sistem Linux dari Windows store

Setelah sistem Anda reboot, buka Windows Store dan cari Linux.

Install Ubuntu Windows 10 Linux Subsytem

Anda akan melihat opsi untuk menginstal Ubuntu atau SUSE. Saya telah menginstal Ubuntu untuk Bash di Windows di sini.


Apa perbedaan antara menggunakan Ubuntu atau openSUSE atau SUSE Linux Enterprises? Dan yang mana yang harus Anda gunakan?

Jika itu pertanyaan Anda, mungkin Anda tidak tahu banyak tentang distribusi Linux. Untuk memberi tahu Anda dengan cepat, perbedaan utama adalah pada perintah untuk menginstal paket baru di dalam subsistem Linux ini. Saya sarankan pergi untuk Ubuntu dalam hal ini.

Setelah Anda memilih distribusi pilihan Anda, Anda akan melihat opsi untuk menginstalnya. Perhatikan bahwa ini akan mengunduh file berukuran sekitar 1Gb. Jadi, Anda harus memiliki koneksi internet yang baik di sini.


Langkah 3: Jalankan Linux di dalam Windows 10

Anda hampir sampai. Setelah Anda menginstal, sekarang saatnya untuk melihat cara mengakses Bash di Windows 10.

Hanya mencari distribusi Linux yang Anda instal pada langkah sebelumnya. Dalam kasus saya itu adalah Ubuntu. Anda akan melihat bahwa itu berjalan seperti aplikasi Windows normal.

Diperlukan waktu untuk menginstal dan Anda harus menyiapkan nama pengguna dan kata sandi.


Jangan khawatir, ini hanya untuk lari pertama. Bash shell akan tersedia untuk digunakan langsung dari waktu berikutnya dan seterusnya.

Nikmati Linux di dalam Windows 10.

Cara Install Linux Bash Shell di Windows 10


Here’s the main new features and improvements in Faraday v3.4:
Services can now be tagged. With this new feature, you can now easily identify important services, geolocate them and more.
New search operators OR/NOT
In a previous release we added the AND operator, now with 3.4 you can also use OR and NOT operators in the Status Report search box.
This will allow you to find vulnerabilities easily with filters like this one:
(severity:critical or severity:high) or name:”MS18-172”
Performance improvements for big workspaces
We have been working on optimization for our API Rest endpoints to support millions of vulnerabilities in each workspace.

Here is the full change log for version 3.4
  • In GTK, check active_workspace it's not null
  • Add fbruteforce services fplugin
  • Attachments can be added to a vulnerability through the API.
  • Catch gaierror error on lynis plugin
  • Add OR and NOT with parenthesis support on status report search
  • Info API now is public
  • Web UI now detects Appscan plugin
  • Improve performance on the workspace using custom query
  • Workspaces can be set as active/disable in the welcome page.
  • Change Nmap plugin, response field in VulnWeb now goes to Data field.
  • Update code to support latest SQLAlchemy version
  • Fix `create_vuln` fplugin bug that incorrectly reported duplicated vulns
  • The client can set a custom logo to Faraday
  • Centered checkboxes in user list page
  • Client or pentester can't activate/deactivate workspaces
  • In GTK, dialogs now check that user_info is not False
  • Add tags in Service object (Frontend and backend API)
  • Limit of users only takes the active ones
  • Improve error message when the license is not valid


Faraday v3.4 - Collaborative Penetration Test and Vulnerability Management Platform


Injects C# EXE or DLL Assembly into any CLR runtime and AppDomain of another process. The injected assembly can then access static instances of the injectee process's classes and therefore affect it's internal state.

Usage
clrinject-cli.exe -p <processId/processName> -a <assemblyFile>
Opens process with id <processId> or name <processName>, inject <assemblyFile> EXE and execute Main method.

Additional options
  • -e Enumerates all loaded CLR Runtimes and created AppDomains.
  • -d <#> Inject only into <#>-th AppDomain. If no number or zero is specified, assembly is injected into every AppDomain.
  • -i <namespace>.<className>Create an instance of class <className> from namespace <namespace>.

Examples

Usage examples
  • clrinject-cli.exe -p victim.exe -e
    (Enumerate Runtimes and AppDomains from victim.exe)
  • clrinject-cli.exe -p 1234 -a "C:\Path\To\invader.exe" -d 2
    (Inject invader.exe into second AppDomain from process with id 1234)
  • clrinject-cli.exe -p victim.exe -a "C:\Path\To\invader.dll" -i "Invader.Invader"
    (Create instance of Invader inside every AppDomain in victim.exe)
  • clrinject-cli64.exe -p victim64.exe -a "C:\Path\To\invader64.exe"
    (Inject x64 assembly into x64 process)

Injectable assembly example
Following code can be compiled as C# executable and then injected into a PowerShell process. This code accessees static instances of internal PowerShell classes to change console text color to green.
using System;
using System.Reflection;

using Microsoft.PowerShell;
using System.Management.Automation.Host;

namespace Invader
{
    class Invader
    {
        static void Main(string[] args)
        {
            try
            {
                var powerShellAssembly = typeof(ConsoleShell).Assembly;
                var consoleHostType = powerShellAssembly.GetType("Microsoft.PowerShell.ConsoleHost");
                var consoleHost = consoleHostType.GetProperty("SingletonInstance", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null);

                var ui = (PSHostUserInterface)consoleHostType.GetProperty("UI").GetValue(consoleHost);
                ui.RawUI.ForegroundColor = ConsoleColor.Green;
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
            }
        }
    }
}
Injection command:
clrinject-cli64.exe -p powershell.exe -a "C:\Path\To\invader64.exe"

Result:


Note: Tools ini belum kami uji, jika ada pertanyaan silahkan kunjungi langsung link di bawah ini.

Clrinject - Injects C# EXE Or DLL Assembly Into Every CLR Runtime And AppDomain Of Another Process


Leaked? is A Checking tool for Hash codes and Passwords and Emails leaked, uses leakz module from Aidan Holland, and leakz module uses API from Aurelius Wendelken.
Leaked? can work in any OS if they have support Python 3 and 2.

What's new?
  • Check email leaked
  • Update
  • More friendly for users
  • Support Python 2 and 3

Features
  • Check passwords leaked
  • Check hash code leaked
  • Check email leaked NEW!
  • Update NEW!
  • Exit
  • About Author

Install and Run in Linux
sudo apt update && apt install python3 python3-pip
git clone https://github.com/GitHackTools/Leaked
cd Leaked
pip3 install -r requirements.txt
pip install -r requirements.txt
python3 leaked.py
or python leaked.py

Install and Run in Windows
Download and run Python 3 setup file from Python.org. In Install Python 3 , enable Add Python 3.7 to PATH and For all users
Download and run Git setup file from Git-scm.com, choose Use Git from Windows Command Propmt.
After that, Run Command Propmt or PowerShell and enter this commands:
git clone https://github.com/GitHackTools/Leaked
cd Leaked
pip install -r requirements.txt
python leaked.py

Update Leaked?: git pull -f

Notes
Leaked? uses leakz module from Aidan Holland, and leakz module uses API from Aurelius Wendelken
Let follow their Twitter account!

Screenshots




Contact to Author

Leaked? 2.0 - A Checking Tool For Hash Codes, Passwords And Emails Leaked


Enable the Windows Subsystem for Linux
   Before installing any Linux distros for WSL, you must ensure that the "Windows Subsystem for Linux" optional feature is enabled:

      Open PowerShell as Administrator and run:
      Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

   Restart your computer when prompted.

Install your Linux Distribution of Choice
   To download and install your preferred distro(s), you have three choices:
    * Download and install from the Windows Store (see below)
    * Download and install from the Command-Line/Script (read the manual installation instructions)
    * Download and manually unpack and install (for Windows Server -instructions here)

Windows 10 Fall Creators Update and later: Install from the Microsoft Store
 This section is for Windows build 16215 or later. Follow these steps to check your build. For earlier versions of Windows 10, follow these instructions using lxrun.

1, Open the Microsoft Store and choose your favorite Linux distribution.
Microsoft%2BStore%2BLinux

   The following links will open the Windows store page for each distribution:
    * Ubuntu
    * OpenSUSE
    * SLES
    * Kali Linux and Debian GNU/Linux

2, From the distro's page, select "Get"
Microsoft%2BStore%2BUbuntu

Complete initialization of your distro
   Now that your Linux distro is installed, you must initialize your new distro instance once, before it can be used.

Troubleshooting:
   Below are related errors and suggested fixes. Refer to the WSL troubleshooting page for other common errors and their solutions.

   Installation failed with error 0x80070003
    * The Windows Subsystem for Linux only runs on your system drive (usually this is your C: drive). Make sure that distros are stored on your system drive:
    * Open Settings -> Storage ->More Storage Settings: Change where new content is saved
Troubleshooting


Install the Windows Subsystem for Linux on Windows 10

Windows Subsystem for Linux

There are several scenarios in which you may not be able (or want) to, install WSL Linux distros via the Windows Store. Specifically, you may be running a Windows Server or Long-Term Servicing (LTSB/LTSC) desktop OS SKU that doesn't support Windows Store, or your corporate network policies and/or admins to not permit Windows Store usage in your environment.

In these cases, while WSL itself is available, how do you download and install Linux distros in WSL if you can't access the store?

Note:
 Command-Line shell environments including CMD,PowerShelland Linux/WSL distros are not permitted to run on Windows 10 S Mode. This restriction exists in order to ensure the integrity and safety goals that S Mode delivers: Read this post for more information.

Downloading distros
   If the Windows Store app is not available, you can download and manually install Linux distros by clicking these links:
    * Ubuntu 18.04 and Ubuntu 18.04 ARM
    * Ubuntu 16.04
    * Debian GNU/Linux
    * Kali Linux
    * OpenSUSE
    * SLES

   This will cause the<distro>.appx packages to download to a folder of your choosing. Follow the installation instructions to install your downloaded distro(s).

Downloading distros via the Command-Line
   If you prefer, you can also download your preferred distro(s) via the Command-Line:

   Download using PowerShell
      To download distros using PowerShell, use the Invoke-WebRequest cmdlet. Here's a sample instruction to download Ubuntu 16.04.
      Enter this following command:
      Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Ubuntu.appx -UseBasicParsing

      Tip:
 If the download is taking a long time, turn off the progress bar by setting$ProgressPreference = 'SilentlyContinue'

   Download using curl
      Windows 10 Spring 2018 Update (or later) includes the popular curl command-line utility with which you can invoke web requests (i.e. HTTP GET, POST, PUT, etc. commands) from the command-line. You can use curl.exe to download the above distro's. Oen Command Prompt and enter this command:
      curl.exe -L -o ubuntu-1604.appx https://aka.ms/wsl-ubuntu-1604

      In the above example,curl.exe is executed (not justcurl) to ensure that, in PowerShell, the real curl executable is invoked, not the PowerShell curl alias forInvoke-WebRequest.

      Note: Using curl might be preferable if you have to invoke/script download steps using Cmd shell and/or .bat / .cmdscripts.

Installing your distro
   For instructions on how to install your downloaded distro(s), please refer to the Windows Desktop orWindows Server installation instructions.

Manually download Windows Subsystem for Linux distro packages

Subscribe Our Newsletter