Comments (11)
I can find some time and help build for you. What's your router's platform/target?
from passh.
Hi, wow that sound very good, awesome! Thank you very much.
I have this one https://www.gl-inet.com/products/gl-ar750s/ (it's a very nice device by the way)
Architecture Qualcomm Atheros QCA956X ver 1 rev 0
Firmware Version OpenWrt 18.06.1 r7258-5eb055306f / LuCI openwrt-18.06 branch (git-18.196.56128-9112198)
Kernel Version 4.9.120
kindly regards
from passh.
What's the download URL (like https://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt7620/ ) to the install image for your router? I need to download the SDK from the same location.
from passh.
Ohhh shit :-(
Hmm its from gl-inet
https://dl.gl-inet.com/firmware/ar750s/
any chance that I can determine via ssh command on which openwrt version it depends?
https://openwrt.org/toh/gl.inet/gl-ar750s
from passh.
Found it. According to https://openwrt.org/toh/views/toh_fwdownload it should be under https://downloads.openwrt.org/snapshots/targets/ath79/generic/ . Will let you know when it's ready.
from passh.
Great! Thank you very much.
kindly regards
from passh.
Try this: passh - ath79/generic (available for only 7 days)
from passh.
Wow, you are fast :-)
NIce!!!
That works:
root@localhost:~# passh -help
Usage: passh [OPTION]... COMMAND...
-c <N> Send at most <N> passwords (0 means infinite. Default: 0)
-C Exit if prompted for the <N+1>th password
-h Help
-i Case insensitive for password prompt matching
-n Nohup the child (e.g. used for `ssh -f')
-p <password> The password (Default: `password')
-p env:<var> Read password from env var
-p file:<file> Read password from file
-P <prompt> Regexp (BRE) for the password prompt
(Default: `[Pp]assword: \{0,1\}$')
-l <file> Save data written to the pty
-L <file> Save data read from the pty
-t <timeout> Timeout waiting for next password prompt
(0 means no timeout. Default: 0)
-T Exit if timed out waiting for password prompt
-y Auto answer `(yes/no)?' questions
Report bugs to Clark Wang <[email protected]>
Thank you very very much.
Now I can make my script, awesome
kindly reagrds
from passh.
Actually I'm using sexpect on my router now. It's more flexible than passh. You can try it if need more features. :)
from passh.
Hi.
Could you tell me how you have cross-compiled it for openwrt?
When i compile my own stuff i have no problem, but when i try to compile passh:
mips-openwrt-linux-uclibc-gcc -L ~/softwareentwicklung/router/modbus-master-slave/sdk/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib passh.c
i get this:
`
/media/tera/softwareentwicklung/router/modbus-master-slave/sdk/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.3.3/../../../../mips-openwrt-linux-uclibc/bin/ld: warning: ld-uClibc.so.0, needed by /home/andi/softwareentwicklung/router/modbus-master-slave/sdk/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib/libc.so, not found (try using -rpath or -rpath-link)
/tmp/cc4MGTL5.o: In function big_loop':
passh.c:(.text+0x1728): undefined reference to WIFCONTINUED'
/home/andi/softwareentwicklung/router/modbus-master-slave/sdk/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib/libc.so: undefined reference to _dl_app_init_array'
/home/andi/softwareentwicklung/router/modbus-master-slave/sdk/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib/libc.so: undefined reference to _dl_loaded_modules'
/home/andi/softwareentwicklung/router/modbus-master-slave/sdk/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib/libc.so: undefined reference to _dl_app_fini_array'
collect2: ld returned 1 exit status`
I have no idea why it doesnt find ld-uClibc.so.0 ...
Regards, Andi
from passh.
Hi Andi,
I'm not directly invoking the cross compile cc command. I made a simple Makefile and run make package/passh/compile
(see https://openwrt.org/docs/guide-developer/using_the_sdk ).
The package/passh/Makefile
:
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/passh
SECTION := utils
CATEGORY := Utilities
TITLE := passh
endef
define Package/passh/description
This is the package description.
endef
# Specify what needs to be done to prepare for building the package.
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
# Specify where and how to install the program.
define Package/passh/install
$(INSTALL_DIR) $(1)/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/passh $(1)/bin/
endef
# This line executes the necessary commands to compile our program.
$(eval $(call BuildPackage,passh))
The package/passh/src/Makefile
:
passh: passh.o
$(CC) $(LDFLAGS) passh.o -o passh
passh.o: passh.c
$(CC) $(CFLAGS) -c passh.c
clean:
rm *.o passh
from passh.
Related Issues (15)
- wont compile in freebsd HOT 3
- Do not feed stdin until interactive HOT 2
- Add support for ERE?
- Heads-up: passh has been added to the FreeBSD Ports Collection HOT 2
- Add support for "cmd1 ... | passh cmd2 ... | cmd3 ..." ? HOT 1
- passh segfaults when provided a non-existing password file HOT 1
- Complementary Project : `PasshPapyrusScribe` HOT 1
- What is the argument of connection host port plz? HOT 4
- Usage Example on Travis-CI HOT 2
- hide password prompt... HOT 3
- Please set a license HOT 2
- big -C option is broken by design HOT 3
- AIX compile error HOT 10
- Thank your very much for this program! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passh.