Active Topics

 


Reply
Thread Tools
FRuMMaGe's Avatar
Posts: 330 | Thanked: 483 times | Joined on Dec 2010 @ Norwich, UK
#1
Title says it all. I have a script that I've been using in Ubuntu that I would like to port to my N900. It needs to be able to open several xterm windows simultaneously and run a different command in each one. I've tried:

osso-xterm 'command goes here'

Which works in xterm but not from a script for some reason.

Also, how can I end the current command but NOT end the whole script. Ctrl+C worked on Ubuntu but on my N900 it exits the whole script.
__________________
OMNOM: Pacman-like game now in extras-devel

fAircrack (Aircrack GUI): Point-and-click pwnage for your N900
Now with John the Ripper integration
 
MaddogG's Avatar
Posts: 234 | Thanked: 175 times | Joined on Jun 2010 @ Genova (Italy)
#2
Originally Posted by FRuMMaGe View Post
Title says it all. I have a script that I've been using in Ubuntu that I would like to port to my N900. It needs to be able to open several xterm windows simultaneously and run a different command in each one. I've tried:

osso-xterm 'command goes here'

Which works in xterm but not from a script for some reason.

Also, how can I end the current command but NOT end the whole script. Ctrl+C worked on Ubuntu but on my N900 it exits the whole script.
To execute a command in a new xterm window:
osso-xterm -e <command>
For the second part of the question, could you please explain better what do you want to do?
 

The Following User Says Thank You to MaddogG For This Useful Post:
Posts: 244 | Thanked: 354 times | Joined on Jul 2010 @ Scotland
#3
I think this post might be what you are looking for (you wish for the xterm window to stay open after executing the command, correct?):

http://talk.maemo.org/showpost.php?p=311926&postcount=4
 

The Following User Says Thank You to gregoranderson For This Useful Post:
FRuMMaGe's Avatar
Posts: 330 | Thanked: 483 times | Joined on Dec 2010 @ Norwich, UK
#4
Originally Posted by MaddogG View Post
To execute a command in a new xterm window:
osso-xterm -e <command>
For the second part of the question, could you please explain better what do you want to do?
Tried this method. It just opens it in the current xterm window when run from a script.

As for the second part, it's a script which automates the functions of the aircrack suite. It needs to be abe to run airodump to identify APs, then on Ubuntu, I pressed Ctrl+C which brings me back to the main function of m script so I can enter the details of the access point to interface with.

However, on my N900 Ctrl+C just exits the entire script
__________________
OMNOM: Pacman-like game now in extras-devel

fAircrack (Aircrack GUI): Point-and-click pwnage for your N900
Now with John the Ripper integration
 
MaddogG's Avatar
Posts: 234 | Thanked: 175 times | Joined on Jun 2010 @ Genova (Italy)
#5
Originally Posted by FRuMMaGe View Post
Tried this method. It just opens it in the current xterm window when run from a script.
Strange...it works for me. I made a script that simply launches vim (osso-xterm -e vim) and it opens it in a new xterm window.
 
FRuMMaGe's Avatar
Posts: 330 | Thanked: 483 times | Joined on Dec 2010 @ Norwich, UK
#6
Originally Posted by MaddogG View Post
Strange...it works for me. I made a script that simply launches vim (osso-xterm -e vim) and it opens it in a new xterm window.
Just made a very basic script and your command worked. I'll have to just experiment. Thanks

EDIT: Turns out it wasn't working because I was ending the command with the "&" symbol. This was necessary in Ubuntu but not on the N900
__________________
OMNOM: Pacman-like game now in extras-devel

fAircrack (Aircrack GUI): Point-and-click pwnage for your N900
Now with John the Ripper integration

Last edited by FRuMMaGe; 2011-01-06 at 18:30.
 
Posts: 8 | Thanked: 1 time | Joined on Apr 2007
#7
Hey mate - care to share that script ?
 
FRuMMaGe's Avatar
Posts: 330 | Thanked: 483 times | Joined on Dec 2010 @ Norwich, UK
#8
Originally Posted by marlaw View Post
Hey mate - care to share that script ?
Sure thing. When I am done tweaking I will release it into the wild

You will need the bleeding edge packet injection drivers installed already for it to work though, but currently the features include:

> Enabling/disabling monitor mode
> Scanning for APs
> Authentication with APs
> Package injection
> Chopchop attacks
> Fragmentation attacks
> Building custom ARP (after chopchop or fragmentation)
> Bombarding AP with custom ARP
> Decryption of cap files (and ultimately cracking the wep key)
> Bruteforce dictionary attacks (for wpa keys, but don't expect this to be very fast on the N900)

I am currently suffering from 1 problem which I think will be easy to solve. When I run a command from the script in another xterm, the new xterm is based in the /home/user directory. This is strange because on Ubuntu it maintained the current working directory. Is there a simple way around this?
__________________
OMNOM: Pacman-like game now in extras-devel

fAircrack (Aircrack GUI): Point-and-click pwnage for your N900
Now with John the Ripper integration
 

The Following User Says Thank You to FRuMMaGe For This Useful Post:
MaddogG's Avatar
Posts: 234 | Thanked: 175 times | Joined on Jun 2010 @ Genova (Italy)
#9
Simpliest solution:
osso-xterm -e cd <dir> && <command>
 
moudy91's Avatar
Posts: 165 | Thanked: 18 times | Joined on Jun 2010
#10
hey guys i need some help with the xterm but i ont know how to create it.
i use so much ping to access my access machine but every time i have to type root and then ping xxx.xxx.xxx.xxx and this it take me time, i need it as a beecon script, can anyone help me with this please.
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:29.