winexec for linux[通俗易懂]

winexec for linux[通俗易懂]ViewFullVersion:[allvariants]psexecforLinuxpromodusAugust25th,2008,04:42AMAftersometrial&errorI’vegottenwinexectoworkonLinux.Thisisidenticaltothepse

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

View Full Version : [all variants] psexec for Linux


promodus
August 25th, 2008, 04:42 AM

After some trial & error I’ve gotten winexec to work on Linux.

This is identical to the psexec version by sysinternals.

http://eol.ovh.org/winexe/

http://eol.ovh.org/winexe/winexe-source-071026.tar.bz2

uncompress, then

./autogen.sh

./configure

make proto bin/winexe

Then for example, I have a VM with the netbios name vm-xptesting:

./winexe -U “admin” //vm-xptesting ‘cmd.exe’

Password for [WORKGROUP\admin]:

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32>

Lastly do not forget to turn off simple file sharing on your windows machines.


zcubed
August 25th, 2008, 09:22 PM

I have been trying to get winexe to work for a couple of weeks also. psexec is a great tool if you have to support very many windows machines.

I had to run:

sudo apt-get install autoconf

sudo apt-get install automake

to get your code to go.

I also had to use “-U “domain\user” to get it to run under my account.

AND It works! Thanks!

C:\WINDOWS\system32>defrag c:

defrag c:

Windows Disk Defragmenter

Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc.

Analysis Report

71.22 GB Total, 57.98 GB (81%) Free, 7% Fragmented (14% file fragmentation)


promodus
August 26th, 2008, 07:11 AM

Revised install procedure:

sudo apt-get install build-essential automake autoconf

sudo apt-get install auto-apt checkinstall

cd /usr/src

wget http://eol.ovh.org/winexe/winexe-source-071026.tar.bz2

tar xvjf winexe-source-071026.tar.bz2

cd winexe-source-071026

sh autogen.sh

auto-apt run ./configure

make proto bin/winexe

sudo checkinstall -D cp bin/winexe /usr/local/sbin/.


shamil.si
September 10th, 2008, 01:47 PM

There is a simple way to install winexe on Ubuntu/Debian:

sudo apt-get install wmi-client

Then you have winexe and wmic (wmi query utility) installed and ready to use.


promodus
September 11th, 2008, 03:26 AM

Awesome, gave you thanks.

c0mputernick
September 30th, 2008, 10:48 PM

There is a simple way to install winexe on Ubuntu/Debian:

sudo apt-get install wmi-client

Then you have winexe and wmic (wmi query utility) installed and ready to use.

Has anyone tried this across the internet? Ive been able to get it to work internally on the lan, but i have servers around the internet i need to administer as well and would love to be able to use this in my backup scripts. any ideas on how to use it? Does it use a special port or something?


yoshco
March 29th, 2010, 12:04 AM

post revivel

cant get it to run,

apt-get install wmi-client gives

Couldn’t find package wmi-client

and if i try

sh autogen.sh

i get

autom4te: /usr/bin/m4 failed with exit status: 1

autoheader: ‘/usr/bin/autom4te’ failed with exit status: 1


TopQuark_net
April 9th, 2010, 05:14 PM

The wmi-client package has been removed, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523638

In addition, the build scripts in winexe 0.90 don’t work with autoconf >2.60

However, Zenoss is maintaining a copy of winexe that has been updated to work with new versions of autoconf.

So, the following worked for me on karmic:

sudo apt-get install build-essential autoconf checkinstall

cd /usr/src

svn co http://dev.zenoss.org/svn/trunk/wmi/Samba/source

mv source winexe-source-2010.04.09

cd winexe-source-2010.04.09

./autogen.sh

./configure

make proto bin/winexe

sudo checkinstall -D cp bin/winexe /usr/local/bin/.


MSPdwalt
May 13th, 2010, 04:23 AM

So is there a way to get winexe in a package for Lucid? or do we have to manually install it?

Phkillah
August 4th, 2010, 05:45 PM

So is there a way to get winexe in a package for Lucid? or do we have to manually install it?

The manual method one post before yours worked for me. @10.04


angus73
September 6th, 2010, 08:48 AM

The method mentioned by Phkillah also worked for me on Lucid 64bit

Thank you very much!

A.


ulrichard
July 28th, 2011, 03:40 PM

You can install it from one of these two ppa’s:

https://launchpad.net/~richi-paraeasy/+archive/ppa/+packages

https://launchpad.net/~jdthood/+archive/winexe/+packages

Let me know if it works as I’m only getting errors from the Win7_64 box.

Rgds

Richard


jdthood
August 9th, 2011, 01:31 PM

This PPA:

https://launchpad.net/~richi-paraeasy/+archive/ppa/+packages

contains a package identified as version “1.0.3a”. However, the latest release of winexe has version number “1.00”. The package in the above archive contains a winexe binary that identifies itself as version “0.80”.

Winexe 1.00 is built by the openSUSE build service:

https://build.opensuse.org/package/show?package=winexe&project=home%3Aahajda%3Awinexe

Before I discovered this I made winexe 1.00 available in my own PPA:

https://launchpad.net/~jdthood/+archive/winexe/+packages



Thomas Hood

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/157647.html原文链接:https://javaforall.net

(0)
上一篇 2022年7月27日 下午4:00
下一篇 2022年7月27日 下午4:00


相关推荐

  • matlab 动态面板数据分析,MATLAB空间面板数据模型操作简介 空间面板数据模型

    matlab 动态面板数据分析,MATLAB空间面板数据模型操作简介 空间面板数据模型MATLAB 空间面板数据模型操作简介 MATLAB 安装 在民主湖资源站上下载 MATLAB2009a 或者 2010a 按照其中的安装说明安装 MATLAB MATLAB 较大 占用内存较大 安装的话可能也要花费一定的时间 一 数据布局 首先我们说一下 MATLAB 处理空间面板数据时 数据文件是怎么布局的 熟悉 eviews 的同学可能知道 eviews 中面板数据布局是 一个省份所有年份的数据作为一个单元 纵

    2026年3月18日
    2
  • 30B规格新标杆!智谱AI开源GLM-4.7-Flash,多项测试力压阿里OpenAI

    30B规格新标杆!智谱AI开源GLM-4.7-Flash,多项测试力压阿里OpenAI

    2026年3月12日
    1
  • Python 编译器_如何在pe系统里安装软件

    Python 编译器_如何在pe系统里安装软件好久都没更新博客了,最近是真的很忙,每天抽出1小时写博客,有的时候更本没时间,今天写一个解析PE的一个软件,过程和内容很干,干货干货之前有很多人加我要资料和软件,我从来没说过要钱什么的,只要给个关注和点赞,就可以了,需要什么资料,只要我可以给,我会不要一分钱免费给你们资料,欢迎大家来评论博主?点个赞留个关注吧!!资料(百度网盘)提取码:i4ptPE解析软件和源代码包文件提取码:07bhPE解析器软件安装包提取码:r9og激活成功教程版打包软件–打包为安装包先看视频,双击打开

    2022年10月16日
    4
  • 大型网站架构设计及技术总结

    大型网站架构设计及技术总结一个小型的网站 比如个人网站 可以使用最简单的 html 静态页面就实现了 配合一些图片达到美化效果 所有的页面均存放在一个目录下 这样的网站对系统架构 性能的要求都很简单 随着互联网业务的不断丰富 网站相关的技术经过这些年的发展 已经细分到很细的方方面面 尤其对于大型网站来说 所采用的技术更是涉及面非常广 从硬件到软件 编程语言 数据库 WebServer 防火墙等各个领域都有了很高的要求

    2026年3月17日
    2
  • Redis锁的介绍「建议收藏」

    Redis锁的介绍「建议收藏」Redis锁的实现:由于Redis是单进程的,可以简单用setnx这个命令进行加锁操作,谁能操作成功,谁就可以获得锁。简单的代码如下:defacquire_lock():   #identifier:唯一标识客户端   #lockname锁名字   #redis客户端连接   ifredis.setnx(lockname,identifier):     …

    2022年6月16日
    34
  • Android 多线程之HandlerThread 完全详解

    转载请注明出处(万分感谢!):http://blog.csdn.net/javazejian/article/details/52334098出自【zejian的博客】关联文章:Android多线程之HandlerThread完全详解Android多线程之IntentService完全详解  之前对线程也写过几篇文章,不过倒是没有针对android,因为java

    2022年4月1日
    39

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号