Results 1 to 12 of 12

Threaded View

  1. #1
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted

    Post Save Settings (and .dlls) of your Injector in vb.net



    Save the settings of your Injector in an .ini file.




     

    Extract INIFormat_dll.rar

    Add INIFormat.dll to references
    (Rightclick Project > Add references)

     









    Create subs/functions to read/write/delete

    Code:
    Private Sub SaveAll() Handles Me.FormClosing
        Dim INI As New INIFormat.UseINI 'access to INIFormat.dlls functions
        INI.Path = My.Application.Info.DirectoryPath & "\settings.ini" 'defines path of .ini
        My.Computer.FileSystem.DeleteFile("INI.Path", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
    
        INI.WriteValue("Settings", "Close", CheckBox1.Checked) 'Save the state of CheckBox1 (True or False)
        INI.WriteValue("Settings", "Auto", RadioButton1.Checked) 'Save the state of RadioButton1 (True or False)
        INI.WriteValue("Settings", "Process", TextBox1.Text) 'Save the process 
        INI.WriteValue("DLLs", "Count", ListBox1.Items.Count) 'Save the amount of DLLs
    
        For Each DLL In ListBox1.Items
            Dim counter As Integer 
            counter = counter + 1
            INI.WriteValue("DLLs", counter, dlls4inj.Item(DLL)) 'Save path of each DLL
        Next
    
    End Sub
    Code:
    Private Sub ReadAll() Handles Me.Load
        Dim INI As New INIFormat.UseINI 'access to INIFormat.dlls functions
        INI.Path = My.Application.Info.DirectoryPath & "\settings.ini" 'defines path of .ini
    
        CheckBox1.Checked = INI.ReadValue("Settings", "Close") 'Changes the state of CheckBox1 to the saved one
        If INI.ReadValue("Settings", "Auto") = "False" Then
            RadioButton2.Checked = True 'Manual Injection
        Else
            RadioButton1.Checked = True 'Auto Injection
        End If
    
        For i As Integer = 1 To INI.ReadValue("DLLs", "Count") Step 1
            Dim FileName As String
            Dim DLLPath As String = INI.ReadValue("DLLs", i)
            FileName = DLLPath.Substring(DLLPath.LastIndexOf("\"))
            FileName = FileName.Replace("\", "")
            Try
                dlls4inj.Add(FileName, DLLPath)
                ListBox1.Items.Add(FileName)
            Catch ex2 As Exception
            End Try
        Next
    End Sub


     

    Extract UseINI_vb.rar

    Add an existing Item
    (Rightclick Project > Add > Add existing)

     








    Create subs/functions to read/write/delete

    Code:
    Private Sub SaveAll() Handles Me.FormClosing
        Dim INI As New UseINI 'access to UseINI.vbs functions
        INI.Path = My.Application.Info.DirectoryPath & "\settings.ini" 'defines path of .ini
        My.Computer.FileSystem.DeleteFile("INI.Path", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
    
        INI.WriteValue("Settings", "Close", CheckBox1.Checked) 'Save the state of CheckBox1 (True or False)
        INI.WriteValue("Settings", "Auto", RadioButton1.Checked) 'Save the state of RadioButton1 (True or False)
        INI.WriteValue("Settings", "Process", TextBox1.Text) 'Save the process 
        INI.WriteValue("DLLs", "Count", ListBox1.Items.Count) 'Save the amount of DLLs
    
        For Each DLL In ListBox1.Items
            Dim counter As Integer 
            counter = counter + 1
            INI.WriteValue("DLLs", counter, dlls4inj.Item(DLL)) 'Save path of each DLL
        Next
    
    End Sub
    Code:
    Private Sub ReadAll() Handles Me.Load
        Dim INI As New UseINI 'access to UseINI.vbs functions
        INI.Path = My.Application.Info.DirectoryPath & "\settings.ini" 'defines path of .ini
    
        CheckBox1.Checked = INI.ReadValue("Settings", "Close") 'Changes the state of CheckBox1 to the saved one
        If INI.ReadValue("Settings", "Auto") = "False" Then
            RadioButton2.Checked = True 'Manual Injection
        Else
            RadioButton1.Checked = True 'Auto Injection
        End If
    
        For i As Integer = 1 To INI.ReadValue("DLLs", "Count") Step 1
            Dim FileName As String
            Dim DLLPath As String = INI.ReadValue("DLLs", i)
            FileName = DLLPath.Substring(DLLPath.LastIndexOf("\"))
            FileName = FileName.Replace("\", "")
            Try
                dlls4inj.Add(FileName, DLLPath)
                ListBox1.Items.Add(FileName)
            Catch ex2 As Exception
            End Try
        Next
    End Sub


    You may have to edit.




    Scans:
    Projects_&_Files [0/41]
    Projects_&_Files [0/20]

    Download contains:
    Projectfolder with example.exe (using .vb)
    Projectfolder with example.exe (using .dll)
    INIFormat.dll
    UseINI.vb

    I didn't know where to post so I did where all the Injectors where posted that coders can see

    <b>Downloadable Files</b> Downloadable Files
    Last edited by Biesi; 08-11-2012 at 02:56 PM. Reason: Errors in Source

  2. The Following 56 Users Say Thank You to Biesi For This Useful Post:

    ahmed_mosha (08-11-2012),alanbraz (11-02-2021),Alviqbal (12-08-2013),angahkechik11 (05-08-2015),ayyitsme (05-13-2019),blacksquad (09-22-2012),carpio.dominic (10-19-2016),daddypappy (10-31-2016),DiMasCyber4rt (01-12-2015),ebrahimenaeems (02-06-2020),fuppum (08-11-2012),gabrielxlr (08-11-2012),GM_AVA (04-09-2013),GR33N Arr0w (03-19-2013),HalooPaiq (06-12-2014),hoathientu11 (01-20-2017),hongping1987 (08-11-2012),hosboos (12-29-2016),hunter2217 (10-06-2016),Intellectual (08-11-2012),Iwannabeamember (12-02-2012),KerozHany (08-11-2012),kmegg (08-20-2015),LANGU (08-11-2012),LaVa* (08-11-2012),lolxd50 (04-16-2022),mahmoud242014 (01-29-2018),mokatitoo (10-08-2016),Mongar701 (11-06-2016),MorionDm (11-09-2016),muhammad jana (06-06-2016),namdinhdz (06-19-2016),New Way (08-15-2012),ogpappy2 (07-03-2018),pDevice (06-12-2013),pein9 (05-18-2019),pest032 (11-06-2016),Pingo (08-11-2012),Pixxar234 (10-09-2016),psychology (09-13-2016),romio1010 (05-29-2020),sallamasyon1 (03-16-2013),SashaHikari (06-17-2013),simmo5159 (10-24-2013),Sky_____ (12-16-2012),testube (03-08-2013),tetobolla (08-19-2012),THEBOYZRULE (08-14-2012),tianz (08-12-2012),Ty Nguyen (04-13-2018),wafinasir (05-16-2016),xKickAss (02-05-2014),zezoooo26 (12-10-2016),ziqirya (08-24-2017),Zkma (08-13-2012),[Mod]Ghost CFFG (08-11-2012)

Similar Threads

  1. Info About Injectors And Dlls
    By jeevin in forum Combat Arms Discussions
    Replies: 4
    Last Post: 03-02-2010, 08:34 PM
  2. Injector and Dll help
    By Xlilzoosk8rX in forum C++/C Programming
    Replies: 8
    Last Post: 01-08-2010, 02:26 PM
  3. [HELP] How do u save settings and check all checkboxes at once?
    By deathninjak0 in forum Visual Basic Programming
    Replies: 15
    Last Post: 11-18-2009, 03:02 PM
  4. Injectors And Dlls
    By TearsOfRaz in forum Combat Arms Hacks & Cheats
    Replies: 6
    Last Post: 08-21-2009, 10:37 PM
  5. Simple crossfire hack with out injectors and .dlls
    By ineverhack in forum CrossFire Hacks & Cheats
    Replies: 5
    Last Post: 08-17-2009, 12:14 PM