Lex
-
Posts
19 -
Joined
-
Last visited
Posts posted by Lex
-
-
-
I don't have additional hardware unfortunately .
On the windows box ICS is activated . When I had windows on this box too , configuring internet was easy :)
-
Hey guys !
I have a windows xp computer and a Linux one . The one with windows has internet access ( and two ethernet cards ) and I would like to be able to access it from Linux too .
After reading on the internet and various forums I found some guides ( none of them working for me though ) .I'm posting the Linux setup I used :
ifconfig eth0 down ifconfig eth0 192.168.0.2 netmask 255.255.255.0 up route add default gw 192.168.0.1 echo nameserver_ip > /etc/resolv.conf
After doing all this , my connection didn't work ( I couldn't even ping the windows computer ) . I found it strange that after
echo 1 > /proc/sys/net/ipv4/ip_forward
i was able to ping and get replys from the windows computer . The internet still doesn't work . Any tips/guides ?
I can't put the second network card in the Linux computer , so please don't suggest that as an option.
Thanks !
-
To access country restricted websites
-
Is there a way to make your request go through a certain Tor "exit-node" ?
-
I've done it in C too ... I'll search for the code and i'll post it here .
I had it exec another program that appended some data to the original binary , thus changing its size .
It worked only on Linux
-
How about you use this little perl one-liner :
perl -pi.bak -e "s/127.0.0.1//g" log_file
This should be run from command line . What it does is exactly what you need : it opens log_file ,searches for every occurence of 127.0.0.1 and removes it. The script makes a backup of the log_file , naming it log_file.bak ( just in case ).
Hope this helps
-
You got it!
-
Link not working
-
It would be nice if you could show us some code :)
-
I found out about this website about a week ago , and now I'm watching the show . Congrats !
I saw the programming challenge , and decided to write a solution in perl . Since perl is a dynamic language , I decided to use dynamic coding .
Sorry if I posted in the wrong topic ( and beeing one year late with the solution :) )
use strict; use warnings; sub generate_code { my $numbers=shift; my $total =shift; my $code; my $i; my @vars; for($i=0;$i<$numbers;$i++) { $code.="for(my $i${i}=1;$i${i}<$total;$i${i}++) {n"; push(@vars,"$i${i}"); } $code.="print ""; map { $code.="$_ " } @vars; $code.="n" "; $code.=condition(@vars,$total); for($i=0;$i<$numbers;$i++) { $code.="}n"; } $code; } sub condition { my @arr=@{ shift @_ }; my $number=shift; my $string="if("; for(my $i=0;$i<$#arr+1;$i++) { if($i==$#arr) { $string.="$arr[$i]==$number);"; last; } $string.="$arr[$i]+"; } $string; } my $num=shift || die "enter a number (n)n"; my $tot =shift || die "enter how many numbers should be added (k) n"; my $code=generate_code($tot,$num); eval($code);
-
Tom , the first time you run the program , it should display a string , and after that , it doesn't matter how many times you run it again , it will display a second string ... kinda like the app knows if it's the first time being ran or not .
-
This may seem like an stupid question , but will everything come back to normal regardless if the attacked computer has a static or dynamic IP ?
Thanks !
-
I don't know how to make this any clearer ... when you first run it , it should write "string 1" to the console ; and if you run it again , it should display "string 2".
-
Hi again guys !
I've read on a website this following programming challenge ( for a job interview ) :
-you are supposed to write an application which should display a string ( whatever you want , say "string 1" ) the first time it's being ran , and a different string ( say "string 2") if you run it again . However , you are not allowed to create write to additional files , or to the registry .
I've solved this challenge in perl using the following code :
use Tie::File; tie my @array,'Tie::File',$0 || die "Tie errorn"; my $tmf; chomp($tmf=<DATA>); if($tmf eq "string1") { print "First runn"; for(my $i=0;$i<$#array+1;$i++) { if($array[$i] eq "string1") { ($array[$i],$array[$i+1])=($array[$i+1],$array[$i]); last; } } untie @array; } else { print "Not first runn"; } __DATA__ string1 string2
The code runs on any platform that supports perl .
I tried to solve it in C too , but I've only got it to work under Linux ( the way I did it was using exec , replacing the current process image with another image that writes data in the file ) ... but on Windows the C code crashes .
I would love to see another solutions for this challenge .
Cheers !
-
Thank you for your time , I really appreciate it !
-
Hi Guys !
Please excuse my english ( it's not my native language ) . I recently saw the video about ARP poisoning and I have some questions :
-after a reboot of the attacked computer , will everything return back to normal ?
-are both the computers ( the attacked computer and the attacker's computer ) receiving the same traffic ? I'm asking this because I saw that in the video you read that guy's AIM messages .
Thanks for your time !
Cheers !
i really need this tool
in Questions
Posted
I really hate the way you give answers .
SmoothCriminal , that was a very smart answer . You should'va kept your mouth shut . If you don't know how to answer his question , don't post anything . Yeah , it's very ELITE of you to give such answers .
HALEN , i don't know if it's possible to only log the command line . Check the following links :
This one is very simple to setup , you only need python installed :
http://sourceforge.net/projects/pykeylogger/
This one works too , but i preffer the one written in python
http://sourceforge.net/projects/elogger/