def probe(value):
    """
    Factorization of n by probing.

    :param n: value to factorize.
    :returns: all proper divisors of n.

    >>> probe(10)
    [1, 2, 5, 10]
    >>> probe(12)
    [1, 2, 3, 4, 6, 12]
    """
    value = abs(value)
    limit = value // 2
    divisors = [1]
    divisor = 2

    while divisor <= limit:
        if value % divisor == 0:
            divisors.append(divisor)

        divisor += 1

    if not value == 1:
        divisors.append(value)

    return divisors