Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wine package #332

Closed
wants to merge 1 commit into from
Closed

wine package #332

wants to merge 1 commit into from

Conversation

Rudloff
Copy link
Contributor

@Rudloff Rudloff commented Jun 19, 2016

Hello,

Here is a wine package.
It builds correctly on all platforms but I've only been able to test running it on ARM.
Of course, it will only be able to run Windows programs built for the same architecture. (I've successfully tested an ARM build of Putty.)

I'm not sure about which depencies to include, because Wine seems to automatically enable or disable features based on what library headers are available. So I only included the minimum dependencies required to run wineconsole.

@TheDiamondYT1
Copy link

@fornwall Why do PRs take so long

@its-pointless
Copy link
Contributor

Fornwall runs a populist style system. If there is big buzz about something he is more likely to add it. In effect he is trying to make android great again.

@fornwall
Copy link
Member

This is cool :)! Unfortunately, its a rather big and complicated thing to have in the central package repository, and I'm unsure of the general utility. so I'm closing this for now, and hopefully someone can host it in a third-party repository (see https://github.com/termux/termux-apt-repo).

@fornwall fornwall closed this Mar 14, 2017
@Auxilus
Copy link
Contributor

Auxilus commented May 9, 2017

M ready to host but..how do I install it ?

@Rudloff
Copy link
Contributor Author

Rudloff commented May 10, 2017

It seems the ARM version does not build anymore with recent Termux changes (maybe a change in the NDK?):

configure: error: You need a target with Thumb support to build Wine for ARM.

@Auxilus I'll send you the x86 packages if you want to host them.

@Auxilus
Copy link
Contributor

Auxilus commented May 10, 2017

Sure thanks

@Auxilus
Copy link
Contributor

Auxilus commented May 10, 2017

I can't locate the .wine directory
root@auxilus: ~ $ winecfg wine: failed to initialize: dlopen failed: text relocations (DT_TEXTREL) found in 64-bit ELF file "/data/data/com.termux/files/usr/lib/wine/ntdll.dll.so"

I'm not in root btw

@ghost
Copy link

ghost commented Sep 3, 2017

@Auxilus did you fixed?I want to install wine to the termux too.
I do not know how to fix ~

wget https://dl.winehq.org/wine/source/1.9/wine-1.9.12.tar.bz2

tar -xjvf wine-1.9.12.tar.bz2

autoreconf -i -m -v
./configure --without-x --without-freetype --without-pcap --without-alsa --without-capi --without-cms --without-coreaudio --without-cups --without-curses --without-dbus --without-fontconfig --without-freetype --without-gettext --without-gphoto --without-glu --without-gnutls --without-gsm --without-gstreamer --without-hal --without-jpeg --without-ldap --without-mpg123 --without-netapi --without-openal --without-opencl --without-opengl --without-osmesa --without-oss --without-pcap --without-png --without-pthread --without-pulse --without-sane --without-tiff --without-v4l --without-xcomposite --without-xcursor --without-xinerama --without-xinput --without-xinput2 --without-xml --without-xrandr --without-xrender --without-xshape --without-xshm --without-xslt --without-xxf86vm --without-zlib

export TMPDIR=$HOME/tmp
nano Makefile

SHELL = /data/data/com.termux/files/usr/bin/sh
make make[1]: Entering directory '/data/data/com.termux/files/home/wine-1.9.12/libs/port' gcc -c -o c_037.o c_037.c -I. -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe \ -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \ -Wstrict-prototypes -Wtype-limits -Wvla -Wwrite-strings -Wpointer-arith -gdwarf-2 -gstrict-dwarf \ -g -O2 make[1]: /bin/sh: Command not found make[1]: *** [Makefile:266: c_037.o] Error 127 make[1]: Leaving directory '/data/data/com.termux/files/home/wine-1.9.12/libs/port' make: *** [Makefile:17119: libs/port] Error 2
@Rudloff I try to install wine by your method, but It seems did not work ,could you tell me what should i do?

by the way,I try to test msf
,and one of exploits needs wine.

@Auxilus
Copy link
Contributor

Auxilus commented Sep 4, 2017

@sasudo , no I failed installing wine package, and i do exactly know which exploit needs wine ;)

@ghost
Copy link

ghost commented Sep 4, 2017

@Auxilus I want to test windows 5.1 (XP sp3), I do not want to install kali on my phone ,It is too big ...
so I try to install wine for running with metasploit .
do you have any other idea for running this exploit?

`
msf exploit(eternalblue_doublepulsar) > show info

   Name: EternalBlue
 Module: exploit/windows/smb/eternalblue_doublepulsar

Platform: Windows
Privileged: No
License: Metasploit Framework License (BSD)
Rank: Normal

Provided by:
Pablo Gonzalez ( <Pablo Gonzalez (@pablogonzalezpe)>
Sheila A. Berta ( <Sheila A. Berta (@UnaPibaGeek)>

Available targets:
Id Name


0 Windows XP (all services pack) (x86) (x64)
1 Windows Server 2003 SP0 (x86)
2 Windows Server 2003 SP1/SP2 (x86)
3 Windows Server 2003 (x64)
4 Windows Vista (x86)
5 Windows Vista (x64)
6 Windows Server 2008 (x86)
7 Windows Server 2008 R2 (x86) (x64)
8 Windows 7 (all services pack) (x86) (x64)

Basic options:
Name Current Setting Required Description


DOUBLEPULSARPATH /data/data/com.termux/files/home/.wine/deps/ yes Path directory of
Doublepulsar
ETERNALBLUEPATH /data/data/com.termux/files/home/.wine/deps/ yes Path directory of
Eternalblue
PROCESSINJECT wlms.exe yes Name of process to inject into (Change to lsass.exe for x64)
RHOST yes The target address
RPORT 445 yes The SMB service port (TCP)
TARGETARCHITECTURE x86 yes Target Architecture (Accepted: x86, x64)
WINEPATH /data/data/com.termux/files/home/.wine/drive_c/ yes WINE drive_c
path

Payload information:
Avoid: 3 characters

Description:
This module exploits a vulnerability on SMBv1/SMBv2 protocols
through Eternalblue. After that, doublepulsar is used to inject
remotely a malicious dll (it's will generate based on your payload
selection). You can use this module to compromise a host remotely
(among the targets available) without needing nor authentication
neither target's user interaction. ** THIS IS AN INTEGRATION OF THE
ORIGINAL EXPLOIT, IT'S NOT THE FULL PORTATION **

msf exploit(eternalblue_doublepulsar) > `

@Auxilus
Copy link
Contributor

Auxilus commented Sep 4, 2017 via email

This was referenced Sep 10, 2017
@akshay235
Copy link

Please add stable pakage wine
Plz

@ghost
Copy link

ghost commented Sep 27, 2017

Any update ???

@Auxilus
Copy link
Contributor

Auxilus commented Nov 1, 2017

@fornwall @Rudloff I'm getting

make[1]: Entering directory '/data/data/com.termux/files/home/git/wine/tools/widl'
bison -p parser_ -o parser.tab.c -d parser.y
make[1]: *** [Makefile:291: parser.tab.h] Aborted
make[1]: Leaving directory '/data/data/com.termux/files/home/git/wine/tools/widl'
make: *** [Makefile:21935: tools/widl] Error 2

i did ./configure with same args as in this pr and did make tools before make install

@Rudloff
Copy link
Contributor Author

Rudloff commented Nov 1, 2017

@Auxilus You should not run configure directly; you should use build-package.sh to ensure that you are using the correct environment.

@seisdr

This comment has been minimized.

@termux termux deleted a comment from spiral009 Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants