Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
AI & KI NachrichtenKI-Firmenchefs warnen bei UN-Sicherheitsrat vor Risiken - ZDFheute(24.09.2026 um 09:59 Uhr)
Hacking & PentestingVibe Hacking: Hacker erpresst Unternehmen mit Claude Code(24.09.2026 um 10:01 Uhr)
Apple iOS & macOSApple plant offenbar größere Home-Offensive für Oktober(24.09.2026 um 09:33 Uhr)
Android Tipps & SecurityGoogle veröffentlicht Update, von dem alle Pixel-Handys profitieren(24.09.2026 um 09:08 Uhr)
Android Tipps & SecurityHuawei hat geschafft, womit niemand so schnell gerechnet hat(24.09.2026 um 09:40 Uhr)
AI & KI NachrichtenThe Wild West of A.I. Needs to End. Here’s How.(24.09.2026 um 08:55 Uhr)
YouTube Security VideosGolemDE: Leben als IT-Freiberufler – zwei Perspektiven(24.09.2026 um 07:03 Uhr)
AI & KI NachrichtenKI-Firmenchefs warnen bei UN-Sicherheitsrat vor Risiken - ZDFheute(24.09.2026 um 09:59 Uhr)
Hacking & PentestingVibe Hacking: Hacker erpresst Unternehmen mit Claude Code(24.09.2026 um 10:01 Uhr)
Apple iOS & macOSApple plant offenbar größere Home-Offensive für Oktober(24.09.2026 um 09:33 Uhr)
Android Tipps & SecurityGoogle veröffentlicht Update, von dem alle Pixel-Handys profitieren(24.09.2026 um 09:08 Uhr)
Android Tipps & SecurityHuawei hat geschafft, womit niemand so schnell gerechnet hat(24.09.2026 um 09:40 Uhr)
AI & KI NachrichtenThe Wild West of A.I. Needs to End. Here’s How.(24.09.2026 um 08:55 Uhr)
YouTube Security VideosGolemDE: Leben als IT-Freiberufler – zwei Perspektiven(24.09.2026 um 07:03 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

How to 'hack' the Ter/Terlang programming language

Incorporate your own functions directly via source code with C++ When I created the Ter/Terlang programming language one of the things I wanted it to have was precisely: the ease of being able to hack the language and incorporate…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




Incorporate your own functions directly via source code with C++






When I created the Ter/Terlang programming language one of the things I wanted it to have was precisely: the ease of being able to hack the language and incorporate functions built in by the programmer.



In other words, you can create your own native functions. This will be interesting when I start incorporating libraries, mainly from GameDev, such as: SFML, SDL, Raylib and others to be used by Ter/Terlang.



In this example, we will create the native function: helloworld(), that is, when printing this function, it should display the message: Hello, World!.



Right now if you create a helloworld.ter file and try to do this:




output(helloworld())






After running: ter helloworld.ter, the output will be an error:




[line 1] Error: Undefined variable: 'helloworld'.






So, let's modify the source code to make this work!









Procedure



We just need to follow 3 basic steps to do this.






01. First of all, you need to clone



And enter the project:




git clone https://github.com/terroo/terlang
cd terlang









02. Now let's edit the file: ./src/Builtin.hpp



And add the code below to the end of the file:




class HelloWorld : public Callable {
public:
int arity() override;
std::any call(Interpreter &interpreter, std::vector<std::any> arguments) override;
std::string toString() override;
};






All functions need to inherit Callable in a public form. The member functions: arity(), call() and toString() are the template for all functions that will be built in and need to be public.






03. Next, we need to create the execution for the member functions of the HelloWorld class that we added.



Edit the file ./src/Builtin.cpp and insert the following content at the end of the file:




// ------ HelloWorld -----------
int HelloWorld::arity(){
return 0;
}

std::any HelloWorld::call(Interpreter &interpreter, std::vector<std::any> arguments){
if(arguments.size() > (size_t)arity() && interpreter.global != nullptr){
builtinError("helloworld");
}

std::string hello = "Hello, World!";

return std::any_cast<std::string>(hello);
}

std::string HelloWorld::toString(){
return "<function builtin>";
}







  • The member function arity() needs to return the number of arguments it receives. Since the function helloworld() does not receive any arguments, we return zero. If it were, for example, a function named add(x, y) that receives 2 arguments, we would need to return return 2;


  • The member function call() always needs to have this initial if to check the number of arguments. All returns need to be transformed into std::any with std::any_cast. Since we want it to return a string, we convert it to std::string, which will be the sentence that will be displayed.


  • And finally toString() must always have this content so that we can map the error type and know that the failure is actually in this type of function.







04. Add helloworld to the Terlang map



Now let's edit the file: ./src/BuiltinFactory.cpp and add the context AT THE END OF THE MAPS builtinFactory and builtinNames. With the syntax below, inform the name of the class of your built-in function, in this case: HelloWorld:




Remember that in the line above it, you need to ADD A COMMA: , at the end of the line to show that we have a new element.





{typeid(std::shared_ptr<HelloWorld>), [](){ return std::make_shared<HelloWorld>(); }}






And do the same in builtinNames, the first element of this map is the name you want to call in your .ter file, in this case we call it "helloworld":




{"helloworld", typeid(std::shared_ptr<HelloWorld>)}









All right now just compile and test:




# rm -rf build/ if you have already built it once, because CMake can use the cache
cmake -B build . cmake --build build






Create the test file: helloworld.ter:




auto hello = helloworld()
output(hello)







In this case, we did it differently from the file above, we stored the return of helloworld() in the variable hello, but you can also print it directly if you want: output(helloworld())




And run:




./build/ter helloworld.ter







The output will be: Hello, World!




If you want it to be available for your system, just install it: sudo cmake --install build/.






Pretty simple, right?! This procedure is available on the Wiki.



For more information, access the repository: https://github.com/terroo/terlang/.



Learn how to create your own programming language with our Course:






https://terminalroot.com.br/mylang

SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - How to 'hack' the Ter/Terlang programming language
id: a03f2e58-7363-44ed-a1b3-81a147b50701
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "How to \'hack\' the Ter/Terlang " ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich How to &#039;hack&#039; the Ter/Terlang programmin.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How to 'hack' the Ter/Terlang programming language

Thematisch verwandte Begriffe: hack, TerTerlang, programming, language · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97056 | SigNoz versions from v0.98.0 up to (but not including) v0.143.0, when co…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick