|
2011-06-16
, 10:06
|
Posts: 83 |
Thanked: 142 times |
Joined on Jun 2011
@ Paris, France
|
#72
|
This script requires some serious work to make it ready for the n900. For example, why are you using xterm? It is a NEEDLESS dependancy, use osso-xterm instead (the built in one).
Why does it depend on BASH, why not modify it to be compliant with ash?
Why does it have to connect to the net to download extra scripts?
Why not just combine the two into a local version?
well ye they should at least try it remember noobs start somewere an if this script helps then i dont see why they cany use it ..
Thx for the help :/
srsly, game 7
too many targets :O
-edit-
well FYI it didn't work when I was connected to "free wi-fi" in a place with probably 300 ppl. Does that mean the router has a firewall blocking something this needs to do? I don't know what exactly it's scanning for.
I tried it at home and it works, detects more hosts...
The Following 5 Users Say Thank You to comaX For This Useful Post: | ||
|
2011-06-16
, 10:25
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#73
|
My first "bad" feedback, finally ! :P
So, as I posted earlier : i didn't know maemo before this thread existed and I do not own a N900. I just "ported" it according to what I was told.
" It is a NEEDLESS dependancy, use osso-xterm instead (the built in one)."
Fine ! you just had to say it, it shouldn't be to hard to do ! Could you please send me the part of code that should change accordingly ? (in case it's not just xterm that becomes osso-xterm of course)
"Why does it depend on BASH, why not modify it to be compliant with ash?"
Cause it was made for bash, duh. What should change for it to be ash compliant ? You input is welcomed !
There is no extra script needed, just a file I use to parse the logs. Think of it as a pseudo-definition file. The only point of this is that it allows me to update it as soon as I find something new, whitout the need for the end-user to check for updates. If you guys don't like it, I can put it back in, without downloads. But since you should use that on network, you should have connectivity. What are 13 fcuking bits anyway? Could be handy for the --parse option, I must admit. But really, I think being connected isn't too much to ask !
If a majority of people don't like it, I'll reverse it back to a grep line !
Thanks for the feedback, that should help improve it ! But just try to cool it on the way you say it. I'm a student in law, doing it for fun, and for free
Waiting for your input Don't hesitate to mail me !
Cheers
##############
While I agree with unhuman, I agree with that too. Let me clarify : script kiddies should keep the hell away from it. Noobs should devour the source to learn what is going on.
As stated in the disclaimer (cf. source), this script is intended for learning purposes (both bash and network security). I believe I wrote the needed comments in it for anyone to understand what's going on !
osso-xterm -e "ash -c 'ettercap -blah -blah -blah';read foo;'"
|
2011-06-16
, 10:38
|
Posts: 83 |
Thanked: 142 times |
Joined on Jun 2011
@ Paris, France
|
#74
|
chillout bromaX, we're all on the same team.
[...]
For this to be simple and elegant, it has to be self contained and flexible.
|
2011-06-16
, 11:05
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#75
|
" Can the script be re-written to omit the use of the '-e' (readline) flag?"
Consider it done ! As I said earlier (maybe it was a mail though, not this thread), the -e flag is pretty useless.
"As you cannot test this I will start looking into how xterm can be replaced by osso-xterm." Please ! That would be great !
" What if I am uh testing the pens of a completly locked off LAN?" Yup, good point ! (but unlikely)
"Also there are numerous spelling mistakes and supeflous wordage that could be trimmed out."
I did ask people to give me feedback on that too, many times, but it seems it doesn't bother them. It matters to me though, so please, mail me anything I can correct. I try my best but english isn't my native language so grammatical errors and all are to be expected.
About the superfluous wordage, I think you mean things I did on purpose, like asking what ports, what gateway, etc. The first goal of the script it to learn from it. That way people know a minimum about what they are doing. But sure, that script could be trimmed down to almost nothing if I decided to make a real, full automation. That is not my goal though !
"If you are wondering why it is important to have have as few dependancies as possible it is becasue the n900 is challenged for resources enough as it is. Besides as an engineer I crave the simplest most elegant solution that uses the basic tools that are available."
All right, I understand ! Let's do that
In a nutshell : get rid of wgets, xterms, and -e. On another note, get rid of bad engrish.
Since there is quite a few things to do, could you mail me so that we don't spam this thread too much ? I don't mind though, but it's better if we keep it clean !
Thanks again !
read -n 1 variable
|
2011-06-16
, 11:33
|
Posts: 83 |
Thanked: 142 times |
Joined on Jun 2011
@ Paris, France
|
#76
|
II think I have removed the need for xterm however I have not had an oppurtunity to test if it actually works!(I am at work )
I have altered some of the read choices so you dont have to press enter.
Code:
read -n 1 variable
just grabs the first character and does not need a return character.
You can see how I have done it in the link below.
http://pastebin.com/DT2ReF1V
I will probably have a hack at this later tonight
The Following User Says Thank You to comaX For This Useful Post: | ||
|
2011-06-16
, 14:45
|
Posts: 489 |
Thanked: 404 times |
Joined on Dec 2009
|
#77
|
You can see how I have done it in the link below.
http://pastebin.com/DT2ReF1V
I will probably have a hack at this later tonight.
The Following User Says Thank You to torpedo48 For This Useful Post: | ||
|
2011-06-16
, 14:57
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#78
|
I'm trying your modified version, it seems that it doesn't work cause the osso-xterm windows don't have root access (solved by adding a "sudo" in front of the commands, I have sudser installed); using sudo works pretty well, but it can't correctly kill the processes when closing.
Thanks everyone for the hard work
osso-xterm -e "ash -c 'sudo somecommand;read foo;exit;'"
root_term(command){ osso-xterm -e "ash -c 'sudo $command;read foo;exit;'"}
The Following User Says Thank You to vi_ For This Useful Post: | ||
|
2011-06-16
, 15:09
|
Posts: 195 |
Thanked: 96 times |
Joined on May 2011
|
#79
|
|
2011-06-16
, 15:23
|
Posts: 489 |
Thanked: 404 times |
Joined on Dec 2009
|
#80
|
Tags |
pentesting, tester of pens |
|
Keep the forums clean
Dont forget to say thanks