Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Geometrical's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    In the middle of nowhere.
    Posts
    1,034
    Reputation
    331
    Thanks
    10,335
    My Mood
    Chatty

    Lightbulb Simple no recoil source code.

    Code:
    Imports System.Runtime.InteropServices
    
    Public Class Form1
    
        <DllImport("kernel32.dll")>
        Private Shared Function WriteProcessMemory(ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, <[In](), Out()> ByVal buffer As Byte(), ByVal size As UInt32, ByRef lpNumberOfBytesWritten As IntPtr) As Int32
        End Function
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim Buffer As Byte() = New Byte() {&H90, &H90, &H90, &H90, &H90}
            WriteProcessMemory(Process.GetProcessesByName("IW5MP")(0).Handle, New IntPtr(&H427029), Buffer, UInt32.Parse(Buffer.Length), IntPtr.Zero)
        End Sub
    End Class
    Got bored also someone asked me for it, took me a minute to make you have to basically copy & paste it.

    Credits, @-InSaNe- for the offset......
    Last edited by Geometrical; 12-18-2012 at 06:33 PM.

  2. The Following User Says Thank You to Geometrical For This Useful Post:

    Slirpa (12-18-2012)

  3. #2
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    I thought this one was patched? @-InSaNe- didn't you say the 5 NOPs Crash the game? O_O

  4. #3
    Geometrical's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    In the middle of nowhere.
    Posts
    1,034
    Reputation
    331
    Thanks
    10,335
    My Mood
    Chatty
    Quote Originally Posted by Kenshin13 View Post
    I thought this one was patched? @-InSaNe- didn't you say the 5 NOPs Crash the game? O_O
    Doesn't seem to crash for me
    Last edited by Geometrical; 12-18-2012 at 04:52 PM.

  5. The Following User Says Thank You to Geometrical For This Useful Post:

    Kenshin13 (12-18-2012)

  6. #4
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,529
    My Mood
    Angelic
    It did crash for previous versions.. maybe it is working again.. can't test so I don't know... Btw, NOPing functions is highly risky

    And, @Geometrical, how did you find the offset? Seems to me you forgot the credits.. again.
    Last edited by MarkHC; 12-18-2012 at 06:28 PM.


    CoD Minion from 09/19/2012 to 01/10/2013

  7. #5
    Geometrical's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    In the middle of nowhere.
    Posts
    1,034
    Reputation
    331
    Thanks
    10,335
    My Mood
    Chatty
    Quote Originally Posted by -InSaNe- View Post
    NOPing functions is highly risky
    Are you suggesting that there are ways of writing no-recoil?

  8. #6
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,529
    My Mood
    Angelic
    Quote Originally Posted by Geometrical View Post
    Are you suggesting that there are ways of writing no-recoil?
    Yes. Here:
    Code:
    typedef struct {
        Vector Recoil; //0x0044   <= See this?
        Vector vOrigin; //0x0050
        float DeltaOrigin[3]; //0x005C
        float ReadViewAngleY; //0x0068
        float ReadViewAngleX; //0x006C
        char _0x0070[108];
        float SetViewAngleY; //0x00DC
        float SetViewAngleX; //0x00E0
    } ViewMatrix_t; //Size=0x00A4
    As I know you don't know C++, I'll make it easier for you. Simply Find the offset for ViewMatrix (I believe my sig scanner has the pattern for it) then on a timer:

    (Assuming &H100 is the offset found by the scanner)
    Code:
    WriteFloat(&H100, 0);
    WriteFloat(&H104, 0);
    WriteFloat(&H108, 0);
    Totally undetected. But it is a bit buggy sometimes...
    Last edited by MarkHC; 12-18-2012 at 06:44 PM.


    CoD Minion from 09/19/2012 to 01/10/2013

  9. The Following User Says Thank You to MarkHC For This Useful Post:

    Geometrical (12-18-2012)

  10. #7
    Geometrical's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    In the middle of nowhere.
    Posts
    1,034
    Reputation
    331
    Thanks
    10,335
    My Mood
    Chatty
    Quote Originally Posted by -InSaNe- View Post

    Yes. Here:
    Code:
    typedef struct {
        Vector Recoil; //0x0044   <= See this?
        Vector vOrigin; //0x0050
        float DeltaOrigin[3]; //0x005C
        float ReadViewAngleY; //0x0068
        float ReadViewAngleX; //0x006C
        char _0x0070[108];
        float SetViewAngleY; //0x00DC
        float SetViewAngleX; //0x00E0
    } ViewMatrix_t; //Size=0x00A4
    As I know you don't know C++, I'll make it easier for you. Simply Find the offset for ViewMatrix (I believe my sig scanner has the pattern for it) then on a timer:

    (Assuming &H100 is the offset found by the scanner)
    Code:
    WriteFloat(&H100, 0);
    WriteFloat(&H104, 0);
    WriteFloat(&H108, 0);
    Totally undetected. But it is a bit buggy sometimes...
    Doesn't seem to work, it just shakes the screen wildly whenever I shoot.


  11. #8
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by Geometrical View Post
    Doesn't seem to work, it just shakes the screen wildly whenever I shoot.

    CE's "Freezing" is much slower so maybe that's why.

  12. #9
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,529
    My Mood
    Angelic
    Yeah.. you have to set it to the lower value possible, 1ms. And I think that's still too slow...


    CoD Minion from 09/19/2012 to 01/10/2013

  13. #10
    Geometrical's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    In the middle of nowhere.
    Posts
    1,034
    Reputation
    331
    Thanks
    10,335
    My Mood
    Chatty
    Quote Originally Posted by -InSaNe- View Post
    Yeah.. you have to set it to the lower value possible, 1ms. And I think that's still too slow...
    So I'll have to add multiple timers . If it still doesn't work , I'll stick to NOPing.

    ---------- Post added at 05:58 AM ---------- Previous post was at 05:55 AM ----------

    Nope, it does not work .
    Last edited by Geometrical; 12-19-2012 at 04:58 AM.

  14. #11
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by Geometrical View Post
    So I'll have to add multiple timers . If it still doesn't work , I'll stick to NOPing.

    ---------- Post added at 05:58 AM ---------- Previous post was at 05:55 AM ----------

    Nope, it does not work .
    Im gonna go all C++ on your ass but...

    Manually map the code into the process and create a thread to do it... <- Flawless.
    Or...Hook some undetected function (ui_ShowList?) and use that to write to it.
    Faster it executes the better.

  15. #12
    Geometrical's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    In the middle of nowhere.
    Posts
    1,034
    Reputation
    331
    Thanks
    10,335
    My Mood
    Chatty
    Quote Originally Posted by Kenshin13 View Post
    Im gonna go all C++ on your ass but...

    Manually map the code into the process and create a thread to do it... <- Flawless.
    Or...Hook some undetected function (ui_ShowList?) and use that to write to it.
    Faster it executes the better.
    I can't do what what I don't know.........

  16. #13
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by Geometrical View Post
    I can't do what what I don't know.........
    Start with "C++ For Dummies" ;D
    Then learn some simple WinAPI stuff and maybe D3D (DirectX)
    And you'll be all __asm MOV Brain, Knowledge soon

  17. The Following User Says Thank You to Kenshin13 For This Useful Post:

    Geometrical (12-19-2012)

  18. #14
    Final Byte's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0
    Do you know what I'd have to do to make a hook? I haven't been able to find a tutorial on how to even make a basic hook.

    Also why wouldn't it be possible to do this in an external application?

  19. #15
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by Final Byte View Post
    Do you know what I'd have to do to make a hook? I haven't been able to find a tutorial on how to even make a basic hook.

    Also why wouldn't it be possible to do this in an external application?
    https://www.mpgh.net/forum/161-progra...tion-hook.html


    ^That's a nice little tutorial in C++ and Assembly on how to make a hook. (It's a mid function hook but.......)
    Also it's not possible if you understand how the a hook works.
    You overwrite the game code internally and tell it to call your code which you also keep in the same process (As with a DLL ... )

    The game cannot call code from another process thus the only way to make it call "external" code is by injecting it.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Source Code] UPDATED NO RECOIL SOURCE CODE + UPDATED OFFSETS FOR IT
    By mohamed09 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 04-18-2012, 08:08 PM
  2. [Source Code] Less Recoil Source Code
    By uarethebest in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 25
    Last Post: 12-16-2011, 05:32 AM
  3. [Help] Can i Have No Recoil Source Code..? I'm almost done my first release for MPGH
    By topgenral in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 10-29-2011, 10:09 AM
  4. [Help] No Recoil Source Code Not Working
    By zooSz in forum WarRock Hack Source Code
    Replies: 25
    Last Post: 03-31-2011, 08:14 PM
  5. [Reqest]Simple rules for Source codes?
    By IownzDAworldz in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 06-15-2010, 11:20 PM