| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 358 online users. » 0 Member(s) | 355 Guest(s) Bing, Google, Baidu
|
| Latest Threads |
Client issue with object
Forum: Support
Last Post: TheDoctor
2025-11-15, 08:00 PM
» Replies: 0
» Views: 48
|
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-11-15, 12:06 AM
» Replies: 0
» Views: 54
|
[Include] OpenGate (Abrir...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-11-13, 06:49 PM
» Replies: 0
» Views: 45
|
OpenGate (Open Proximity ...
Forum: Libraries
Last Post: Crazy_ArKzX
2025-11-13, 06:46 PM
» Replies: 0
» Views: 54
|
LS City Hall
Forum: Maps
Last Post: cosminupgaming
2025-11-12, 04:22 PM
» Replies: 3
» Views: 2,684
|
Crime Base
Forum: Maps
Last Post: cosminupgaming
2025-11-12, 04:19 PM
» Replies: 2
» Views: 1,264
|
GTA SA-MP Scripting: Issu...
Forum: General Discussions
Last Post: williamrhein
2025-11-12, 10:16 AM
» Replies: 0
» Views: 69
|
is it worth creating a se...
Forum: General Discussions
Last Post: cosminupgaming
2025-11-11, 05:30 PM
» Replies: 13
» Views: 18,391
|
Looking for an English De...
Forum: General Discussions
Last Post: cosminupgaming
2025-11-11, 05:21 PM
» Replies: 2
» Views: 2,829
|
Awakeninga an old server.
Forum: Support
Last Post: drwnrbbt
2025-11-11, 02:26 PM
» Replies: 0
» Views: 62
|
|
|
| PC hardware: latest, upcoming, personal builds |
|
Posted by: Wolf - 2019-04-14, 10:11 AM - Forum: Tech
- Replies (30)
|
 |
Thread for discussion about the latest and upcoming pc hardware, as well as your own build.
Personal?build: i5 6400, AMD Radeon RX560 4GB, 8 gigs of RAM, a TB of space (not enough), 1080p monitor and so on
|
|
|
|
| denNorske's SA-MP Query Cache Proxy |
|
Posted by: denNorske - 2019-04-14, 09:08 AM - Forum: Releases
- Replies (9)
|
 |
SA-MP Query Cache Proxy
(Made in python3.7)
Hosted tab servers are facing a massive spam of spoofed UDP packets. The servers simply have no chance to respond to all the fake query requests, and becomes overworked. This ends up with servers not appearing online in the samp client, and if they appear, lots of information don't appear.?
UPDATE: Attack has calmed down (14th of april 2019)
This package will take all the "shit" from the fake packages and respond with a cached response from the samp server. The proxy sends a request to the samp server every few second to cache latest info, which it so sends further to the client that requests it. This shields the samp server and makes it appear normally in everyone's clients. It has been tested on my community and some other servers, and the effect is very noticeable.?
Why python??
Well, python was the only other language besides PAWN and C# that I knew in 2019, and it was the only contribution I could make together with my friend Nick. Now that I also know a bit of C, Javascript and such, but considering it works so well, it's fair enough to say that it may remain using python.
This project is written by frxstrem, nick and me, and everyone's welcome to contribute with better solutions by creating pull requests from separate branches. It has been tested under load of a UDP spam on approximately 3500 pps. It takes up one entire thread of a CPU on a I7-8700k.
Unfortunately, this method will only work on VPS's/VDS's where you have full access to the host system. Python code requires iptables rules to be applied.
How to run the python script in background;?
1: Code: python3 pack-scan.py &
2:Then use: to avoid it closing with the terminal, when you leave the SSH session, or close the terminal.
Disclaimer: I am in no way responsible for misconfigurations or changes done by you. You should understand what iptables do and what my code do before you use it.
Query Mechanism information: Click here
READ ME: https://github.com/dennorske/samp-packet.../README.md
Known issues:?- Under load, script tends to stop working after approximately a week. You can set up a simple bash script to restart it automatically (Fixed March 19th 2021)
- game-state and SACNR monitor queries are not responded correctly, causing graphs to not show or show incorrectly.
Visual of the Query mechanism with the script running (Assuming iptables works correctly) :
![[Image: 68747470733a2f2f706963732e6475636b792e72...322e706e67]](https://camo.githubusercontent.com/d58f13170da00082ad256c095d149919c1a47037b0f598e29479afdc50f5c2d8/68747470733a2f2f706963732e6475636b792e726f636b732f696d616765732f323032302f30342f32302f556e7469746c65642d4469616772616d2d322e706e67)
LINK TO REPOSITORY/Download https://github.com/dennorske/samp-packet-proxy
Disabling the cache/removing IPtable rules:
In order to remove the rules you've added from IPtables, please replace "-A" or "-I", with "-D" in the commands.
You need to make sure you write the exact same commands, else it will fail. (if you changed ports, use those ports, and replace -A with -D for example)
|
|
|
|
| Burgershot |
|
Posted by: Mugsy - 2019-04-14, 07:56 AM - Forum: General Discussions
- Replies (18)
|
 |
Very good dear community.
I come to ask several questions.
Why Burgershoot? What is the purpose of the project? When will more official information be given?
I think that very soon news will be given and this project has a good path if it is administered well and does not pass up as SAMP.
Sorry for the google translator.
|
|
|
|
| SampBcrypt |
|
Posted by: SyS - 2019-04-14, 07:41 AM - Forum: Plugins
- Replies (14)
|
 |
SampBcrypt
A bcrypt plugin for samp in Rust.
Installation
sampctl
If you are a sampctl user
sampctl p install Sreyas-Sreelal/samp-bcrypt
OR
- Download suitable binary files from releases for your operating system
- Add it your plugins folder
- Add samp_bcrypt to server.cfg or? samp_bcrypt.so (for linux)
- Add samp_bcrypt.inc in includes folder
Building
API
- bcrypt_hash(playerid,callback[],input[],cost)
- playerid - id of the player
- callback[] - callback to execute after hashing
- input[] - string to hash
- cost - work factor (4 - 31)
- Example
PHP Code: main(){ bcrypt_hash(0,"OnPassswordHash","text",12); }
forward OnPassswordHash(playerid); public OnPassswordHash(playerid){ //hashing completed }
- bcrypt_get_hash(dest[],size = sizeof(hash))
- dest[] - string to store hashed data
- size - max size of dest string
- Example
PHP Code: main(){ bcrypt_hash(0,"OnPassswordHash","text",12); }
forward OnPassswordHash(playerid); public OnPassswordHash(playerid){ new dest[250]; bcrypt_get_hash(dest); printf("hash : %s",dest); }
- bcrypt_verify(playerid,callback[],input[],hash[])
- playerid - id of the player
- callback[] - callback to execute after hashing
- input[] - text to compare with hash
- hash[] - hash to compare with text
- Example
PHP Code: main(){ bcrypt_hash(0,"OnPassswordHash","text",12); }
forward OnPassswordHash(playerid); public OnPassswordHash(playerid){ new dest[250]; bcrypt_get_hash(dest); bcrypt_verify(playerid,"OnPassswordVerify","text",dest); }
forward OnPassswordVerify(playerid,bool:success); public OnPassswordVerify(playerid,bool:success){ //success denotes verifying was successful or not if(success){ //verfied } else{ //hash doesn't match with text } }
- bcrypt_set_thread_limit(value)
- value - number of worker threads at a time
- Example
PHP Code: main(){ bcrypt_set_thread_limit(3); }
|
|
|
|
|