Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Using RekW0n's smuggler, without the .dll

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Sat Apr 19, 2008 2:40 am    Post subject: Using RekW0n's smuggler, without the .dll Reply with quote

Is it possible, to avoid using the .dll from RekW0n's smuggler source, and just include, the functions inside the .dll, in my project?, i only got the .dll, not the source, and i really wish to do it without the .dll Sad
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Apr 19, 2008 3:28 am    Post subject: Reply with quote

The APIs that the smuggler uses are from that .dll, you can't avoid from using it unless you will use IPHLPAPI.pas (which can be found on google),i don't know i haven't tried but give it a shot.

Open question: Why don't microsoft support object pascal ?

there's a war between Borland and Microsoft ;.;
Back to top
View user's profile Send private message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Sat Apr 19, 2008 5:06 am    Post subject: Reply with quote

i guess ill just use the .dll then...
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Apr 19, 2008 9:06 am    Post subject: Reply with quote

Care to link to the source code? And what function would you be talking about from it? (Whats it do?)
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Sat Apr 19, 2008 10:00 am    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=163491
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Apr 19, 2008 10:49 am    Post subject: Reply with quote

Anden100 wrote:
http://forum.cheatengine.org/viewtopic.php?t=163491


Ok, and what function(s) did you want to use without the DLL?

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Sat Apr 19, 2008 10:53 am    Post subject: Reply with quote

well... the main function, enable/disable the internet connection O.o
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Apr 19, 2008 11:00 am    Post subject: Reply with quote

Anden100 wrote:
well... the main function, enable/disable the internet connection O.o


Well the dll itself doesn't seem to be included with the source code, and the DropAllU unit is not rek's code (As said by the other topic and google search found the same code (older) on other sites.) You would need to take a look at the source of the DLL to rewrite the same thing inside the program.

The DLL itself doesn't appear to get injected but instead, the functions are imported and called, so you could do it without the DLL if you learned what is being done inside that DLL. Debugging can probably help you figure that out.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Sat Apr 19, 2008 1:12 pm    Post subject: Reply with quote

Wiccaan wrote:
Anden100 wrote:
well... the main function, enable/disable the internet connection O.o


Well the dll itself doesn't seem to be included with the source code, and the DropAllU unit is not rek's code (As said by the other topic and google search found the same code (older) on other sites.) You would need to take a look at the source of the DLL to rewrite the same thing inside the program.

The DLL itself doesn't appear to get injected but instead, the functions are imported and called, so you could do it without the DLL if you learned what is being done inside that DLL. Debugging can probably help you figure that out.


Yea, i found out that myself, but since i dont got the source of the .dll, im pretty stuck at this point...

this is what i found:
Code:
procedure InstallFW(MyIP: String);
var
   IpLocal      : TIpBytes;
   ipOther      : TIpBytes;
   ipOtherMask  : TIpBytes;
   ipMy         : TIpBytes;
   ipMyMask     : TIpBytes;
begin
   if (MyIP <> '') and Not Assigned(Handle_Interface) then begin
      FillChar(IpLocal, 4, #0);
      IpLocal := StrToIpBytes(MyIP);

      PfCreateInterface(0, PF_ACTION_FORWARD, PF_ACTION_FORWARD, False, False, Handle_Interface);
      PfBindInterfaceToIPAddress(Handle_Interface, PF_IPV4, @ipLocal);

      //
      ipMy        := StrToIpBytes(PChar(MyIP));
      ipMyMask    := StrToIpBytes('255.255.255.255');
      //
      ipOther     := StrToIpBytes('0.0.0.0');
      ipOtherMask := StrToIpBytes('0.0.0.0');

      // Eingehende Pakete
      ZeroMemory(@ipFltIn, SizeOf(ipFltIn));
      ipFltIn.dwFilterFlags      := 0;
      ipFltIn.dwRule             := 0;
      ipFltIn.pfatType           := PF_IPV4;
      ipFltIn.fLateBound         := 0;
      ipFltIn.dwProtocol         := FILTER_PROTO_TCP;

      ipFltIn.wDstPort           := FILTER_TCPUDP_PORT_ANY;
      ipFltIn.wDstPortHighRange  := FILTER_TCPUDP_PORT_ANY;
      ipFltIn.DstAddr            := @ipMy;
      ipFltIn.DstMask            := @ipMyMask;
      ipFltIn.wSrcPort           := 80;
      ipFltIn.wSrcPortHighRange  := 80;
      ipFltIn.SrcAddr            := @ipOther;
      ipFltIn.SrcMask            := @ipOtherMask;

      // Ausgehende Pakete
      ZeroMemory(@ipFltOut, SizeOf(ipFltOut));
      ipFltOut.dwFilterFlags      := 0;
      ipFltOut.dwRule             := 0;
      ipFltOut.pfatType           := PF_IPV4;
      ipFltOut.fLateBound         := 0;
      ipFltOut.dwProtocol         := FILTER_PROTO_TCP;
      ipFltOut.wDstPort           := 80;
      ipFltOut.wDstPortHighRange  := 80;
      ipFltOut.DstAddr            := @ipOther;
      ipFltOut.DstMask            := @ipOtherMask;
      ipFltOut.wSrcPort           := FILTER_TCPUDP_PORT_ANY;
      ipFltOut.wSrcPortHighRange  := FILTER_TCPUDP_PORT_ANY;
      ipFltOut.SrcAddr            := @ipMy;
      ipFltOut.SrcMask            := @ipMyMask;

      PfAddFiltersToInterface(Handle_Interface, 1, @ipFltIn, 1, @ipFltOut, nil);
   end;
end;

Code:


undeclared identifier: 'TIpBytes'

Wondering wich unit i need..., and then i just need the "removefw"...
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Apr 19, 2008 4:03 pm    Post subject: Reply with quote

Wiccaan wrote:
Care to link to the source code? And what function would you be talking about from it? (Whats it do?)


_PfCreateInterface@24

_PfDeleteInterface@4

_PfBindInterfaceToIPAddress@12

_PfUnBindInterface@4

Code:
function   PCrtInterFc(
           dwName:           DWORD;
           inAction:         The_Action;
           outAction:        The_Action;
           bUseLog:          BOOL;
           bMustBeUnique:    BOOL;
           var ppInterface:  The_Handle
           ):DWORD;
           stdcall; external TheDll name '_PfCreateInterface@24';

function   PDltInterFc(
           pInterface:       The_Handle): DWORD;
           stdcall; external TheDll name '_PfDeleteInterface@4';
 
function   PBndIntrfc2IPAddy(
           pInterface:       The_Handle;
           pfatLinkType:     AddyType;
           IPAddress:        PB_A): DWORD;
           stdcall; external TheDll name '_PfBindInterfaceToIPAddress@12';
 
function   PfUnBindInterface(
           pInterface:       The_Handle): DWORD;
           stdcall; external TheDll name '_PfUnBindInterface@4';


i think you should hook these APIs to make it work again.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Apr 20, 2008 8:46 am    Post subject: Reply with quote

Those aren't API. They are exports from that DLL...

@Anden100: Yeah, but that code is making calls to the exported functions from that DLL which using just that code isn't going to do anything since you still need the DLL to use them. If anything, look around for that DLL and see if you can find the source to do it and replicate it without being in a DLL.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sun Apr 20, 2008 9:17 am    Post subject: Reply with quote

Wiccaan wrote:
Those aren't API. They are exports from that DLL...

@Anden100: Yeah, but that code is making calls to the exported functions from that DLL which using just that code isn't going to do anything since you still need the DLL to use them. If anything, look around for that DLL and see if you can find the source to do it and replicate it without being in a DLL.


i toled him to search for iphlpapi.pas

btw, if they're not APIs, mind explaining me why it is called iphlpapi.dll ?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Apr 20, 2008 9:21 am    Post subject: Reply with quote

Rot1 wrote:
btw, if they're not APIs, mind explaining me why it is called iphlpapi.dll ?


They're not Win32 API which is what you made it sound like you were referring to by telling him/me to look them up. Which is what my response was meaning.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sun Apr 20, 2008 12:49 pm    Post subject: Reply with quote

Wiccaan wrote:
Rot1 wrote:
btw, if they're not APIs, mind explaining me why it is called iphlpapi.dll ?


They're not Win32 API which is what you made it sound like you were referring to by telling him/me to look them up. Which is what my response was meaning.


i didn't say their Win32 APIs, but they're exported function, so they are considered as api.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites