pyMeow
pyMeow copied to clipboard
(Linux) SIGSEGV: Illegal storage access.
class CS2Esp:
def __init__(self):
try:
self.proc = pm.open_process("cs2", True)
# self.mod = pm.get_module(self.proc, "client")["base"]
except Exception as e:
sys.exit(e)
if __name__ == "__main__":
esp = CS2Esp()
cs2 is 100% not the name of the process. Also make sure the process is actually running. SIGSEGV is a Nim error and usually results of that
Woops, missed the [Linux]. Still check for the Name and that the process is running.
The name is cs2, the module name can be client.so, but i still in the line before.
Interesting. Which distro do you use? Also do any of these give some useful output?:
enum_processes(): Process (iterator)
pid_exists(pid: int): bool
process_exists(processName: string): bool
get_process_id(processName: string): int
get_process_name(pid: int): string
I use OpenSuse as main distro. I´ve tried to call these functions but none of then works as expected. I realized the import statement broken the application import pyMeow as pm
.
(installed via venv - pyMeow-1.53.36)
Im not aware that the import functionality is a different one on Linux. Python uses its own import system.
Even though i was aware i just tested it on Windows and its works as expected:
import pyMeow as pm
print(pm.open_process("notepad.exe"))
result:
{'name': 'notepad.exe', 'pid': 17380, 'debug': False, 'handle': 392}
Even this works: (@qb-0 this isnt supposed to be like that. You are exporting pyMeow seperatly somewhere)
import pyMeow.pyMeow
print(pyMeow.open_process("notepad.exe"))
For @qb-0:
note "pyMeow" entry
import pyMeow
print(pyMeow.__dir__())
['__name__', '__doc__', '__package__', '__loader__', '__spec__', '__path__', '__file__', '__cached__', '__builtins__', 'pyMeow', 'get_os_error', 'is_64_bit', 'pid_exists', 'process_exists', 'process_running', 'get_process_id', 'get_process_name', 'get_process_path', 'open_process', 'close_process', 'get_module', 'aob_scan_module', 'aob_scan_range', 'aob_scan_bytes', 'page_protection', 'allocate_memory', 'pointer_chain_32', 'pointer_chain_64', 'pointer_chain', 'r_string', 'bytes_to_string', 'r_int', 'r_ints', 'r_int16', 'r_ints16', 'r_int64', 'r_ints64', 'r_uint', 'r_uints', 'r_uint64', 'r_uints64', 'r_float', 'r_floats', 'r_float64', 'r_floats64', 'r_byte', 'r_bytes', 'r_vec2', 'r_vec3', 'r_bool', 'r_ctype', 'r', 'w_string', 'w_int', 'w_ints', 'w_int16', 'w_ints16', 'w_int64', 'w_ints64', 'w_uint', 'w_uints', 'w_uint64', 'w_uints64', 'w_float', 'w_floats', 'w_float64', 'w_floats64', 'w_byte', 'w_bytes', 'w_vec2', 'w_vec3', 'w_bool', 'w_ctype', 'w', 'key_pressed', 'press_key', 'mouse_move', 'mouse_down', 'mouse_up', 'mouse_click', 'mouse_position', 'new_color', 'new_color_hex', 'get_color', 'fade_color', 'measure_text', 'run_time', 'world_to_screen', 'check_collision_point_rec', 'check_collision_recs', 'check_collision_circle_rec', 'check_collision_lines', 'check_collision_circles', 'get_display_resolution', 'compare_color_pct', 'get_monitor_count', 'get_monitor_name', 'get_monitor_refresh_rate', 'get_window_title', 'get_window_info', 'overlay_init', 'overlay_loop', 'begin_drawing', 'end_drawing', 'get_fps', 'get_screen_height', 'get_screen_width', 'get_window_position', 'get_window_handle', 'set_fps', 'set_window_position', 'set_window_icon', 'set_window_flag', 'set_window_size', 'set_window_title', 'take_screenshot', 'overlay_close', 'toggle_mouse', 'draw_fps', 'draw_text', 'draw_pixel', 'draw_line', 'draw_circle', 'draw_circle_lines', 'draw_circle_sector', 'draw_circle_sector_lines', 'draw_ring', 'draw_ring_lines', 'draw_ellipse', 'draw_ellipse_lines', 'draw_rectangle', 'draw_rectangle_lines', 'draw_rectangle_rounded', 'draw_rectangle_rounded_lines', 'draw_triangle', 'draw_triangle_lines', 'draw_poly', 'draw_poly_lines', 'load_texture', 'load_texture_bytes', 'draw_texture', 'unload_texture', 'load_font', 'draw_font', 'measure_font', 'gui_fade', 'gui_window_box', 'gui_group_box', 'gui_line', 'gui_panel', 'gui_label', 'gui_button', 'gui_label_button', 'gui_check_box', 'gui_combo_box', 'gui_dropdown_box', 'gui_text_box', 'gui_progress_bar', 'gui_status_bar', 'gui_message_box', 'gui_color_picker', 'gui_color_bar_alpha', 'gui_color_bar_hue', 'gui_scroll_bar', 'gui_spinner', 'gui_slider', 'gui_slider_bar', 'gui_load_style', 'gui_set_state', 'vec2', 'vec3', 'vec2_add', 'vec2_add_value', 'vec3_add', 'vec3_add_value', 'vec2_subtract', 'vec2_subtract_value', 'vec3_subtract', 'vec3_subtract_value', 'vec2_multiply', 'vec2_multiply_value', 'vec3_multiply', 'vec3_multiply_value', 'vec2_divide', 'vec3_divide', 'vec2_length', 'vec3_length', 'vec2_length_sqr', 'vec3_length_sqr', 'vec2_distance', 'vec3_distance', 'vec2_closest', 'vec3_closest', 'pixel_at_mouse', 'pixel_save_to_file', 'sound_init', 'sound_deinit', 'load_sound', 'unload_sound', 'play_sound', 'pause_sound', 'resume_sound', 'stop_sound', 'play_multisound', 'stop_multisound', 'set_sound_volume', 'is_sound_playing', 'enum_processes', 'enum_modules', 'enum_memory_regions', 'pixel_enum_region', 'pixel_enum_screen', 'pixel_search_colors', 'NimPyException']
import pyMeow.pyMeow
print(pyMeow.pyMeow.__dir__())
['__name__', '__doc__', '__package__', '__loader__', '__spec__', 'get_os_error', 'is_64_bit', 'pid_exists', 'process_exists', 'process_running', 'get_process_id', 'get_process_name', 'get_process_path', 'open_process', 'close_process', 'get_module', 'aob_scan_module', 'aob_scan_range', 'aob_scan_bytes', 'page_protection', 'allocate_memory', 'pointer_chain_32', 'pointer_chain_64', 'pointer_chain', 'r_string', 'bytes_to_string', 'r_int', 'r_ints', 'r_int16', 'r_ints16', 'r_int64', 'r_ints64', 'r_uint', 'r_uints', 'r_uint64', 'r_uints64', 'r_float', 'r_floats', 'r_float64', 'r_floats64', 'r_byte', 'r_bytes', 'r_vec2', 'r_vec3', 'r_bool', 'r_ctype', 'r', 'w_string', 'w_int', 'w_ints', 'w_int16', 'w_ints16', 'w_int64', 'w_ints64', 'w_uint', 'w_uints', 'w_uint64', 'w_uints64', 'w_float', 'w_floats', 'w_float64', 'w_floats64', 'w_byte', 'w_bytes', 'w_vec2', 'w_vec3', 'w_bool', 'w_ctype', 'w', 'key_pressed', 'press_key', 'mouse_move', 'mouse_down', 'mouse_up', 'mouse_click', 'mouse_position', 'new_color', 'new_color_hex', 'get_color', 'fade_color', 'measure_text', 'run_time', 'world_to_screen', 'check_collision_point_rec', 'check_collision_recs', 'check_collision_circle_rec', 'check_collision_lines', 'check_collision_circles', 'get_display_resolution', 'compare_color_pct', 'get_monitor_count', 'get_monitor_name', 'get_monitor_refresh_rate', 'get_window_title', 'get_window_info', 'overlay_init', 'overlay_loop', 'begin_drawing', 'end_drawing', 'get_fps', 'get_screen_height', 'get_screen_width', 'get_window_position', 'get_window_handle', 'set_fps', 'set_window_position', 'set_window_icon', 'set_window_flag', 'set_window_size', 'set_window_title', 'take_screenshot', 'overlay_close', 'toggle_mouse', 'draw_fps', 'draw_text', 'draw_pixel', 'draw_line', 'draw_circle', 'draw_circle_lines', 'draw_circle_sector', 'draw_circle_sector_lines', 'draw_ring', 'draw_ring_lines', 'draw_ellipse', 'draw_ellipse_lines', 'draw_rectangle', 'draw_rectangle_lines', 'draw_rectangle_rounded', 'draw_rectangle_rounded_lines', 'draw_triangle', 'draw_triangle_lines', 'draw_poly', 'draw_poly_lines', 'load_texture', 'load_texture_bytes', 'draw_texture', 'unload_texture', 'load_font', 'draw_font', 'measure_font', 'gui_fade', 'gui_window_box', 'gui_group_box', 'gui_line', 'gui_panel', 'gui_label', 'gui_button', 'gui_label_button', 'gui_check_box', 'gui_combo_box', 'gui_dropdown_box', 'gui_text_box', 'gui_progress_bar', 'gui_status_bar', 'gui_message_box', 'gui_color_picker', 'gui_color_bar_alpha', 'gui_color_bar_hue', 'gui_scroll_bar', 'gui_spinner', 'gui_slider', 'gui_slider_bar', 'gui_load_style', 'gui_set_state', 'vec2', 'vec3', 'vec2_add', 'vec2_add_value', 'vec3_add', 'vec3_add_value', 'vec2_subtract', 'vec2_subtract_value', 'vec3_subtract', 'vec3_subtract_value', 'vec2_multiply', 'vec2_multiply_value', 'vec3_multiply', 'vec3_multiply_value', 'vec2_divide', 'vec3_divide', 'vec2_length', 'vec3_length', 'vec2_length_sqr', 'vec3_length_sqr', 'vec2_distance', 'vec3_distance', 'vec2_closest', 'vec3_closest', 'pixel_at_mouse', 'pixel_save_to_file', 'sound_init', 'sound_deinit', 'load_sound', 'unload_sound', 'play_sound', 'pause_sound', 'resume_sound', 'stop_sound', 'play_multisound', 'stop_multisound', 'set_sound_volume', 'is_sound_playing', 'enum_processes', 'enum_modules', 'enum_memory_regions', 'pixel_enum_region', 'pixel_enum_screen', 'pixel_search_colors', 'NimPyException', '__file__']
I use OpenSuse as main distro. I´ve tried to call these functions but none of then works as expected. I realized the import statement broken the application
import pyMeow as pm
. (installed via venv - pyMeow-1.53.36)
Did you use the release? I've compiled it on arch which might be a problem. Does it work if you compile pyMeow on your system?
Also I hate to ask these questions but: You are on a 64bit system with python3 right?
@Hypnootika thank you I take a looksie into it
@qb-0 I used the release. After your suggestion, I compiled the project locally (I was only able to generate a .so file that was replaced in the pymeow folder within site-packages). I used python 3.11 x64 and the occurrency persist.
Mh, last thing I would try is uninstalling pyMeow via pip and importing the compiled one directly (just place the .so next to a script).
You could play with the compile options also. Replace pyMeow.nim.cfg
with:
-d:release
--opt:speed
--app:lib
--cpu:amd64
--threads:on
--gc:refc
--out:"pyMeow.so"
--hint[Name]:off
--warning[UnusedImport]:off
--warning[BareExcept]:off
cfg
Afaik that wont work. It has to have --passL:"-static" atleast.
Edit: nevermind, windows pleb
Gonna close this one since there was no answer yet.