Jump to content

I am trying to make portable kali linux build with an orange pi zero (uses the H2 processor, not the H3).  The 4 standard linux distros that you can load onto the orange pi zero all come with SSH because there is no AV out on the pi zero, so you have to use SSH.  However, I am going to be using Kali which, to my knowledge, doesn't start up an SSH server on the initial boot.  My question is, how can I load kali into a VM on my PC, install an SSH server, and set it to start when the system boots, and take that image and put it on an SD card?

I can help with programming and hardware.

<Script>alert("This website is vulnerable to XSS");</Script>

Link to comment
https://linustechtips.com/topic/725092-kali-ssh-image-on-orange-pi-zero/
Share on other sites

Link to post
Share on other sites

7 minutes ago, littlepigboy5 said:

I am trying to make portable kali linux build with an orange pi zero (uses the H2 processor, not the H3).  The 4 standard linux distros that you can load onto the orange pi zero all come with SSH because there is no AV out on the pi zero, so you have to use SSH.  However, I am going to be using Kali which, to my knowledge, doesn't start up an SSH server on the initial boot.  My question is, how can I load kali into a VM on my PC, install an SSH server, and set it to start when the system boots, and take that image and put it on an SD card?

To my knowledge, (this is for the rpi keep in mind, but it's for a drop it and forget it kind of scenario) there is a way. I'm looking through my bookmarks and I'll tell you if I find it.

Want to know which mobo to get?

Spoiler

Choose whatever you need. Any more, you're wasting your money. Any less, and you don't get the features you need.

 

Only you know what you need to do with your computer, so nobody's really qualified to answer this question except for you.

 

chEcK iNsidE sPoilEr fOr a tREat!

Link to post
Share on other sites

This works best on Linux, as root:

 

1) write the ISO, then mount the SD so you can access the root directory

2) edit /etc/rc.local 

3) add, just above the last command "exit 0" the line /etc/init.d/ssh start

4) save & exit

 

unmount the SD, plug it in and see if it works

 

 

also, this is an awful way to do this, so after logging in through ssh, I recommend removing the added line and setting up ssh on startup the proper way

Computer Case: NZXT S340 || CPU: AMD Ryzen 5 1600 || Cooler: CM Hyper212 Evo || MoBo: MSI B350 Mortar || RAM Vengeance LPX 2x8GB 3200MHz || PSU: Corsair CX600 || SSD: HyperX Fury 120GB & 240GB || HDD: WD Blue 1TB + 1TB 2.5'' backup drive || GPU: Sapphire Nitro+ RX 580 4GB

Laptop 1 HP x360 13-u113nl

Laptop Lenovo z50-75 with AMD FX-7500 || OS: Windows 10 / Ubuntu 17.04

DSLR Nikon D5300 w/ 18-105mm lens

Link to post
Share on other sites

20 minutes ago, littlepigboy5 said:

I am trying to make portable kali linux build with an orange pi zero (uses the H2 processor, not the H3).  The 4 standard linux distros that you can load onto the orange pi zero all come with SSH because there is no AV out on the pi zero, so you have to use SSH.  However, I am going to be using Kali which, to my knowledge, doesn't start up an SSH server on the initial boot.  My question is, how can I load kali into a VM on my PC, install an SSH server, and set it to start when the system boots, and take that image and put it on an SD card?

Well, here it is my friend ;)

 

https://www.offensive-security.com/kali-linux/kali-linux-unattended-network-install-pxe/

Want to know which mobo to get?

Spoiler

Choose whatever you need. Any more, you're wasting your money. Any less, and you don't get the features you need.

 

Only you know what you need to do with your computer, so nobody's really qualified to answer this question except for you.

 

chEcK iNsidE sPoilEr fOr a tREat!

Link to post
Share on other sites

23 minutes ago, SCHISCHKA said:

What is stopping you from writing the ISO on the SD card and then boot the SD in an emulator/virtual machine?

I didn't think of that, i'll give it a shot

 

I can help with programming and hardware.

<Script>alert("This website is vulnerable to XSS");</Script>

Link to post
Share on other sites

14 minutes ago, bob51zhang said:

i don't understand.  I got to installing with PXE, but it looks like I still need to be able to see the display for it to work when it sends me to this link  Kali Linux Network PXE Install

I can help with programming and hardware.

<Script>alert("This website is vulnerable to XSS");</Script>

Link to post
Share on other sites

34 minutes ago, Cryosec said:

This works best on Linux, as root:

 

1) write the ISO, then mount the SD so you can access the root directory

2) edit /etc/rc.local 

3) add, just above the last command "exit 0" the line /etc/init.d/ssh start

4) save & exit

 

unmount the SD, plug it in and see if it works

 

 

also, this is an awful way to do this, so after logging in through ssh, I recommend removing the added line and setting up ssh on startup the proper way

could i not simply comment out that line?

I can help with programming and hardware.

<Script>alert("This website is vulnerable to XSS");</Script>

Link to post
Share on other sites

1 hour ago, littlepigboy5 said:

i don't understand.  I got to installing with PXE, but it looks like I still need to be able to see the display for it to work when it sends me to this link  Kali Linux Network PXE Install

Can't you edit the files on your SD card from another computer then stick it into the Orange?

Want to know which mobo to get?

Spoiler

Choose whatever you need. Any more, you're wasting your money. Any less, and you don't get the features you need.

 

Only you know what you need to do with your computer, so nobody's really qualified to answer this question except for you.

 

chEcK iNsidE sPoilEr fOr a tREat!

Link to post
Share on other sites

1 minute ago, bob51zhang said:

Can't you edit the files on your SD card from another computer then stick it into the Orange?

yea

I can help with programming and hardware.

<Script>alert("This website is vulnerable to XSS");</Script>

Link to post
Share on other sites

13 hours ago, littlepigboy5 said:

could i not simply comment out that line?

you could, maybe for future reference

Computer Case: NZXT S340 || CPU: AMD Ryzen 5 1600 || Cooler: CM Hyper212 Evo || MoBo: MSI B350 Mortar || RAM Vengeance LPX 2x8GB 3200MHz || PSU: Corsair CX600 || SSD: HyperX Fury 120GB & 240GB || HDD: WD Blue 1TB + 1TB 2.5'' backup drive || GPU: Sapphire Nitro+ RX 580 4GB

Laptop 1 HP x360 13-u113nl

Laptop Lenovo z50-75 with AMD FX-7500 || OS: Windows 10 / Ubuntu 17.04

DSLR Nikon D5300 w/ 18-105mm lens

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×