HOME FORUMS MEMBERS RECENT POSTS LOG IN  
× Авторизация
Имя пользователя:
Пароль:
Нет аккаунта? Регистрация
Баннер 1   Баннер 2
НОВЫЕ ТОРГОВАЯ НОВОСТИ ЧАТ
loading...
Скрыть
Вернуться   ANTICHAT > ПРОГРАММИРОВАНИЕ > С/С++, C#, Rust, Swift, Go, Java, Perl, Ruby
   
Ответ
 
Опции темы Поиск в этой теме Опции просмотра

  #1  
Старый 22.08.2022, 03:15
0x73616D
Участник форума
Регистрация: 27.05.2021
Сообщений: 140
С нами: 2614229

Репутация: 33
По умолчанию

Цитата:
Сообщение от kin4stat  

В начало Present:

C++:





Код:
static
bool
ImGui_inited
=
false
;
if
(
!
ImGui_inited
)
{
ImGui
::
CreateContext
(
)
;
ImGui_ImplWin32_Init
(
*
*
reinterpret_cast

(
0xC17054
)
)
;
ImGui_ImplDX9_Init
(
m_pDevice
)
;
ImGui_inited
=
true
;
}

спасибо, еще один вопрос, как добавить движение окну?
 
Ответить с цитированием

  #2  
Старый 22.08.2022, 22:00
savva7906
Новичок
Регистрация: 22.08.2022
Сообщений: 2
С нами: 1962541

Репутация: 1
По умолчанию

Как объединить 2 main в 1 и привязать к imgui меню?

Цитата:
Сообщение от Спойлер  


Код:





Код:
#include "memory.h"
#include "vector.h"
#include 
namespace
offset
{
constexpr
::
std
::
ptrdiff_t  localPlayer
=
0xDC04CC
;
constexpr
::
std
::
ptrdiff_t  flags
=
0x104
;
constexpr
::
std
::
ptrdiff_t  forceJump
=
0x52868EC
;
constexpr
::
std
::
ptrdiff_t  entityList
=
0x52868EC
;
constexpr
::
std
::
ptrdiff_t  teamNum
=
0xF4
;
// клиент
constexpr
::
std
::
ptrdiff_t dwLocalPlayer
=
0xDC04CC
;
constexpr
::
std
::
ptrdiff_t dwEntityList
=
0x4DDC90C
;
// двигатель
constexpr
::
std
::
ptrdiff_t dwClientState
=
0x58CFDC
;
constexpr
::
std
::
ptrdiff_t dwClientState_ViewAngles
=
0x4D90
;
constexpr
::
std
::
ptrdiff_t dwClientState_GetLocalPlayer
=
0x180
;
// организация
constexpr
::
std
::
ptrdiff_t m_dwBoneMatrix
=
0x26A8
;
constexpr
::
std
::
ptrdiff_t m_bDormant
=
0xED
;
constexpr
::
std
::
ptrdiff_t m_iTeamNum
=
0xF4
;
constexpr
::
std
::
ptrdiff_t m_lifeState
=
0x25F
;
constexpr
::
std
::
ptrdiff_t m_vecOrigin
=
0x138
;
constexpr
::
std
::
ptrdiff_t m_vecViewOffset
=
0x108
;
constexpr
::
std
::
ptrdiff_t m_aimPunchAngle
=
0x303C
;
constexpr
::
std
::
ptrdiff_t m_bSpottedByMask
=
0x980
;
}
constexpr
Vector3
CalculateAngle
(
const
Vector3
&
localPosition
,
const
Vector3
&
enemyPosition
,
const
Vector3
&
viewAngles
)
noexcept
{
return
(
(
enemyPosition
-
localPosition
)
.
ToAngle
(
)
-
viewAngles
)
;
}
main
(
)
{
// инициализировать класс памяти
const
auto
memory
=
Memory
{
"csgo.exe"
}
;
// адреса модулей
const
auto
client
=
memory
.
GetModuleAddress
(
"client.dll"
)
;
const
auto
engine
=
memory
.
GetModuleAddress
(
"engine.dll"
)
;
// бесконечный цикл
while
(
true
)
{
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
1
)
)
;
// кнопка aimbot
if
(
!
GetAsyncKeyState
(
VK_XBUTTON2
)
)
continue
;
// получить местнахождения игрока
const
auto
localPlayer
=
memory
.
Read

(
client
+
offset
::
dwLocalPlayer
)
;
const
auto
localTeam
=
memory
.
Read

(
localPlayer
+
offset
::
m_iTeamNum
)
;
// eye position = origin + viewOffset
const
auto
localEyePosition
=
memory
.
Read

(
localPlayer
+
offset
::
m_vecOrigin
)
+
memory
.
Read

(
localPlayer
+
offset
::
m_vecViewOffset
)
;
const
auto
clientState
=
memory
.
Read

(
engine
+
offset
::
dwClientState
)
;
const
auto
localPlayerId
=
memory
.
Read

(
clientState
+
offset
::
dwClientState_GetLocalPlayer
)
;
const
auto
viewAngles
=
memory
.
Read

(
clientState
+
offset
::
dwClientState_ViewAngles
)
;
const
auto
aimPunch
=
memory
.
Read

(
localPlayer
+
offset
::
m_aimPunchAngle
)
*
2
;
// значение fov aimbot
auto
bestFov
=
8.f
;
auto
bestAngle
=
Vector3
{
}
;
for
(
auto
i
=
1
;
i

(
client
+
offset
::
dwEntityList
+
i
*
0x10
)
;
if
(
memory
.
Read

(
player
+
offset
::
m_iTeamNum
)
==
localTeam
)
continue
;
if
(
memory
.
Read

(
player
+
offset
::
m_bDormant
)
)
continue
;
if
(
memory
.
Read

(
player
+
offset
::
m_lifeState
)
)
continue
;
if
(
memory
.
Read

(
player
+
offset
::
m_bSpottedByMask
)
&
(
1

(
player
+
offset
::
m_dwBoneMatrix
)
;
// положение головы игрока в 3D-пространстве
//индекс костей
const
auto
playerHeadPosition
=
Vector3
{
memory
.
Read

(
boneMatrix
+
0x30
*
8
+
0x0C
)
,
memory
.
Read

(
boneMatrix
+
0x30
*
8
+
0x1C
)
,
memory
.
Read

(
boneMatrix
+
0x30
*
8
+
0x2C
)
}
;
const
auto
angle
=
CalculateAngle
(
localEyePosition
,
playerHeadPosition
,
viewAngles
+
aimPunch
)
;
const
auto
fov
=
std
::
hypot
(
angle
.
x
,
angle
.
y
)
;
if
(
fov

(
clientState
+
offset
::
dwClientState_ViewAngles
,
viewAngles
+
bestAngle
/
1.f
)
;
// значение smoothing
}
}
main
(
)
{
const
auto
memory
=
Memory
{
"csgo.exe"
}
;
const
auto
client
=
memory
.
GetModuleAddress
(
"client.dll"
)
;
while
(
true
)
{
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
1
)
)
;
const
auto
localPlayer
=
memory
.
Read

(
client
+
offset
::
localPlayer
)
;
if
(
!
localPlayer
)
continue
;
const
auto
localPlayerTeam
=
memory
.
Read

(
localPlayer
+
offset
::
teamNum
)
;
const
auto
localPlayerFlags
=
memory
.
Read

(
localPlayer
+
offset
::
flags
)
;
// сам бхоп
if
(
GetAsyncKeyState
(
VK_SPACE
)
)
(
localPlayerFlags
&
(
1

(
client
+
offset
::
forceJump
,
6
)
:
memory
.
Write

(
client
+
offset
::
forceJump
,
4
)
;
}
}


 
Ответить с цитированием

  #3  
Старый 23.08.2022, 04:53
F0RQU1N and
Познавший АНТИЧАТ
Регистрация: 29.09.2018
Сообщений: 1,292
С нами: 4012500

Репутация: 138


По умолчанию

Цитата:
Сообщение от savva7906  

Как объединить 2 main в 1 и привязать к imgui меню?

Цитата:
Сообщение от Спойлер  


Код:





Код:
#include "memory.h"
#include "vector.h"
#include 
namespace
offset
{
constexpr
::
std
::
ptrdiff_t  localPlayer
=
0xDC04CC
;
constexpr
::
std
::
ptrdiff_t  flags
=
0x104
;
constexpr
::
std
::
ptrdiff_t  forceJump
=
0x52868EC
;
constexpr
::
std
::
ptrdiff_t  entityList
=
0x52868EC
;
constexpr
::
std
::
ptrdiff_t  teamNum
=
0xF4
;
// клиент
constexpr
::
std
::
ptrdiff_t dwLocalPlayer
=
0xDC04CC
;
constexpr
::
std
::
ptrdiff_t dwEntityList
=
0x4DDC90C
;
// двигатель
constexpr
::
std
::
ptrdiff_t dwClientState
=
0x58CFDC
;
constexpr
::
std
::
ptrdiff_t dwClientState_ViewAngles
=
0x4D90
;
constexpr
::
std
::
ptrdiff_t dwClientState_GetLocalPlayer
=
0x180
;
// организация
constexpr
::
std
::
ptrdiff_t m_dwBoneMatrix
=
0x26A8
;
constexpr
::
std
::
ptrdiff_t m_bDormant
=
0xED
;
constexpr
::
std
::
ptrdiff_t m_iTeamNum
=
0xF4
;
constexpr
::
std
::
ptrdiff_t m_lifeState
=
0x25F
;
constexpr
::
std
::
ptrdiff_t m_vecOrigin
=
0x138
;
constexpr
::
std
::
ptrdiff_t m_vecViewOffset
=
0x108
;
constexpr
::
std
::
ptrdiff_t m_aimPunchAngle
=
0x303C
;
constexpr
::
std
::
ptrdiff_t m_bSpottedByMask
=
0x980
;
}
constexpr
Vector3
CalculateAngle
(
const
Vector3
&
localPosition
,
const
Vector3
&
enemyPosition
,
const
Vector3
&
viewAngles
)
noexcept
{
return
(
(
enemyPosition
-
localPosition
)
.
ToAngle
(
)
-
viewAngles
)
;
}
main
(
)
{
// инициализировать класс памяти
const
auto
memory
=
Memory
{
"csgo.exe"
}
;
// адреса модулей
const
auto
client
=
memory
.
GetModuleAddress
(
"client.dll"
)
;
const
auto
engine
=
memory
.
GetModuleAddress
(
"engine.dll"
)
;
// бесконечный цикл
while
(
true
)
{
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
1
)
)
;
// кнопка aimbot
if
(
!
GetAsyncKeyState
(
VK_XBUTTON2
)
)
continue
;
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
1
)
)
;
const
auto
localPlayer
=
memory
.
Read

(
client
+
offset
::
localPlayer
)
;
if
(
!
localPlayer
)
continue
;
const
auto
localPlayerTeam
=
memory
.
Read

(
localPlayer
+
offset
::
teamNum
)
;
const
auto
localPlayerFlags
=
memory
.
Read

(
localPlayer
+
offset
::
flags
)
;
// сам бхоп
if
(
GetAsyncKeyState
(
VK_SPACE
)
)
(
localPlayerFlags
&
(
1

(
client
+
offset
::
forceJump
,
6
)
:
memory
.
Write

(
client
+
offset
::
forceJump
,
4
)
;
}
// получить местнахождения игрока
const
auto
localPlayer
=
memory
.
Read

(
client
+
offset
::
dwLocalPlayer
)
;
const
auto
localTeam
=
memory
.
Read

(
localPlayer
+
offset
::
m_iTeamNum
)
;
// eye position = origin + viewOffset
const
auto
localEyePosition
=
memory
.
Read

(
localPlayer
+
offset
::
m_vecOrigin
)
+
memory
.
Read

(
localPlayer
+
offset
::
m_vecViewOffset
)
;
const
auto
clientState
=
memory
.
Read

(
engine
+
offset
::
dwClientState
)
;
const
auto
localPlayerId
=
memory
.
Read

(
clientState
+
offset
::
dwClientState_GetLocalPlayer
)
;
const
auto
viewAngles
=
memory
.
Read

(
clientState
+
offset
::
dwClientState_ViewAngles
)
;
const
auto
aimPunch
=
memory
.
Read

(
localPlayer
+
offset
::
m_aimPunchAngle
)
*
2
;
// значение fov aimbot
auto
bestFov
=
8.f
;
auto
bestAngle
=
Vector3
{
}
;
for
(
auto
i
=
1
;
i

(
client
+
offset
::
dwEntityList
+
i
*
0x10
)
;
if
(
memory
.
Read

(
player
+
offset
::
m_iTeamNum
)
==
localTeam
)
continue
;
if
(
memory
.
Read

(
player
+
offset
::
m_bDormant
)
)
continue
;
if
(
memory
.
Read

(
player
+
offset
::
m_lifeState
)
)
continue
;
if
(
memory
.
Read

(
player
+
offset
::
m_bSpottedByMask
)
&
(
1

(
player
+
offset
::
m_dwBoneMatrix
)
;
// положение головы игрока в 3D-пространстве
//индекс костей
const
auto
playerHeadPosition
=
Vector3
{
memory
.
Read

(
boneMatrix
+
0x30
*
8
+
0x0C
)
,
memory
.
Read

(
boneMatrix
+
0x30
*
8
+
0x1C
)
,
memory
.
Read

(
boneMatrix
+
0x30
*
8
+
0x2C
)
}
;
const
auto
angle
=
CalculateAngle
(
localEyePosition
,
playerHeadPosition
,
viewAngles
+
aimPunch
)
;
const
auto
fov
=
std
::
hypot
(
angle
.
x
,
angle
.
y
)
;
if
(
fov

(
clientState
+
offset
::
dwClientState_ViewAngles
,
viewAngles
+
bestAngle
/
1.f
)
;
// значение smoothing
}
}


вот так наверно, не проверял.

не совсем понял вопроса "как привязать к имгуй"? что значит привязать? а вообще у тебя же чит экстернал, тебе нужно создавать окно и поверх игры этот имгуй рисовать а не в игре
 
Ответить с цитированием

  #4  
Старый 23.08.2022, 11:42
savva7906
Новичок
Регистрация: 22.08.2022
Сообщений: 2
С нами: 1962541

Репутация: 1
По умолчанию

Цитата:
Сообщение от F0RQU1N and  

вот так наверно, не проверял.
не совсем понял вопроса "как привязать к имгуй"? что значит привязать? а вообще у тебя же чит экстернал, тебе нужно создавать окно и поверх игры этот имгуй рисовать а не в игре
Спасибо код собирается но аим бот не работает а бхоп работает при нажатие кнопки аима и пробела
 
Ответить с цитированием

  #5  
Старый 23.08.2022, 17:56
yung milonov
Познавший АНТИЧАТ
Регистрация: 06.09.2020
Сообщений: 1,043
С нами: 2992507

Репутация: 168


По умолчанию



как выводить только "ABCDEF", а не "ABCDEF66"?
 
Ответить с цитированием

  #6  
Старый 23.08.2022, 18:40
Dark_Knight
Флудер
Регистрация: 18.03.2013
Сообщений: 4,080
С нами: 6921957

Репутация: 183


По умолчанию

Цитата:
Сообщение от yung milonov  

как выводить только "ABCDEF", а не "ABCDEF66"?
Да все нормально выводит. Как вариант пробуй %08X.

Цитата:
Сообщение от Спойлер  


 
Ответить с цитированием

  #7  
Старый 23.08.2022, 18:47
yung milonov
Познавший АНТИЧАТ
Регистрация: 06.09.2020
Сообщений: 1,043
С нами: 2992507

Репутация: 168


По умолчанию

Цитата:
Сообщение от Dark_Knight  

Да все нормально выводит. Как вариант пробуй %08X.
Цитата:
Сообщение от Спойлер  


тот же результат. мне нужно получать ABCDEF, обрезая два последних символа

 
Ответить с цитированием

  #8  
Старый 23.08.2022, 18:53
Dark_Knight
Флудер
Регистрация: 18.03.2013
Сообщений: 4,080
С нами: 6921957

Репутация: 183


По умолчанию

Цитата:
Сообщение от yung milonov  

тот же результат. мне нужно получать ABCDEF, обрезая два последних символа
Не допонял сначала. Щас (color >> 8). Хотя зачем тебе это я фиг знает. Если ты хочешь цвет игрока так выводит, то мне проще альфа канал установить на FF значение.
 
Ответить с цитированием

  #9  
Старый 24.08.2022, 17:36
MeG@LaDo[N] ^_^
Участник форума
Регистрация: 21.07.2020
Сообщений: 280
С нами: 3059886

Репутация: 68
По умолчанию

Добрый вечер,у меня вопрос

как мне изменить строку в адресе на свою строку?
 
Ответить с цитированием

  #10  
Старый 24.08.2022, 17:44
sc6ut
Постоянный
Регистрация: 03.05.2020
Сообщений: 385
С нами: 3174020

Репутация: 213
По умолчанию

Цитата:
Сообщение от MeG@LaDo[N] ^_^  

Добрый вечер,у меня вопрос
как мне изменить строку в адресе на свою строку?
Код:
std::strcpy(reinterpret_cast(0x123456), "new_text")
 
Ответить с цитированием
Ответ





Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 


Быстрый переход




ANTICHAT ™ © 2001- Antichat Kft.