Proxmark developers community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

#1 2017-05-12 08:49:38

iceman
Administrator
Registered: 2013-04-25
Posts: 4,158
Website

Win10 - bash - installing dev-env

Since there is a bash shell (ubuntu based) available native from inside Win10,

You need to:

- enable the developer mode   (control panel/updates/for developers/
- enable Windows Subsystem for Linux (beta)   ( turn windows features on off )
- restart computer
- run "bash" and answer yes to some questions,  (and select a username)

Now you have a bash shell to play with.

I had git installed already,  not sure if it comes with bash aswell,   just follow the normal instructions.
git clone proxmark3 repo
sudo apt-install...
and you can compile just fine. smile

However running the proxmark client turned out that Serial ports is lacking support for the bash shell.
sad  so I can't run it.   Will be interesting to see how/when serial ports will be supported. 

Ultimately, this might solve the issue of running proxspace/mingw on windows.


modhex(hkhehghthbhudcfcdchkigiehgduiehg)

Offline

#2 2017-05-12 09:42:00

ntk
Contributor
Registered: 2015-05-24
Posts: 701

Re: Win10 - bash - installing dev-env

Very surprise for window OS, they could not manage to protect their own space and open now a new front so hackers can have their own game... That could be a new play ground for experience users. But could also be a new mine field.

personally I would stay clear of any mix.

If you are window stay window
If you are ubuntu stay ubuntu
If you are mint stay mint
If you are kali stay kali
ooops forget the third dim people ... If you are Mac stay Mac
you mix the environment, when come to issue, you hardly get any support from OP and could be very alone

Last edited by ntk (2017-05-12 09:43:50)


modhex(ichbifhkhghuhehghkiehbihhkidifighgebecedfchihthbhkhrduhehvht)

Offline

#3 2017-05-12 10:55:34

iceman
Administrator
Registered: 2013-04-25
Posts: 4,158
Website

Re: Win10 - bash - installing dev-env

This might be a can of worms mixing bash on windows but if it works then it could be a good thing.

Sidenote,
since this is an opensource commnunity and people do this on their free time,  the expectation of support from me seems very strange.
I don't get paid to answer all mails from ppl who are having trouble or ask questions.   Usually I tell them to post on the forum, since thats the purpose of the forum.


modhex(hkhehghthbhudcfcdchkigiehgduiehg)

Offline

#4 2017-05-12 12:27:55

gator96100
Contributor
From: Austria
Registered: 2016-03-25
Posts: 78

Re: Win10 - bash - installing dev-env

Not all Windows user are using Win10, so this could only replace proxspace on Win10.
Btw: Seems like serial support is already working in the insider builds(I didn't test it)https://msdn.microsoft.com/en-us/comman … uild-16176

Last edited by gator96100 (2017-05-12 12:28:28)


modhex(hligicighgidilhkfchihtijduhbif)

Offline

#5 2017-05-12 13:13:14

iceman
Administrator
Registered: 2013-04-25
Posts: 4,158
Website

Re: Win10 - bash - installing dev-env

nice link,  https://blogs.msdn.microsoft.com/wsl/20 … for-linux/
claims it should work.
I just don't get any /dev/ttyS...  devices with my pm3 connected on com7.


modhex(hkhehghthbhudcfcdchkigiehgduiehg)

Offline

#6 2017-11-25 16:34:11

gentilkiwi
Contributor
Registered: 2017-10-10
Posts: 19

Re: Win10 - bash - installing dev-env

I confirm: Windows LSM (Ubuntu based) is able to make a perfect proxmark build !

And after running

sudo chmod 666 /dev/ttyS4

(for my COM4 port)

I was able to run proxmark, and even use flasher for bootrom / fullimage \o/
In bonus, if you have a Xming server running, and...

export DISPLAY=:0

...you have a nice full version, with the graph window!

327981lsm.png

Offline

#7 2017-11-25 17:57:27

iceman
Administrator
Registered: 2013-04-25
Posts: 4,158
Website

Re: Win10 - bash - installing dev-env

Nice one!

Ad I noticed that you need to be registered for  "windows insider preview builds" aswell in order to get the serialport working.


modhex(hkhehghthbhudcfcdchkigiehgduiehg)

Offline

#8 2017-11-25 18:17:01

gentilkiwi
Contributor
Registered: 2017-10-10
Posts: 19

Re: Win10 - bash - installing dev-env

I'm not registered as it.
I think it's related to : 10.0.16299.19 / 1709 version

edit: developer mode isn't needed anymore smile

Last edited by gentilkiwi (2017-11-25 19:40:56)

Offline

#9 2017-11-26 06:36:19

iceman
Administrator
Registered: 2013-04-25
Posts: 4,158
Website

Re: Win10 - bash - installing dev-env

Yes!  I needed to update my computer in order to get the 1709 version.  Now bash runs proxmark3 out-of-the-box  No more mingw.

But a X-system would be fine.  Which ones can I choose between?!?   I can't see any reference in the list for your xming server

sudo apt list | grep x

Xming - X server for windows
https://sourceforge.net/projects/xming/


Adding the display environment variable to the your bash-profile, no need to call it every time.

echo "export DISPLAY=:0.0" >> ~/.bashrc

modhex(hkhehghthbhudcfcdchkigiehgduiehg)

Offline

#10 2017-11-26 15:45:20

gentilkiwi
Contributor
Registered: 2017-10-10
Posts: 19

Re: Win10 - bash - installing dev-env

Yep Xming server must be installed outside LSM.
But it works smile

Of course, binaries will not work for everyone (they need to have the LSM layer)... but when developing around Proxmark, it will help a lots smile

Last edited by gentilkiwi (2017-11-26 16:16:42)

Offline

#11 2017-11-26 19:30:54

iceman
Administrator
Registered: 2013-04-25
Posts: 4,158
Website

Re: Win10 - bash - installing dev-env

Works very nice,  however I seem to get problem when flashing.  The ttyS* disappeares when entering flashmode.  Any suggestions?


modhex(hkhehghthbhudcfcdchkigiehgduiehg)

Offline

#12 2017-11-26 20:20:29

gentilkiwi
Contributor
Registered: 2017-10-10
Posts: 19

Re: Win10 - bash - installing dev-env

Got the same issue, but only one time (the first one).
Don't hesitate to alternate sudo flasher / sudo chmod

Offline

#13 2017-11-27 13:29:19

iceman
Administrator
Registered: 2013-04-25
Posts: 4,158
Website

Re: Win10 - bash - installing dev-env

hm. still no go.  However I'm pleased with running client and plot windows just like that.  I don't need to develop in it.


modhex(hkhehghthbhudcfcdchkigiehgduiehg)

Offline

Board footer

Powered by FluxBB