Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 522
  • Last Modified:

curl and mtr for windows BusyBox

I have been searching and cannot find curl and mtr for the windows version of BusyBox.
Might someone know where I can find these or if they do not exist.

If they do not exist, are there any options for compiling for this version of BusyBox?
0
projects
Asked:
projects
  • 11
  • 10
1 Solution
 
gheistCommented:
Which version? busybox is just packager that takes all executables you want in single one.
0
 
projectsAuthor Commented:
What ever the latest version is... but the one I am using right now is;

BusyBox v1.19.1_18_0-306-geb28f73.git (2011-01-16 17:56:02 ICT) multi-call binary.
0
 
gheistCommented:
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
projectsAuthor Commented:
Yes, I know about that FAQ and that is why I posted this question, because it is still not clear if mtr and curl code might be available for this version of busybox.

I know where to find mtr and curl source for openwrt busybox but I cannot confirm anywhere if this source of other would be available for the win based busybox.
0
 
projectsAuthor Commented:
In fact, the question could be...

The openWrt project uses BusyBox and of course we have BusyBox for windows.
Could the mtr and curl code for the openwrt project be re-compiled to work with win based BusyBox?
0
 
gheistCommented:
curl and mtr are separate programs, not busybox on openwrt, your assumption is wrong. You need to use pure mtr and curl sources with busybox (that involves programming)
0
 
projectsAuthor Commented:
I know they are separate programs and need to be added to busybox.

OpenWrt busybox doesn't package these two tools but you can include them in your custom build, which is what I do, or simply use opkg to install them.

For the win version of busybox, there are no assumptions being made, I am wanting to know if the curl and mtr for openwrt could be modified to be included in the win version of busybox.

Yes, with some programming involved :)
0
 
gheistCommented:
You called in openwrt, not me. mtr and curl are fairly big packages for environments where busybox is relevant.

1) download, unzip busybox
2) download and add mtr
2A) change it accordingly to FAQ entry
3) download and add curl
3A) change it accordingly to FAQ entry
4) compile and enjoy
0
 
projectsAuthor Commented:
I run curl and mtr on all of my openwrt routers. When I make a build, I simply add these extras into the build.

What I am wanting to find is more information on how I can do the same for a win busybox build, you know, without having to install a full separate version of curl and mtr.

Are you talking about the Linux (openwrt) version of bb or the win version? I'm not sure what you are suggesting in your last post. Based on the work we've done so far, it's more complicated than what you are suggesting but heck, if you know its this easy, I'd love more details.
0
 
gheistCommented:
Read the busybox FAQ again
In case if doubt re-read it.

What help? On windows you should use powershell, cmd, vbs and all that nice stuff, not unix.
0
 
projectsAuthor Commented:
My goal is to maintain a Linux script based application as closely as possible on win as well using something like bb. That is why I am trying to find tools which will run from the command line, able to use scripts only.
0
 
gheistCommented:
cygwin?
0
 
projectsAuthor Commented:
The work first started with cygwin but it is much too bloated. Bb works out nicer.

So far, the downloadable curl was used and we've modified the mtr source code to work from command line but the problem is now that we have a raw sockets issue preventing mtr from running unless by admin.
0
 
gheistCommented:
Yes, raw sockets are only for administrator, it is suid on Linux, so on windows it must be asking for elevation.
0
 
projectsAuthor Commented:
The script will run as a console app I think it's called, as a service is the hope. Since the System or Local user would start that service, then would that take care of the raw sockets problem?
0
 
gheistCommented:
Make mtr a separate program, just in case it needs elevation... Curl will not complain about being part of busybox.
0
 
projectsAuthor Commented:
Yes, it is a separate, stand alone executable at this moment.
From the command line using PowerShell in win 7...

W:/uploads/win_script $ ./mtr.exe
socket(sendsock4): Not owner
mtr: unable to get raw sockets.

W:/uploads/win_script $ ./mtr.exe  -h
socket(sendsock4): Not owner
mtr: unable to get raw sockets.
0
 
projectsAuthor Commented:
That seems to say that it will prompt a user for access every time? In my case, I need this to run autonomously once installed.
0
 
gheistCommented:
There is no secret elevation in windows. User or service must be in administrators group, i.e permanently elevated.
0
 
projectsAuthor Commented:
We ended up building a custom version of mtr and using a separate version of curl.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 11
  • 10
Tackle projects and never again get stuck behind a technical roadblock.
Join Now