UNDERCODE COMMUNITY
2.67K subscribers
1.23K photos
31 videos
2.65K files
79.7K links
πŸ¦‘ Undercode Cyber World!
@UndercodeCommunity


1️⃣ World first platform which Collect & Analyzes every New hacking method.
+ AI Pratice
@Undercode_Testing

2️⃣ Cyber & Tech NEWS:
@Undercode_News

3️⃣ CVE @Daily_CVE

✨ Web & Services:
β†’ Undercode.help
Download Telegram
Forwarded from UNDERCODE NEWS
Artificial Intelligence: how many really know it?
#Technologies #Analytiques
Forwarded from UNDERCODE NEWS
The most strong cell phone flagship characteristics are revealed: turn alive, smart mute, take a snapshot to test the skin...
#Technologies
Forwarded from UNDERCODE NEWS
The launch of the chat app Tele feels like FaceTime for AR.
#Updates
Forwarded from UNDERCODE NEWS
Today's update, similar to Desktop 16 Technology Preview Edition for M1 Mac.
#Updates
Forwarded from UNDERCODE NEWS
US. Customs and Border Control aims to significantly extend permits for facial recognition at airports.
#Technologies
Forwarded from UNDERCODE NEWS
A new cyberattack on the USA took place.
#CyberAttacks
Forwarded from UNDERCODE NEWS
Armed forces claim the blocking of Russian cult anime websites.
#international
Forwarded from UNDERCODE NEWS
The iPhone 13 product is expected to support Wi-Fi 6E. Large-size SE is unlikely to be launched in early 2021.
#Technologies
▁ β–‚ β–„ Uπ•Ÿπ”»β’Ίπ«Δ†π”¬π““β“” β–„ β–‚ ▁

πŸ¦‘Do you want to hack your database, like a prank test ?

Hack SQL Fake is unit testing library for Hack. It enables testing database-driven applications with an in-memory simulation of MySQL. It supports a wide variety of queries, rapid snapshot/restore of the database between test cases, and more. This is done with a Fake Object, which contains an implementation of the database, avoiding the need for explicit stubbing or mocking.

F E A T U R E S :

FROM, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT clauses supported as appropriate for each query type

JOIN queries with all join types

multi-queries such as subqueries, UNION, UNION ALL, INTERSECT, EXCEPT
complex expressions such as CASE, BETWEEN, and row comparators (1, 2, 3) < (4, 5, 6)

all basic operators implemented with operator precedence
column aliases, cross-database queries

INSERT ... ON DUPLICATE KEY UPDATE

A variety of SQL functions such as COUNT(), NULLIF(), COALESCE(), CONCAT_WS() and many others

Strict SQL mode can be enabled or disabled to throw exceptions for invalid data types and missing not-null fields

Validating parser: the query parser will throw exceptions on most invalid

SQL Queries, helping protect your production environment from accidental SQL syntax errors

πŸ„ΈπŸ„½πŸ…‚πŸ…ƒπŸ„°πŸ„»πŸ„»πŸ„ΈπŸ…‚πŸ„°πŸ…ƒπŸ„ΈπŸ„ΎπŸ„½ & πŸ…πŸ…„πŸ„½ :


download > https://github.com/slackhq/hack-sql-fake

or This package can be installed via composer:

type :

> composer require slack/hack-sql-fake

HOW TO USE ??

SQL Fake works by providing a subclass of AsyncMysqlConnectionPool, the recommended method of querying MySQL built-in to Hack. A subclass for AsyncMysqlClient is provided as well.

This library assumes you currently have some form of establishing a database connection using AsyncMysqlConnectionPool. The best way to use SQLFake will depend on your code, but you can use dependency injection or fb_intercept() to instantiate a Slack\SQLFake\AsyncMysqlConnectionPool when testing. This will behave like a database for the rest of your test run.

Once per test run, you should also call Slack\SQLFake\init() to register database schema. See Exporting Database Schema for instructions.

For example, assume you have a class in your source code that manages database connections called Db with a method named getConnectionPool(): AsyncMysqlConnectionPool. In your tests, you can intercept that function to return an instance of SQLFake's connection pool.

$pool = new Slack\SQLFake\AsyncMysqlConnectionPool(darray[]);

fb_intercept('Db::getConnectionPool', (string $name, mixed $obj, array<mixed> $args, mixed $data, bool &$done) ==> {
$done = true;
return $pool;
};
}
▁ β–‚ β–„ Uπ•Ÿπ”»β’Ίπ«Δ†π”¬π““β“” β–„ β–‚ ▁
Forwarded from UNDERCODE NEWS
WeChat answered that it was not possible to close the ad with one click.
#Updates
Forwarded from UNDERCODE NEWS
90% of servers are victims of encryption and are unaware of unexplained infections of malware.
#Malwares
Forwarded from UNDERCODE NEWS
Without touch, iPhone images can be hacked, British hackers discovered Apple's deadly flaw.
#Vulnerabilities