Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hermit

Pages: [1]
1
C - C++ / Re: [C] Reverse Connection
« on: April 02, 2014, 02:17:09 pm »
@ZeroBoy I have just changed my ISP(I try four different ISP actually before succeeded), and now it can connect to my server via public ip address. Later i will try to forward that port from my previous ISP and report the result. Thanks for your advice.

2
I think you can solve it with Dynamic Programming

Code: [Select]
for (int i=0;i<10;i++){
count[0][i].top=1;
}

for (int i=0;i<10;i++){
count[i][0].left=1;
}

for (int i=0;i<10;i++){
for (int j=0;j<10;j++){
if (i-1>=0){
if (board[i][j]==board[i-1][j]){
count[i][j].top=count[i-1][j].top+1;
}
else{
count[i][j].top=1;
}
}
if (j-1>=0){
if (board[i][j]==board[i][j-1]){
count[i][j].left=count[i][j-1].left+1;
}
else{
count[i][j].left=1;
}
}
}
}

for (int i=10;i>=0;i--){
for (int j=10;j>=0;j--){
if (count[i][j].top>=3){
for (int k=0;k<count[i][j].top;k++){
board[i-k][j]=6;
}
for (int k=0;k<count[i][j].left;k++){
board[i][j-k]=6;
}
}
}
}

for each block there is two field, namely top and left. This field save how many adjacent number from top and left that has the same value with the current block. if the value of current block is the same with the value of the block above, then it means the current top value is one plus the above block top value

3
C - C++ / Re: [C] Reverse Connection
« on: March 22, 2014, 02:21:39 pm »
@kenjoe. I don't think it is because of NAT because i have done port forwarding. I also have tried not to use my router to connect to the Internet but instead use modem. I have posted my code at the link above(ideone) . The application is not finished yet, I just try the connection by sending "Hello" to the client. Well now, i am trying to learn using external web server. It is good knowing something new.

EDIT:
The fact that you're starting attempt at a RAT works over local network further supports my idea.

I checked if there are any open port at www.grc.com and all my port ranging from 1 to 1056 are stealth. I guess my ISP blocks all the port.

-- Double posters get slapped! Use the modify button fool.

4
C - C++ / Re: [C] Reverse Connection
« on: March 22, 2014, 10:33:20 am »
@Kulverstukas Okay thanks for your advice. Next time I will do it.

5
C - C++ / Re: [C] Reverse Connection
« on: March 22, 2014, 10:09:57 am »
@Kulverstukas I didn't really get it. Is there any free web server out there? . Do you mean using service like http://www.000webhost.com/. Sorry if it a noob question. hehe

6
C - C++ / Re: [C] Reverse Connection
« on: March 22, 2014, 08:06:12 am »
Well i am trying to create a simple RAT with reverse connection. I read that the victim computer act as the client and the attacker computer act as the server. I have implement the client. It run well if the computer is on the same LAN. But when i try to run it on my friend's computer with public IP address,it didn't connect. I have also tried to use telnet and still didn't work. Anyway, thanks for your reply and sorry for my poor English

7
C - C++ / [C] Reverse Connection
« on: March 22, 2014, 03:39:11 am »
I just learn about reverse connection and try to implement it yesterday using C. It works correctly when I am using my local IP address to connect. But when I am using public IP address it didn't get accepted on my server. I have done port forwarding on my router. I have also try to connect with my modem. My OS is OSX Mavericks and I use tp-link router. Is there something I miss? Do i need to assign 80 to my port? Sorry i am kinda new to networking.

This is my code.
http://ideone.com/IeJR3a

Pages: [1]